-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.tsx
62 lines (58 loc) · 1.45 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
53
54
55
56
57
58
59
60
61
62
import type { LinksFunction, MetaFunction } from "@remix-run/node";
import {
Links,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import type { PropsWithChildren } from "react";
import stylesheet from "~/tailwind.css?url";
import AboutMe from "./components/AboutMe";
import PageSkeleton from "./components/PageSkeleton";
export const links: LinksFunction = () => {
return [
{ rel: "stylesheet", href: stylesheet },
{ rel: "icon", type: "image/png", href: "/icon.png" },
];
};
export const meta: MetaFunction = () => [
{ name: "title", content: "Hi, I'm Markus" },
{
name: "description",
content: "I help companies design and deliver digital products faster",
},
{
name: "keywords",
content: "Frontend, development, software, User interfaces, React, Vue",
},
];
export const Layout = ({ children }: PropsWithChildren) => {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<Meta />
<Links />
</head>
<body>
<PageSkeleton>
<section className="prose prose-herrsiering pt-12 dark:prose-invert lg:prose-xl">
{children}
<AboutMe />
</section>
</PageSkeleton>
</body>
</html>
);
};
export default function App() {
return (
<>
<Outlet />
<ScrollRestoration />
<Scripts />
</>
);
}