Some checks failed
Deploy monie-landing (kaniko) / build-and-deploy (push) Failing after 20m45s
76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
import { TanStackDevtools } from "@tanstack/react-devtools";
|
|
import { createRootRoute, HeadContent, Scripts } from "@tanstack/react-router";
|
|
import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools";
|
|
import { FooterSimpleRow } from "denjs-ui";
|
|
import { LocaleProvider, PostHogProvider } from "#/app/providers";
|
|
import appCss from "#/app/styles/index.css?url";
|
|
import { m } from "#/paraglide/messages";
|
|
import { getLocale } from "#/paraglide/runtime";
|
|
import { Header } from "#/widgets/layout";
|
|
|
|
export const Route = createRootRoute({
|
|
head: () => ({
|
|
meta: [
|
|
{
|
|
charSet: "utf-8",
|
|
},
|
|
{
|
|
name: "viewport",
|
|
content: "width=device-width, initial-scale=1",
|
|
},
|
|
{
|
|
title: m.seo_home_title(),
|
|
},
|
|
{
|
|
name: "description",
|
|
content: m.seo_home_description(),
|
|
},
|
|
],
|
|
links: [
|
|
{
|
|
rel: "icon",
|
|
type: "image/svg+xml",
|
|
href: "/favicon-light.svg",
|
|
id: "app-favicon",
|
|
},
|
|
{
|
|
rel: "stylesheet",
|
|
href: appCss,
|
|
},
|
|
],
|
|
}),
|
|
shellComponent: RootDocument,
|
|
});
|
|
|
|
function RootDocument({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang={getLocale()} suppressHydrationWarning>
|
|
<head>
|
|
<script src="/theme-init.js" />
|
|
<HeadContent />
|
|
</head>
|
|
<body className="font-sans antialiased wrap-anywhere">
|
|
<PostHogProvider>
|
|
<LocaleProvider>
|
|
<Header />
|
|
{children}
|
|
<FooterSimpleRow />
|
|
<TanStackDevtools
|
|
config={{
|
|
position: "bottom-right",
|
|
}}
|
|
plugins={[
|
|
{
|
|
name: "Tanstack Router",
|
|
render: <TanStackRouterDevtoolsPanel />,
|
|
},
|
|
]}
|
|
/>
|
|
</LocaleProvider>
|
|
</PostHogProvider>
|
|
<Scripts />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|