Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import { Geist_Mono } from "next/font/google";
import { Providers } from "./providers";
import { NavBar } from "../components/NavBar";
import { Footer } from "../components/Footer";
import "./globals.css";

const geistMono = Geist_Mono({
Expand All @@ -24,7 +25,8 @@ export default function RootLayout({
<body className={`${geistMono.variable} antialiased`}>
<Providers>
<NavBar />
<div className="pt-11">{children}</div>
<div className="pt-11 min-h-screen">{children}</div>
<Footer />
</Providers>
</body>
</html>
Expand Down
34 changes: 34 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Link from "next/link";

export function Footer() {
return (
<footer className="border-t border-[var(--border)] bg-[var(--bg)] px-4 py-6 mt-16">
<div className="mx-auto max-w-5xl flex flex-col gap-4 text-xs">
<div className="flex flex-wrap items-center justify-between gap-4">
<div className="flex items-center gap-4 text-muted">
<Link href="/discover" className="hover:text-foreground transition-colors">
discover
</Link>
<Link href="/create" className="hover:text-foreground transition-colors">
create
</Link>
<a
href="https://github.com/realproject7/plotlink"
target="_blank"
rel="noopener noreferrer"
className="hover:text-foreground transition-colors"
>
github
</a>
</div>
<span className="text-muted">
built on <span className="text-accent-dim">Base</span>
</span>
</div>
<div className="text-muted/60 text-[10px]">
<span className="text-accent-dim">$</span> PlotLink &copy; {new Date().getFullYear()}
</div>
</div>
</footer>
);
}
Loading