Plans the Over mij page
Refreshes the reverse engineering docs after the homepage sections and records the requirements, execution plan and application design for the Over mij page: live texts in the design's structure, an indexed page with its own structured data and preview image, and shared building blocks (PageSection, MediaText, Eyebrow) reused by the homepage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
| Path | File | Head | Component | Indexed |
|
||||
|------|------|------|-----------|---------|
|
||||
| (root) | `routes/__root.tsx` | `siteHead(siteContent)` | `AppShell` | — |
|
||||
| `/` | `routes/index.tsx` | `pageHead('/')` | `Hero` | yes |
|
||||
| `/` | `routes/index.tsx` | `pageHead('/')` | `Hero` + six home sections; search `?pakket=` | yes |
|
||||
| `/over-mij` | `routes/over-mij.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
| `/portfolio` | `routes/portfolio.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
| `/soorten-fotoshoots` | `routes/soorten-fotoshoots.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
@@ -32,6 +32,13 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
- `Footer({ content: SiteContent })`, `FooterColumn({ title, children })`, `FooterLink(LinkProps)`
|
||||
- `Hero({ content: HeroContent, socials: SocialLink[] })`, `HeroArrows({ onPrev, onNext })`, `HeroPauseButton({ stopped, onToggle })`, `HeroSocials({ socials })`
|
||||
- `PageIntro({ title, eyebrow?, children? })` — renders the page's only h1
|
||||
- `PageSection({ labelledBy, id?, tone?: 'paper' | 'alt', width?: 'default' | 'narrow' | 'full', spacing?: 'default' | 'tight' | 'flushTop', 'data-testid'?, children })` (was `HomeSection`)
|
||||
- `MediaText({ image, aspectRatio, 'data-testid'?, children })` — framed photo next to a text column
|
||||
- `Eyebrow(TextProps & { as?: 'p' | 'span' | 'h2' | 'h3' | 'h4' })` — accent label, optionally a heading
|
||||
- `SectionHeading({ id, title, eyebrow?, lead?, align?: 'center' | 'start', spacing?: 'default' | 'compact', focusable? })` — renders an h2
|
||||
- `FramedImage({ image: ContentImage, aspectRatio })`, `DeferredImage(ImageProps & { image, near? })`, `Reveal(BoxProps & { delay? })`
|
||||
- `IntroGallery({ content })`, `AboutBlock({ content })`, `Pricing({ content, packages })`, `PriceCard(...)`, `Testimonials({ content, testimonials })`, `ContactSection({ content, packages, enabled, email, pakket? })`, `InstagramGrid({ content, profileUrl })`
|
||||
- `ContactForm(...)`, `ContactFormGate({ enabled, email, ... })`
|
||||
- `StatusPage({ title, children, actions? })`, `ErrorPage({ error, reset })`
|
||||
- `LinkButton(RouterLink props & { variant?: 'outline' | 'accent' | 'light' })`
|
||||
- `UmamiAnalytics({ hostname? })`
|
||||
@@ -40,6 +47,7 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
- `useHeroSlider(count)` → slider state, controls, handlers, `HeroAnnouncement`
|
||||
- `useScrolledPast(getThreshold)` → boolean (stable `getThreshold` required)
|
||||
- `useRouteFocus()` — focuses `<main>` after navigation
|
||||
- `useInView({ rootMargin, skip })` → `{ ref, inView }`; `usePageLoaded()` → boolean; `useReveal()` → `{ ref, visible }`
|
||||
|
||||
### Pure helpers (`lib/`)
|
||||
- `emailAddress({ user, domain }): string | null`
|
||||
@@ -47,13 +55,20 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
- `copyrightLine(year): string`
|
||||
- `slidesToLoad(active, count): number[]`
|
||||
- `backToTopThreshold(viewportHeight): number`
|
||||
- `slideLabel`, `formatPrice`, `bookLabel`, `visiblePackages`, `visibleTestimonials`, `packageFromSearch`, `shootOptions`, `mailSubject`/`mailtoLink`, `validateField`/`validateContact`, `isLikelySpam`, `toContactPayload`, `contactFormReducer`
|
||||
|
||||
### Monitoring
|
||||
- `monitoringFor(hostname): Monitoring | null`, `startSentry(hostname?)`, `reportError(error)`
|
||||
|
||||
## Data Models
|
||||
### SiteContent (`content/types.ts`)
|
||||
- **Fields**: `footerIntro: string`, `socials: SocialLink[]`, `email: EmailAddress`
|
||||
- **Fields**: `footerIntro: string`, `socials: SocialLink[]`, `email: EmailAddress`, `contactForm: { enabled: boolean }`
|
||||
### ContentImage
|
||||
- **Fields**: `src`, `alt`, `width`, `height` (intrinsic size, reserves space)
|
||||
### HomeContent
|
||||
- **Fields**: `intro`, `about` (`eyebrow`, `title`, `paragraphs[]`, `image`, `link: { label, to: RoutePath }`), `pricing`, `testimonials`, `contact`, `instagram`
|
||||
### PricingPackage / Testimonial
|
||||
- **Fields**: `id`, `name`, `price`, `features[]` / `id`, `shoot`, `quote`, `author`, `image`
|
||||
### SocialLink
|
||||
- **Fields**: `platform: SocialPlatform` (`facebook` | `instagram`), `href: string`
|
||||
- **Validation**: shown only if `href` is a valid https URL
|
||||
|
||||
Reference in New Issue
Block a user