Workspace detection, reverse engineering of web/, requirements with answered verification questions, the execution plan and the open application design questions for the frontend-shell feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.0 KiB
2.0 KiB
API Documentation
REST APIs
None. The project has no back-end yet. The static design README anticipates these future endpoints on a .NET API:
POST /api/contact— contact form, payload{ naam, email, onderwerp, bericht }/api/pages,/api/portfolio,/api/packages— CMS content
Internal APIs
Routes (TanStack Router, file-based)
| Path | File | Head | Component |
|---|---|---|---|
| (root) | routes/__root.tsx |
siteHead |
AppShell via RootLayout |
/ |
routes/index.tsx |
pageHead(...) |
Hero |
/over-mij |
routes/over-mij.tsx |
pageHead(...) |
placeholder |
seo.ts
- Methods:
pageHead({ title: string, description: string })→{ meta: [...] };siteHeadconstant - Return Types: TanStack Router
headoption object (title, description, og:title, og:description)
Components (props)
AppShell()— no propsNavigationBar()— no props; reads route viauseRouterState, scroll viauseScrolledPastNavLink(props: ComponentProps<ChakraLink>)MobileNav({ id: string, open: boolean, onClose: () => void })Footer()— no propsLinkButton(props: ChakraLink props & { variant?: 'outline' | 'accent' | 'light' })Hero({ content: HeroContent }),HeroArrows({ onPrev, onNext }),HeroSocials({ socials: HeroSocial[] })
Hooks
useScrolledPast(getThreshold: () => number): boolean—getThresholdmust be referentially stable (it is an effect dependency)useHeroSlider(count: number)→{ active, reducedMotion, autoplay, paused, next, prev, handlers }
Data Models
NavItem (navItems.ts)
- Fields:
to(route path),label(Dutch menu label) - Validation:
as const—tomust be a registered route for type-safeLink
HeroContent (Hero/types.ts)
- Fields:
title,tagline,cta: { label, to },slides: { id, src, alt }[],socials: { platform, href }[] - Relationships:
HeroSocial.platformis aSocialPlatformkey fromsocialPlatforms.ts - Validation: empty
href→ social not shown