mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-22 18:27:45 +02:00
20 lines
607 B
TypeScript
20 lines
607 B
TypeScript
/** @jsxImportSource react */
|
|
import { Card } from "../components/Card.tsx";
|
|
|
|
// A server component: renders in the Worker on every request. With the
|
|
// date-default Node.js compatibility, the `env` declared in
|
|
// alchemy.run.ts is populated onto `process.env`.
|
|
const Component = () => {
|
|
const greeting = process.env.GREETING ?? "Hello!";
|
|
return (
|
|
<main>
|
|
<h1 className="text-3xl font-bold">{greeting}</h1>
|
|
<Card
|
|
title="Styled with Tailwind CSS"
|
|
body="This card is a React component styled with Tailwind utilities."
|
|
/>
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default Component;
|