- Dark mode: the countdown card, timeline section, Giving text, error text, the Leadership button, skeletons and the admin's dark text all follow the tokens; logos get a light plate in dark mode - One BRAND accent (the button token, so the admin palette reaches every page) and one ACCENTS family in color.ts, replacing 20 local teal constants and the purple, ochre and rust section colours; neon green and gold become mint and brand green - Shadows are tinted with the site's ink; glow shadows are gone - One giving label, Give, in the nav, footer and Giving page - Phosphor icons replace the hand-drawn SVGs and the glyph icons; Pathfinder paths pick a named icon (emoji still shown) and lose the watermark - Home keeps two eyebrows; StatsBand's title is a real heading; section headings step down under the page title - Nav links switch to the menu below lg, so they never wrap; jump links land clear of the header; press feedback on buttons - Empty sections say what's coming and who to ask; loading is a skeleton; form placeholders and borders are readable; one corner-radius rule; theme-color for both modes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
176 lines
6.8 KiB
TypeScript
176 lines
6.8 KiB
TypeScript
import { Link } from "react-router-dom";
|
|
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
|
import nguLogo from "../assets/logos/NGU_Logo.svg";
|
|
import PlatformIcon from "./PlatformIcon.tsx";
|
|
|
|
const Social_Links = [
|
|
{ label: "Instagram", href: "https://www.instagram.com/nextgenerationunity/", platform: "instagram" },
|
|
{ label: "Facebook", href: "https://www.facebook.com/NextGenerationofUnity", platform: "facebook" },
|
|
{ label: "Discord", href: "https://discord.com/invite/AtngzpqaX5", platform: "discord" },
|
|
];
|
|
|
|
// Give's destination lives in navConfig so the footer and the nav can't drift.
|
|
// Only the label differs down here.
|
|
const giveAction = NAV_ACTIONS.find((a) => a.variant === "fancy");
|
|
|
|
/* An internal route, or an off-site address opened in a new tab. */
|
|
type TouchLink = { label: string } & (
|
|
| { external?: false; to: string }
|
|
| { external: true; href: string }
|
|
);
|
|
|
|
const Get_In_Touch: TouchLink[] = [
|
|
{ label: "Feedback", to: "/feedback"},
|
|
{ label: "Contact Us", to: "/leadership#contact" },
|
|
];
|
|
|
|
/* Under the logo. The street address is where NGU is, not where
|
|
to send post, and says so. */
|
|
const Organization_Details = {
|
|
street: "1901 NW Blue Parkway",
|
|
cityLine: "Unity Village, MO 64065",
|
|
addressNote: "Physical address, not for mail",
|
|
nonprofit: "Next Generation of Unity is a qualified 501(c)(3) nonprofit organization.",
|
|
taxId: "33-2819320",
|
|
};
|
|
|
|
const Footer_Links = [
|
|
{ label: "Privacy Policy", to: "/privacy" },
|
|
{ label: "Terms of Service", to: "/terms" },
|
|
];
|
|
|
|
const footerLinkClass =
|
|
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
|
|
|
const pageLinkClass =
|
|
"text-white/80 hover:text-[#aac992] text-sm font-semibold transition-colors";
|
|
|
|
const sectionLinkClass =
|
|
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
|
|
|
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
|
|
|
export default function Footer() {
|
|
return (
|
|
<footer className="py-16 px-6" style={{ background: "rgba(0, 47, 58, 0.92)" }}>
|
|
<div className="max-w-6xl mx-auto">
|
|
<div className="grid grid-cols-1 md:grid-cols-12 gap-10 md:gap-8 mb-12">
|
|
{/* Brand and details on top, the site map across the full
|
|
width below them. */}
|
|
<div className="md:col-span-9 text-center md:text-left">
|
|
<Link to="/" className="inline-block">
|
|
<img src={nguLogo} alt="Next Generation of Unity" className="h-14 w-auto" />
|
|
</Link>
|
|
|
|
<address className="mt-5 not-italic text-sm leading-relaxed text-white/60">
|
|
{Organization_Details.street}
|
|
<br />
|
|
{Organization_Details.cityLine}
|
|
<br />
|
|
<span className="text-white/65">({Organization_Details.addressNote})</span>
|
|
</address>
|
|
<p className="mt-3 max-w-xl text-sm leading-relaxed text-white/60">
|
|
{Organization_Details.nonprofit} Tax ID: {Organization_Details.taxId}.
|
|
</p>
|
|
|
|
{/* Site map: mirrors both nav tiers */}
|
|
<nav aria-label="Site map" className="mt-10">
|
|
<h2 className={headingClass}>Site Map</h2>
|
|
<ul className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-x-6 gap-y-6">
|
|
{PAGE_LINKS.map((page) => {
|
|
const sections = PAGE_SECTIONS[page.path] ?? [];
|
|
return (
|
|
<li key={page.path}>
|
|
<Link to={page.path} className={pageLinkClass}>
|
|
{page.label}
|
|
</Link>
|
|
|
|
{sections.length > 0 && (
|
|
<ul className="mt-2 flex flex-col gap-1.5">
|
|
{sections.map((section) => (
|
|
<li key={section.hash}>
|
|
<Link
|
|
to={`${page.path}${section.hash}`}
|
|
className={sectionLinkClass}
|
|
>
|
|
{section.label.replace(/^#/, "")}
|
|
</Link>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
)}
|
|
</li>
|
|
);
|
|
})}
|
|
</ul>
|
|
</nav>
|
|
|
|
{giveAction && (
|
|
<a
|
|
href={giveAction.to}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="inline-block mt-8 px-6 py-2.5 rounded-full text-sm font-bold text-white whitespace-nowrap transition-all duration-200 hover:scale-105"
|
|
style={{ background: "var(--color-action)" }}
|
|
>
|
|
{giveAction.label}
|
|
</a>
|
|
)}
|
|
</div>
|
|
|
|
{/* Socials + get in touch */}
|
|
<div className="md:col-span-3 flex flex-col items-center md:items-start">
|
|
<div className="flex gap-4 mb-8">
|
|
{Social_Links.map(({ label, href, platform }) => (
|
|
<a
|
|
key={label}
|
|
href={href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
aria-label={label}
|
|
className="footer-icons w-10 h-10 rounded-full flex items-center justify-center text-white/70 transition-colors"
|
|
style={{ background: "rgba(255,255,255,0.08)", border: "1px solid rgba(255,255,255,0.15)" }}
|
|
>
|
|
<PlatformIcon platform={platform} className="w-6 h-6" />
|
|
</a>
|
|
))}
|
|
</div>
|
|
|
|
<h2 className={headingClass}>Get in Touch</h2>
|
|
<ul className="flex flex-col gap-3">
|
|
{Get_In_Touch.map((link) => (
|
|
<li key={link.label}>
|
|
{link.external ? (
|
|
<a
|
|
href={link.href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className={pageLinkClass}
|
|
>
|
|
{link.label}
|
|
</a>
|
|
) : (
|
|
<Link to={link.to} className={pageLinkClass}>
|
|
{link.label}
|
|
</Link>
|
|
)}
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="border-t border-white/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
|
<p className="text-white/65 text-sm">© 2026 Next Generation of Unity. All rights reserved.</p>
|
|
<div className="flex gap-6">
|
|
{Footer_Links.map((link) => (
|
|
<Link key={link.label} to={link.to} className={footerLinkClass}>
|
|
{link.label}
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|