Add footer to website.

This commit is contained in:
Chris Parsons 2026-04-22 22:20:19 -07:00
parent 886f9f1847
commit 9cf968b26b
3 changed files with 39 additions and 31 deletions

View file

@ -0,0 +1,32 @@
import { Link } from "react-router";
const FOOTER_LINKS = [
{ label: "Home", to: "/" },
{ label: "Rules", to: "/rules" },
{ label: "How to Play", to: "/how-to-play" },
{ label: "Support", to: "/support" },
{ label: "Privacy Policy", to: "/privacy-policy" },
];
export function Footer() {
return (
<footer
className="flex flex-col items-start gap-3 border-t px-10 py-5 text-xs sm:flex-row sm:items-center sm:justify-between"
style={{ color: "rgb(255 255 255 / 28%)" }}
>
<span>© 2026 Brackt. All rights reserved.</span>
<nav className="flex gap-5">
{FOOTER_LINKS.map(({ label, to }) => (
<Link
key={label}
to={to}
className="transition-colors hover:text-muted-foreground"
style={{ color: "inherit" }}
>
{label}
</Link>
))}
</nav>
</footer>
);
}

View file

@ -300,14 +300,6 @@ const FEATURES = [
},
];
const FOOTER_LINKS = [
{ label: "Home", to: "/" },
{ label: "Rules", to: "/rules" },
{ label: "How to Play", to: "/how-to-play" },
{ label: "Support", to: "/support" },
{ label: "Privacy Policy", to: "/privacy-policy" },
];
// ─── Main Landing Page ────────────────────────────────────────────────────────
export function LandingPage() {
@ -442,26 +434,6 @@ export function LandingPage() {
</Button>
</div>
</section>
{/* ── Footer ── */}
<footer
className="flex flex-col items-start gap-3 border-t px-10 py-5 text-xs sm:flex-row sm:items-center sm:justify-between"
style={{ color: "rgb(255 255 255 / 28%)" }}
>
<span>© 2026 Brackt. All rights reserved.</span>
<nav className="flex gap-5">
{FOOTER_LINKS.map(({ label, to }) => (
<Link
key={label}
to={to}
className="transition-colors hover:text-muted-foreground"
style={{ color: "inherit" }}
>
{label}
</Link>
))}
</nav>
</footer>
</div>
);
}

View file

@ -17,6 +17,7 @@ import { ClerkProvider } from "@clerk/react-router";
import { dark } from "@clerk/themes";
import { Toaster } from "~/components/ui/sonner";
import { BracktGradients } from "~/components/ui/BracktGradients";
import { Footer } from "~/components/marketing/Footer";
import { isUserAdminByClerkId } from "~/models/user";
import { AlertCircle, FileQuestion, Lock, ShieldOff, ServerCrash } from "lucide-react";
@ -83,9 +84,12 @@ export default function App({ loaderData }: Route.ComponentProps) {
{isDraftRoute ? (
<Outlet />
) : (
<main>
<Outlet />
</main>
<>
<main>
<Outlet />
</main>
<Footer />
</>
)}
<Toaster />
</ClerkProvider>