The nav and the org pages' "All regions" and "All chapters" links used #local and #virtual, but the Community page's sections are #chapters and #regions, so those links didn't jump anywhere. The nav labels now match the section headings too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
1.9 KiB
TypeScript
59 lines
1.9 KiB
TypeScript
// Single source of truth for navigation.
|
|
// Add a page here and in App.jsx, and both tiers of the nav update.
|
|
|
|
export const PAGE_LINKS = [
|
|
{ label: "Home", path: "/" },
|
|
{ label: "Retreats", path: "/retreats" },
|
|
{ label: "Community", path: "/community" },
|
|
{ label: "Leadership", path: "/leadership" },
|
|
{ label: "Resources", path: "/resources" },
|
|
{ label: "History", path: "/history" },
|
|
];
|
|
|
|
// Sections belong to a page, keyed by that page's path.
|
|
// A page with no sections gets no subnav row.
|
|
export const PAGE_SECTIONS = {
|
|
"/": [
|
|
{ label: "#Featured", hash: "#hero" },
|
|
{ label: "#Connect", hash: "#connect" },
|
|
{ label: "#Retreats", hash: "#retreats" },
|
|
{ label: "#Calendar", hash: "#calendar" },
|
|
{ label: "#About", hash: "#numbers" },
|
|
],
|
|
"/retreats": [
|
|
{ label: "National", hash: "#national" },
|
|
{ label: "Regional", hash: "#regional" },
|
|
{ label: "Partner Events", hash: "#partner"},
|
|
],
|
|
"/community": [
|
|
{ label: "Community Blog", hash: "#blog" },
|
|
{ label: "Local Chapters", hash: "#chapters" },
|
|
{ label: "Unity Regions", hash: "#regions" },
|
|
{ label: "Partner Organizations", hash: "#partners" },
|
|
],
|
|
"/leadership": [
|
|
{ label: "Board & Staff", hash: "#board-staff" },
|
|
{ label: "Retreat Team", hash: "#retreat-team" },
|
|
{ label: "Committees & Volunteers", hash: "#committees" },
|
|
{ label: "Contact Us", hash: "#contact" },
|
|
],
|
|
"/resources": [
|
|
{ label: "Unity Teachings", hash: "#unity" },
|
|
{ label: "Branding & Marketing", hash: "#branding" },
|
|
{ label: "Partner Resources", hash: "#partner" },
|
|
],
|
|
"/history": [
|
|
{ label: "Timeline", hash: "#timeline" },
|
|
],
|
|
};
|
|
|
|
// Right-side actions. `variant` picks the styling, not the destination.
|
|
export const NAV_ACTIONS = [
|
|
{ label: "Contact Us", to: "/leadership#contact", variant: "ghost" },
|
|
{
|
|
label: "Give",
|
|
to: "/give",
|
|
variant: "fancy",
|
|
external: true,
|
|
},
|
|
];
|