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
| 1 | import { HeadContent, Outlet, Scripts, createRootRoute } from "@tanstack/react-router"; |
| 2 | import type { ReactNode } from "react"; |
| 3 | import appCss from "../styles.css?url"; |
| 4 | |
| 5 | export const Route = createRootRoute({ |
| 6 | head: () => ({ |
| 7 | meta: [ |
| 8 | { |
| 9 | charSet: "utf-8", |
| 10 | }, |
| 11 | { |
| 12 | name: "viewport", |
| 13 | content: "width=device-width, initial-scale=1", |
| 14 | }, |
| 15 | { |
| 16 | title: "TanStack Start on Cloudflare", |
| 17 | }, |
| 18 | ], |
| 19 | links: [ |
| 20 | { |
| 21 | rel: "stylesheet", |
| 22 | href: appCss, |
| 23 | }, |
| 24 | ], |
| 25 | }), |
| 26 | component: RootComponent, |
| 27 | }); |
| 28 | |
| 29 | function RootComponent() { |
| 30 | return ( |
| 31 | <Document> |
| 32 | <Outlet /> |
| 33 | </Document> |
| 34 | ); |
| 35 | } |
| 36 | |
| 37 | function Document(props: Readonly<{ children: ReactNode }>) { |
| 38 | return ( |
| 39 | <html lang="en"> |
| 40 | <head> |
| 41 | <HeadContent /> |
| 42 | </head> |
| 43 | <body className="bg-slate-50 p-8 text-slate-900"> |
| 44 | {props.children} |
| 45 | <Scripts /> |
| 46 | </body> |
| 47 | </html> |
| 48 | ); |
| 49 | } |