Reads the shoot packages and an optional banner from the CMS at build time

The build asks GET /api/v1/offerings and bakes the packages into the pages,
with a committed snapshot as fallback so a CMS outage never breaks the build
or shows an empty price. The form choices and ?pakket= use the same list. An
offering with layout=banner becomes an optional band under the price cards.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 08:13:01 +01:00
co-authored by Claude Sonnet 5.5
parent 7737104a77
commit 5bfbde1881
16 changed files with 626 additions and 40 deletions
+6 -2
View File
@@ -9,7 +9,7 @@ import IntroGallery from '../components/home/IntroGallery/IntroGallery';
import heroContent from '../content/heroContent';
import homeContent from '../content/homeContent';
import instagramContent from '../content/instagramContent';
import packages from '../content/packages';
import packages, { banner } from '../content/packages';
import testimonials from '../content/testimonials';
import siteContent from '../content/siteContent';
import { visibleSocials } from '../lib/visibleSocials';
@@ -42,7 +42,11 @@ function Index() {
<Hero content={heroContent} socials={siteContent.socials} />
<IntroGallery content={homeContent.intro} />
<AboutBlock content={homeContent.about} />
<Pricing content={homeContent.pricing} packages={packages} />
<Pricing
content={homeContent.pricing}
packages={packages}
banner={banner}
/>
<Testimonials
content={homeContent.testimonials}
testimonials={testimonials}