Adds the shoot page layout and the shoot-type submenu
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>
This commit is contained in:
+17
-1
@@ -1,3 +1,5 @@
|
||||
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
|
||||
@@ -7,6 +9,15 @@ 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
|
||||
@@ -14,7 +25,12 @@ export const mainNav: readonly NavItem[] = [
|
||||
{ to: '/', label: 'Home' },
|
||||
{ to: '/over-mij', label: 'Over mij' },
|
||||
{ to: '/portfolio', label: 'Portfolio' },
|
||||
{ to: '/soorten-fotoshoots', label: 'Soorten fotoshoots' },
|
||||
{
|
||||
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' },
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user