- The header's second strip is gone: each top link drops down its page's sections on hover or keyboard focus. - Retreats, Community, Resources, Organization and History get the admin editors' "On this page" column (SectionNav), sticky at the left from lg up, with the section being read lit. - Home's sections in the dropdown, mobile menu, footer site map, the feedback form and the QR maker are the bands the front page is showing, in its order and under its headings (navSections.ts, frontPageBands.ts, which Home.tsx now draws from too). - Resources comes before Organization in the nav and footer. - The Organization page draws from its own editor's content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52 lines
1.8 KiB
TypeScript
52 lines
1.8 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: "Resources", path: "/resources" },
|
|
{ label: "Organization", path: "/organization" },
|
|
{ label: "History", path: "/history" },
|
|
];
|
|
|
|
// Sections belong to a page, keyed by that page's path: the header's
|
|
// dropdowns, the mobile menu and the footer list them (navSections.ts).
|
|
// The front page's aren't here: they follow the bands it's showing.
|
|
export const PAGE_SECTIONS: Record<string, Array<{ label: string; hash: string }>> = {
|
|
"/retreats": [
|
|
{ label: "National", hash: "#national" },
|
|
{ label: "Regional", hash: "#regional" },
|
|
{ label: "Partner Events", hash: "#partner"},
|
|
],
|
|
"/community": [
|
|
{ label: "Community Blog", hash: "#blog" },
|
|
{ label: "Local Groups", hash: "#groups" },
|
|
{ label: "Unity Regions", hash: "#regions" },
|
|
{ label: "Partner Organizations", hash: "#partners" },
|
|
],
|
|
"/organization": [
|
|
{ label: "Mission & Values", hash: "#mission" },
|
|
{ label: "Leadership", hash: "#leadership" },
|
|
{ label: "Details & Contact", 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: "/organization#contact", variant: "ghost" },
|
|
{
|
|
label: "Give",
|
|
to: "/give",
|
|
variant: "fancy",
|
|
external: true,
|
|
},
|
|
];
|