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: 'TanStack AI — Reranking',
16 },
17 ],
18 links: [
19 {
20 rel: 'stylesheet',
21 href: appCss,
22 },
23 {
24 rel: 'icon',
25 type: 'image/svg+xml',
26 href: 'https://tanstack.com/favicon-light.svg',
27 media: '(prefers-color-scheme: light)',
28 },
29 {
30 rel: 'icon',
31 type: 'image/svg+xml',
32 href: 'https://tanstack.com/favicon-dark.svg',
33 media: '(prefers-color-scheme: dark)',
34 },
35 ],
36 }),
37
38 shellComponent: RootDocument,
39})
40
41function RootDocument({ children }: { children: React.ReactNode }) {
42 return (
43 <html lang="en">
44 <head>
45 <HeadContent />
46 </head>
47 <body className="bg-gray-900 min-h-screen">
48 {children}
49 <Scripts />
50 </body>
51 </html>
52 )
53}