-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.tsx
52 lines (48 loc) · 1.27 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import {
Links,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from '@remix-run/react';
import styles from './index.css?url';
import { LinksFunction } from '@remix-run/node';
import { css } from 'styled-system/css';
export const links: LinksFunction = () => [{ rel: 'stylesheet', href: styles }];
export const IMAGE_URL =
import.meta.env.PUBLIC_IMAGE_URL || '//directus-toril.loque.net/assets';
export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
</head>
<body>
<div className={css({ border: 'solid 1px green' })}>
{children}
<div
className={css({
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
background: 'red',
})}
>
<div className={css({ background: 'blue' })} />
</div>
</div>
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}
export default function App() {
return <Outlet />;
}