init remix app

This commit is contained in:
Nathaniel Tampus
2023-02-06 15:17:49 +08:00
parent 015977aa82
commit c03cf47bc3
16 changed files with 216 additions and 1 deletions

34
client/app/root.tsx Normal file
View File

@@ -0,0 +1,34 @@
import type { MetaFunction } from "@remix-run/node";
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react";
import Header from "./components/Header";
import Footer from "./components/Footer";
// Tailwind CSS
import styles from "./styles/app.css";
export const links = () => [{ rel: "stylesheet", href: styles }];
export const meta: MetaFunction = () => ({
charset: "utf-8",
title: "Chessu",
viewport: "width=device-width,initial-scale=1"
});
export default function App() {
return (
<html lang="en">
<head>
<Meta />
<Links />
</head>
<body>
<Header />
<Outlet />
<Footer />
<ScrollRestoration />
<Scripts />
<LiveReload />
</body>
</html>
);
}