Open History to see the last commit
1import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
2import Header from '../components/Header'
3import appCss from '../styles.css?url'
4
5export 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 AI Visual - Image & Video Generation',
17 },
18 ],
19 links: [
20 {
21 rel: 'stylesheet',
22 href: appCss,
23 },
24 {
25 rel: 'icon',
26 type: 'image/svg+xml',
27 href: 'https://tanstack.com/favicon-light.svg',
28 media: '(prefers-color-scheme: light)',
29 },
30 {
31 rel: 'icon',
32 type: 'image/svg+xml',
33 href: 'https://tanstack.com/favicon-dark.svg',
34 media: '(prefers-color-scheme: dark)',
35 },
36 ],
37 }),
38
39 shellComponent: RootDocument,
40})
41
42function RootDocument({ children }: { children: React.ReactNode }) {
43 return (
44 <html lang="en">
45 <head>
46 <HeadContent />
47 </head>
48 <body className="bg-gray-900 min-h-screen">
49 <Header />
50 {children}
51 <Scripts />
52 </body>
53 </html>
54 )
55}