diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-27 19:02:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-27 19:02:58 +0900 |
| commit | b70fa3abf9c96871cc3e39090e9a00da4ad87b8b (patch) | |
| tree | 848da44374c48edec603fb014c59ad0fbb9307e6 /frontend/app/root.tsx | |
| parent | e487036c5cc9f5b59e9efbaec132a2fd60896317 (diff) | |
| parent | 7cbf34204233df7c7e9e4b24998e25dbd8d2a423 (diff) | |
| download | iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.tar.gz iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.tar.zst iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.zip | |
Merge branch 'remix'
Diffstat (limited to 'frontend/app/root.tsx')
| -rw-r--r-- | frontend/app/root.tsx | 35 |
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 />; +} |
