aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/root.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/root.tsx')
-rw-r--r--frontend/app/root.tsx35
1 files changed, 35 insertions, 0 deletions
diff --git a/frontend/app/root.tsx b/frontend/app/root.tsx
new file mode 100644
index 0000000..9768f45
--- /dev/null
+++ b/frontend/app/root.tsx
@@ -0,0 +1,35 @@
+import type { LinksFunction } from "@remix-run/node";
+import {
+ Links,
+ Meta,
+ Outlet,
+ Scripts,
+ ScrollRestoration,
+} from "@remix-run/react";
+import "./tailwind.css";
+
+export const links: LinksFunction = () => {
+ return [{ rel: "icon", href: "/favicon.svg" }];
+};
+
+export function Layout({ children }: { children: React.ReactNode }) {
+ return (
+ <html lang="en">
+ <head>
+ <meta charSet="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <Meta />
+ <Links />
+ </head>
+ <body>
+ {children}
+ <ScrollRestoration />
+ <Scripts />
+ </body>
+ </html>
+ );
+}
+
+export default function App() {
+ return <Outlet />;
+}