The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 18 lines 634 Bytes
Raw
1 import Card from "~/components/Card";
2
3 // Server-rendered in the Cloudflare Worker. Date-default Node.js compatibility
4 // populates `process.env` from the Worker's environment, so the
5 // `GREETING` value declared in alchemy.run.ts is read the same way as on
6 // any Node server.
7 export default function Home() {
8 const greeting = (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 }