-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathroot.tsx
38 lines (34 loc) · 819 Bytes
/
root.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import type { LinksFunction, MetaFunction } from "@remix-run/node";
import {
Links,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import icons from "./icons.svg";
import styles from "./styles.processed.css";
export const meta: MetaFunction = () => ({
charset: "utf-8",
title: "Remix Fake Linear Demo",
viewport: "width=device-width,initial-scale=1",
});
export const links: LinksFunction = () => [
{ rel: "stylesheet", href: styles },
{ rel: "preload", href: icons, as: "image", fetchpriority: "high" },
];
export default function App() {
return (
<html lang="en">
<head>
<Meta />
<Links />
</head>
<body className="bg-gray-900">
<Outlet />
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}