Adds the Over mij page
Replaces the placeholder with the page from the design and the texts from the live site: Andrea's introduction with her portrait, how it started, two photos, life outside photography and a booking button. The page is now indexed, with its own title, description, preview image and AboutPage data about Andrea. The portrait loads straight away instead of after the page, since on phones it is the largest paint. Lighthouse no longer lets every indexed page use the homepage's lower mobile performance target; it now only applies to the homepage itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
|------|------|------|-----------|---------|
|
||||
| (root) | `routes/__root.tsx` | `siteHead(siteContent)` | `AppShell` | — |
|
||||
| `/` | `routes/index.tsx` | `pageHead('/')` | `Hero` + six home sections; search `?pakket=` | yes |
|
||||
| `/over-mij` | `routes/over-mij.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
| `/over-mij` | `routes/over-mij.tsx` | `pageHead('/over-mij')` + `AboutPage` JSON-LD | `PageIntro`, `AboutIntro`, `StorySection` ×2, `PhotoDuo`, `LinkButton` | yes |
|
||||
| `/portfolio` | `routes/portfolio.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
| `/soorten-fotoshoots` | `routes/soorten-fotoshoots.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
| `/contact` | `routes/contact.tsx` | `pageHead(...)` | `PageIntro` placeholder | no |
|
||||
@@ -22,7 +22,7 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
### seo.ts / sitePages.ts / sitemap.ts
|
||||
- `pageHead(path: RoutePath)` → `{ meta, links }` (title, description, robots noindex if not indexed, OG tags, canonical)
|
||||
- `siteHead(content: SiteContent)` → `{ meta, scripts }` (OG basics, JSON-LD ProfessionalService)
|
||||
- `canonicalUrl(path, base?)`, `jsonLdScript(data)`, `professionalService(content)`
|
||||
- `canonicalUrl(path, base?)`, `jsonLdScript(data)`, `structuredDataScript(data)`, `professionalService(content)` (with `@id` `businessId` and `founder` → `personId`), `person(content, site, image)`, `aboutPage(path, content, site)`
|
||||
- `sitePages: Record<RoutePath, PageMeta>`, `pageList(pages)`
|
||||
- `sitemapXml(...)` — used by `config/sitemapPlugin.ts`
|
||||
|
||||
@@ -39,6 +39,8 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
- `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, ... })`
|
||||
- `PhotoDuo({ photos: [ContentImage, ContentImage], label, 'data-testid'? })`
|
||||
- `about/AboutIntro({ content })`, `about/StorySection({ content, titleId, tone?, spacing?, children? })`, `about/RichParagraph({ paragraph: RichText })`
|
||||
- `StatusPage({ title, children, actions? })`, `ErrorPage({ error, reset })`
|
||||
- `LinkButton(RouterLink props & { variant?: 'outline' | 'accent' | 'light' })`
|
||||
- `UmamiAnalytics({ hostname? })`
|
||||
@@ -67,6 +69,10 @@ None. There is no back-end yet (`api/` is empty). The static design README antic
|
||||
- **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`
|
||||
### LinkTarget / InlineLink / RichText
|
||||
- **Fields**: `{ to: RoutePath; hash? }`; `InlineLink` adds `text`; `RichText = (string | InlineLink)[]`
|
||||
### AboutPageContent
|
||||
- **Fields**: `head`, `intro` (eyebrow, title, `paragraphs: RichText[]`, image), `background`, `photos`, `personal`, `booking` (label + LinkTarget), `person` (name, jobTitle, knowsAbout)
|
||||
### PricingPackage / Testimonial
|
||||
- **Fields**: `id`, `name`, `price`, `features[]` / `id`, `shoot`, `quote`, `author`, `image`
|
||||
### SocialLink
|
||||
|
||||
@@ -16,7 +16,8 @@ graph TD
|
||||
Shell --> ToTop["BackToTop"]
|
||||
Shell --> Umami["UmamiAnalytics"]
|
||||
Outlet --> Home["routes/index.tsx: Hero + six sections"]
|
||||
Outlet --> Placeholders["over-mij, portfolio, soorten-fotoshoots, contact, privacyverklaring: PageIntro"]
|
||||
Outlet --> About["routes/over-mij.tsx: about page"]
|
||||
Outlet --> Placeholders["portfolio, soorten-fotoshoots, contact, privacyverklaring: PageIntro"]
|
||||
Home --> Hero["Hero (HeroArrows, HeroPauseButton, HeroSocials, useHeroSlider)"]
|
||||
Home --> Sections["components/home/: IntroGallery, AboutBlock, Pricing, Testimonials, ContactSection, InstagramGrid"]
|
||||
Sections --> Blocks["Shared blocks: PageSection, MediaText, Eyebrow, SectionHeading, FramedImage, DeferredImage, Reveal"]
|
||||
@@ -34,11 +35,11 @@ graph TD
|
||||
classDef support fill:#e2e8f0,stroke:#4a5568,stroke-width:1px,color:#000;
|
||||
class Main,Root entry;
|
||||
class Shell,Skip,Nav,Footer,ToTop,Umami,Outlet shell;
|
||||
class Home,Placeholders,Hero,Sections,Form page;
|
||||
class Home,About,Placeholders,Hero,Sections,Form page;
|
||||
class Content,NavData,Seo,Theme,Blocks support;
|
||||
```
|
||||
|
||||
Text alternative: main.tsx starts Sentry and mounts the router; the root route renders AppShell (skip link, NavigationBar, the page via Outlet, Footer, BackToTop, Umami); the home route renders the Hero and six sections built from shared blocks (one of them lazily loads the contact form); the other routes render placeholder PageIntros; content, navigation, SEO and theme modules support all of it.
|
||||
Text alternative: main.tsx starts Sentry and mounts the router; the root route renders AppShell (skip link, NavigationBar, the page via Outlet, Footer, BackToTop, Umami); the home route renders the Hero and six sections built from shared blocks (one of them lazily loads the contact form); the about route renders the Over mij page; the other routes render placeholder PageIntros; content, navigation, SEO and theme modules support all of it.
|
||||
|
||||
## Component Descriptions
|
||||
### main.tsx
|
||||
|
||||
@@ -35,8 +35,9 @@ Text alternative: visitors and crawlers use the website, which links out to soci
|
||||
- **E-mail the photographer** — mailto link in the footer
|
||||
- **Share / discover pages** — per-page title, description, canonical URL, Open Graph tags, JSON-LD (ProfessionalService), sitemap.xml, robots.txt
|
||||
- **Recover from errors** — 404 page inside the shell, error page with retry
|
||||
- *Placeholder pages (noindex)*: Over mij, Portfolio, Soorten fotoshoots, Contact, Privacyverklaring
|
||||
- *Planned (static design only)*: Over mij page (intro with portrait, "Hoe het begon", photo duo, "Buiten de camera om", booking button), portfolio with lightbox, shoot types and pricing page, contact page
|
||||
- **Read about the photographer** — Over mij page: introduction with portrait, how it started, two photos, life outside photography, links to the portfolio and contact, "Boek je shoot"
|
||||
- *Placeholder pages (noindex)*: Portfolio, Soorten fotoshoots, Contact, Privacyverklaring
|
||||
- *Planned (static design only)*: portfolio with lightbox, shoot types and pricing page, contact page
|
||||
- **Business Dictionary**:
|
||||
- **Shell** — the Header / page content / Footer frame shared by every page (see LAYOUT.md)
|
||||
- **Hero** — full-screen photo slider at the top of the homepage
|
||||
|
||||
@@ -14,10 +14,9 @@
|
||||
|
||||
## Technical Debt
|
||||
- Homepage mobile Lighthouse performance target is lowered to 0.8 (images not responsive, title after JavaScript); back to 0.9 is planned with responsive images from the API and prerendering
|
||||
- Five routes are placeholders (`noindex`); `lighthouserc.cjs` keeps its own list of indexed/noindex paths, guarded by a test against `sitePages.ts`
|
||||
- Four routes are placeholders (`noindex`); `lighthouserc.cjs` keeps its own list of indexed/noindex paths, guarded by a test against `sitePages.ts`
|
||||
- No responsive image pipeline (srcset/sizes); photos are single JPEGs
|
||||
- Comment language is mixed: older code is commented in Dutch, homepage-sections code in English
|
||||
- Over mij page images (`andrea-portret.jpg`, `about-1.jpg`, `about-2.jpg`) exist only in the static design, not yet in `web/src/assets`
|
||||
|
||||
## Patterns and Anti-patterns
|
||||
- **Good Patterns**: API-shaped content; pure, property-tested helpers; tokens and recipes as single source of truth; configuration as code for headers; strong accessibility baseline (axe in tests, Lighthouse accessibility 1.0)
|
||||
|
||||
@@ -56,7 +56,10 @@ Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
- `web/src/routeTree.gen.ts` — generated (do not edit)
|
||||
- `web/src/routes/__root.tsx` — root layout, site head, 404/error
|
||||
- `web/src/routes/index.tsx` — home (`/`): Hero + six sections, `?pakket=` search param
|
||||
- ★ `web/src/routes/over-mij.tsx` — placeholder with `PageIntro` (to become the real page)
|
||||
- `web/src/routes/over-mij.tsx` — the about page (indexed; `AboutPage` JSON-LD)
|
||||
- `web/src/components/about/*` — `AboutIntro`, `StorySection`, `RichParagraph`
|
||||
- `web/src/components/PhotoDuo/PhotoDuo.tsx` — two photos side by side
|
||||
- `web/src/content/aboutContent.ts` — about page content; `web/src/assets/about/*` — portrait and duo photos; `web/public/og-over-mij.jpg` — preview image
|
||||
- `web/src/routes/{portfolio,soorten-fotoshoots,contact,privacyverklaring}.tsx` — placeholders with `PageIntro`
|
||||
- `web/src/components/AppShell.tsx` — shell
|
||||
- `web/src/components/NavigationBar/*` — header, NavLink, MobileNav
|
||||
|
||||
Reference in New Issue
Block a user