reset to remix

This commit is contained in:
41666 2023-02-01 19:17:41 -05:00
commit 789cb7bdfb
22 changed files with 23521 additions and 0 deletions

46
app/root.tsx Normal file
View file

@ -0,0 +1,46 @@
import type { LinksFunction, MetaFunction } from "@remix-run/node";
import { Provider as StyletronProvider } from "styletron-react";
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import { styletron } from "./styletron";
import { Body } from "./globalStyles";
export const meta: MetaFunction = () => ({
charset: "utf-8",
title: "New Remix App",
viewport: "width=device-width,initial-scale=1",
});
export const links: LinksFunction = () => [
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap",
},
];
export default function App() {
return (
<html lang="en">
<head>
<Meta />
<Links />
{typeof document === "undefined" ? "__STYLES__" : null}
</head>
<StyletronProvider value={styletron}>
<Body>
<Outlet />
<ScrollRestoration />
<Scripts />
<LiveReload />
</Body>
</StyletronProvider>
</html>
);
}