feat: add footer
This commit is contained in:
26
app/root.tsx
26
app/root.tsx
@@ -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">·</span>
|
||||||
|
<Link
|
||||||
|
className="underline"
|
||||||
|
prefetch="intent"
|
||||||
|
to="https://github.com/kennethnym/track-my-app"
|
||||||
|
>
|
||||||
|
GitHub
|
||||||
|
</Link>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user