Open History to see the last commit
1import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
2import appCss from '../styles.css?url'
3
4export const Route = createRootRoute({
5 head: () => ({
6 meta: [
7 {
8 charSet: 'utf-8',
9 },
10 {
11 name: 'viewport',
12 content: 'width=device-width, initial-scale=1',
13 },
14 {
15 title: 'Generate Image',
16 },
17 ],
18 links: [
19 {
20 rel: 'stylesheet',
21 href: appCss,
22 },
23 ],
24 }),
25
26 shellComponent: RootDocument,
27})
28
29function RootDocument({ children }: { children: React.ReactNode }) {
30 return (
31 <html lang="en">
32 <head>
33 <HeadContent />
34 </head>
35 <body className="min-h-screen bg-gray-900">
36 {children}
37 <Scripts />
38 </body>
39 </html>
40 )
41}