pollo/app/root.tsx

51 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-04-20 04:20:00 -06:00
import { rootAuthLoader } from "@clerk/remix/ssr.server";
2024-05-22 13:53:11 -06:00
import { ClerkApp } from "@clerk/remix";
2023-12-15 10:44:20 -07:00
import type { LoaderFunction, MetaFunction } from "@remix-run/node";
2023-04-20 04:20:00 -06:00
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import Footer from "./components/Footer";
import Header from "./components/Header";
2023-12-15 10:44:20 -07:00
import "./tailwind.css";
2023-04-20 04:20:00 -06:00
export const meta: MetaFunction = () => {
return [
2024-04-09 11:09:51 -06:00
{ title: "Pollo" },
{ name: "description", content: "Simple Real-Time Voting" },
2023-04-20 04:20:00 -06:00
];
};
export const loader: LoaderFunction = (args) => rootAuthLoader(args);
function App() {
return (
2024-04-02 23:26:13 -06:00
<html data-theme="dark" lang="en" className="h-[100%] w-[100%] fixed overflow-y-auto">
2023-04-20 04:20:00 -06:00
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
</head>
<body className="h-[100%] w-[100%] fixed overflow-y-auto">
2024-04-09 11:09:51 -06:00
<Header title={"Pollo"} />
2023-11-28 17:11:32 -07:00
<div className="flex flex-row items-center justify-center min-h-[calc(100%-114px)]">
<Outlet />
</div>
<Footer />
2023-04-20 04:20:00 -06:00
<ScrollRestoration />
<Scripts />
<LiveReload />
</body>
</html>
);
}
export default ClerkApp(App);