# Code Summary — Unit 3: Prijzen Plan: [prijzen-code-generation-plan.md](../../plans/prijzen-code-generation-plan.md). Functional design: [../functional-design/](../functional-design/). Branch: `feature/homepage-sections`. ## Files ### Created | File | Purpose | |---|---| | `web/src/assets/home/deco-1.png`, `deco-2.png` | Design decorations, unchanged (15 KB, 42 KB) | | `web/src/content/packages.ts` | The three live packages (Zwangerschap 175, Newborn 185, Gezin 175) | | `web/src/lib/formatPrice.ts` + test | `€ 175` with a non-breaking space (BR-PRICE-01) | | `web/src/lib/visiblePackages.ts` + test | `isValidPackage` + filter with first-wins de-duplication (BR-PRICE-02) | | `web/src/lib/bookLabel.ts` + test | "Boek " up to 14 characters, else "Boek je shoot" + hidden name (BR-BOOK-02) | | `web/src/lib/packageFromSearch.ts` + test | `?pakket=` → known id or undefined (BR-PARAM-01) | | `web/src/components/home/Pricing/Pricing.tsx` + test | The section: decorations, heading, card grid | | `web/src/components/home/Pricing/PriceCard.tsx` + test | One package card with the booking link | ### Modified | File | Change | |---|---| | `web/src/content/types.ts` | `PricingPackage`; `HomeContent.pricing` | | `web/src/content/homeContent.ts` | Pricing title, lead, decorations | | `web/src/recipes/linkButton.ts` | `size: 'fit'` — no wrapping, smaller side padding on phones (BR-BOOK-03); default unchanged | | `web/src/theme.ts` | Shadow token `lift` for the card hover | | `web/src/test/arbitraries.ts` | `pricingPackage`, `uniquePackages`, `anyPackage` | | `web/src/routes/index.tsx` | `validateSearch` keeps `pakket` only as a string; renders `Pricing` after `AboutBlock` | | `web/src/app.test.tsx` | "Prijzen" in the page order; `?pakket=newborn`, `?pakket=123` and `?pakket=