| 1 | import Card from "../components/Card.tsx"; |
| 2 | |
| 3 | // Server-rendered on every request inside the Hetzner Server systemd unit. |
| 4 | // Environment values declared in alchemy.run.ts are available on |
| 5 | // `process.env`. |
| 6 | export default function Home() { |
| 7 | const greeting = |
| 8 | (typeof process !== "undefined" && process.env.GREETING) || "Hello!"; |
| 9 | return ( |
| 10 | <main> |
| 11 | <h1 class="text-3xl font-bold">{greeting}</h1> |
| 12 | <Card |
| 13 | title="Styled with Tailwind CSS" |
| 14 | body="This card is a Solid component styled with Tailwind utilities." |
| 15 | /> |
| 16 | </main> |
| 17 | ); |
| 18 | } |