feat: add footer

This commit is contained in:
2025-01-27 00:37:59 +00:00
parent 9c83216aee
commit 4e3d6212df

View File

@@ -1,10 +1,11 @@
import { import {
isRouteErrorResponse, Link,
Links, Links,
Meta, Meta,
Outlet, Outlet,
Scripts, Scripts,
ScrollRestoration, ScrollRestoration,
isRouteErrorResponse,
} from "react-router" } from "react-router"
import type { Route } from "./+types/root" import type { Route } from "./+types/root"
@@ -37,6 +38,29 @@ export function Layout({ children }: { children: React.ReactNode }) {
{children} {children}
<ScrollRestoration /> <ScrollRestoration />
<Scripts /> <Scripts />
<footer className="w-full opacity-50 flex items-center justify-center px-4 py-8 text-xs">
<div className="w-full max-w-xl">
<p>
Made by{" "}
<Link
className="underline"
prefetch="intent"
to="https://kennethnym.com"
>
kennethnym
</Link>
<span className="mx-1">&middot;</span>
<Link
className="underline"
prefetch="intent"
to="https://github.com/kennethnym/track-my-app"
>
GitHub
</Link>
</p>
</div>
</footer>
</body> </body>
</html> </html>
) )