Branchwell

AI Resource Pro / website · airesourcepro.com / src / components / site-footer.tsx

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