Shoot pages follow design E: breadcrumb, story blocks, process timeline with icons, photo mosaic, FAQ, package block and booking call to action, with per-shoot OG images. The navigation gets a "Soorten fotoshoots" submenu (desktop panel, mobile group) built from shootTypes, with exact current-page matching in menu, footer and breadcrumb. A 404 under /soorten-fotoshoots/ also offers a link back to the overview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import shootTypes from './content/shootTypes.ts';
|
|
import { shootNavItems } from './lib/shootNavItems.ts';
|
|
import type { FileRoutesByTo } from './routeTree.gen.ts';
|
|
|
|
// Menu's verwijzen naar routes, en routes zijn code: het CMS kan geen
|
|
// pagina's toevoegen. Een tikfout in `to` is daardoor een typefout.
|
|
export type RoutePath = keyof FileRoutesByTo;
|
|
|
|
export interface NavItem {
|
|
to: RoutePath;
|
|
label: string;
|
|
// Sub-pages, one level only; an empty array counts as none
|
|
children?: readonly NavItem[];
|
|
}
|
|
|
|
// Whether the item has a submenu (a non-empty list of children)
|
|
export function hasChildren(
|
|
item: NavItem,
|
|
): item is NavItem & { children: readonly NavItem[] } {
|
|
return (item.children?.length ?? 0) > 0;
|
|
}
|
|
|
|
// Hoofdmenu: desktopnavigatie en mobiel menu
|
|
export const mainNav: readonly NavItem[] = [
|
|
{ to: '/', label: 'Home' },
|
|
{ to: '/over-mij', label: 'Over mij' },
|
|
{ to: '/portfolio', label: 'Portfolio' },
|
|
{
|
|
to: '/soorten-fotoshoots',
|
|
label: 'Soorten fotoshoots',
|
|
// One source: a new shoot type shows up in the menu by itself (D5)
|
|
children: shootNavItems(shootTypes),
|
|
},
|
|
{ to: '/contact', label: 'Contact' },
|
|
];
|
|
|
|
// Menu in de onderste footerbalk
|
|
export const footerNav: readonly NavItem[] = [
|
|
{ to: '/portfolio', label: 'Portfolio' },
|
|
{ to: '/soorten-fotoshoots', label: 'Soorten fotoshoots' },
|
|
{ to: '/contact', label: 'Contact' },
|
|
{ to: '/privacyverklaring', label: 'Privacyverklaring' },
|
|
];
|