@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
tsx 39 lines 1008 Bytes
Raw
1 import { createRootRoute, HeadContent, Outlet, Scripts } from "@tanstack/react-router";
2 import type { ReactNode } from "react";
3 // Tailwind is wired through vite.config.ts (@tailwindcss/vite) — Alchemy
4 // runs the project's own `vite build`, so the utilities below compile.
5 import appCss from "../styles/global.css?url";
6
7 export const Route = createRootRoute({
8 head: () => ({
9 meta: [
10 { charSet: "utf-8" },
11 { name: "viewport", content: "width=device-width, initial-scale=1" },
12 { title: "TanStack Start on Neon" },
13 ],
14 links: [{ rel: "stylesheet", href: appCss }],
15 }),
16 component: RootComponent,
17 });
18
19 function RootComponent() {
20 return (
21 <Document>
22 <Outlet />
23 </Document>
24 );
25 }
26
27 function Document(props: Readonly<{ children: ReactNode }>) {
28 return (
29 <html lang="en">
30 <head>
31 <HeadContent />
32 </head>
33 <body className="bg-slate-50 p-8 text-slate-900">
34 {props.children}
35 <Scripts />
36 </body>
37 </html>
38 );
39 }