make things pretty
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import { CodeIcon } from "@heroicons/react/outline"
|
||||
import {
|
||||
DatabaseIcon,
|
||||
DocumentTextIcon,
|
||||
ExternalLinkIcon,
|
||||
} from "@heroicons/react/solid"
|
||||
import type { LinksFunction, MetaFunction } from "remix"
|
||||
import {
|
||||
Link,
|
||||
Links,
|
||||
LiveReload,
|
||||
Meta,
|
||||
@@ -7,13 +14,17 @@ import {
|
||||
Scripts,
|
||||
ScrollRestoration,
|
||||
} from "remix"
|
||||
import { Header } from "~/components/header"
|
||||
import { ExternalLink } from "~/components/external-link"
|
||||
import { HeaderLayout } from "~/components/header-layout"
|
||||
import { linkClass } from "~/styles"
|
||||
import prismThemeCss from "./prism-theme.css"
|
||||
|
||||
export const meta: MetaFunction = () => {
|
||||
return { title: "New Remix App" }
|
||||
}
|
||||
|
||||
export const links: LinksFunction = () => [
|
||||
{ rel: "stylesheet", href: prismThemeCss },
|
||||
{ rel: "stylesheet", href: "/tailwind.css" },
|
||||
]
|
||||
|
||||
@@ -23,18 +34,48 @@ export default function App() {
|
||||
<head>
|
||||
<meta charSet="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link
|
||||
rel="preconnect"
|
||||
href="https://fonts.gstatic.com"
|
||||
crossOrigin=""
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500&family=Rubik:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<Meta />
|
||||
<Links />
|
||||
</head>
|
||||
<body>
|
||||
<Header>
|
||||
<div className="m-auto max-w-screen-xl px-4">
|
||||
<h1 className="text-3xl font-light">reacord</h1>
|
||||
</div>
|
||||
</Header>
|
||||
<div className="m-auto max-w-screen-xl px-4 mt-8">
|
||||
<Outlet />
|
||||
</div>
|
||||
<HeaderLayout
|
||||
header={
|
||||
<nav className="flex justify-between items-center">
|
||||
<Link to="/">
|
||||
<h1 className="text-3xl font-light">
|
||||
reacord{" "}
|
||||
<CodeIcon className="inline w-8 align-sub opacity-50" />
|
||||
</h1>
|
||||
</Link>
|
||||
<div className="flex gap-4">
|
||||
<Link className={linkClass} to="/docs/getting-started">
|
||||
<DocumentTextIcon className="inline align-sub w-5" /> Guides
|
||||
</Link>
|
||||
<Link className={linkClass} to="/api">
|
||||
<DatabaseIcon className="inline align-sub w-5" /> API
|
||||
Reference
|
||||
</Link>
|
||||
<ExternalLink
|
||||
className={linkClass}
|
||||
href="https://github.com/itsMapleLeaf/reacord"
|
||||
>
|
||||
<ExternalLinkIcon className="inline align-sub w-5" /> GitHub
|
||||
</ExternalLink>
|
||||
</div>
|
||||
</nav>
|
||||
}
|
||||
body={<Outlet />}
|
||||
/>
|
||||
<ScrollRestoration />
|
||||
<Scripts />
|
||||
{process.env.NODE_ENV === "development" && <LiveReload />}
|
||||
|
||||
Reference in New Issue
Block a user