Branchwell

Become a Pro / website · becomeapro.ai / src / components / site-footer.tsx

Raw 2.7 KB on 5069836c1e4c4e369ebe86b13dc7d299c5bed8c0
1import Link from "next/link";
2import { Logo } from "@/components/logo";
3import { TRACKS } from "@/lib/tracks";
4
5// Site feeds
6const SOCIAL = [
7 { href: "/feed.xml", label: "RSS feed" },
8];
9
10const SITE = [
11 { href: "/getting-started", label: "Getting started" },
12 { href: "/tutorials", label: "All tutorials" },
13 { href: "/videos", label: "Videos" },
14 { href: "/about", label: "About" },
15 { href: "/privacy", label: "Privacy" },
16 { href: "/research", label: "Research" },
17 { href: "/content-rights", label: "Content rights" },
18];
19
20export function SiteFooter() {
21 return (
22 <div className="relative z-[2] border-t border-border bg-background">
23 <footer>
24 <div className="mx-auto grid max-w-[1416px] gap-10 px-4 py-14 sm:grid-cols-2 md:px-12 lg:grid-cols-4">
25 <div className="space-y-4">
26 <Logo small className="min-h-[44px]" />
27 <p className="max-w-xs text-sm text-[var(--ash)]">
28 Hands-on tutorials for Claude, ChatGPT and Codex, computer use, and AI models on your own GPU.
29 </p>
30 </div>
31 <FooterColumn title="Tracks" links={TRACKS.map((t) => ({ href: `/${t.slug}`, label: t.name }))} />
32 <FooterColumn title="Follow" links={SOCIAL} external />
33 <FooterColumn title="Site" links={SITE} />
34 </div>
35 <p className="mx-auto max-w-[1416px] px-4 pb-4 font-mono text-xs uppercase tracking-[0.07em] text-[var(--ash)] md:px-12">
36 AI Resource Pro
37 </p>
38 <p className="mx-auto max-w-[1416px] px-4 pb-10 text-xs leading-relaxed text-[var(--ash)] md:px-12">
39 Claude, Claude Code and Anthropic are trademarks of Anthropic, PBC. OpenAI, ChatGPT and Codex are trademarks of
40 OpenAI. They appear here only to identify those products; AI Resource Pro is independent and not affiliated with or
41 endorsed by either company.
42 </p>
43 </footer>
44 </div>
45 );
46}
47
48
49
50function FooterColumn({
51 title,
52 links,
53 external,
54}: {
55 title: string;
56 links: { href: string; label: string }[];
57 external?: boolean;
58}) {
59 return (
60 <div>
61 <h3 className="mb-4 font-mono text-xs font-medium uppercase tracking-[0.08em] text-[var(--ash)]">{title}</h3>
62 <ul className="space-y-1 text-sm text-[var(--mist)]">
63 {links.map((l) => (
64 <li key={l.href}>
65 {external ? (
66 <a href={l.href} target="_blank" rel="noopener noreferrer" className="inline-flex min-h-[44px] items-center hover:text-foreground">
67 {l.label}
68 </a>
69 ) : (
70 <Link href={l.href} className="inline-flex min-h-[44px] items-center hover:text-foreground">
71 {l.label}
72 </Link>
73 )}
74 </li>
75 ))}
76 </ul>
77 </div>
78 );
79}