import { Box, Grid } from '@chakra-ui/react'; import DeferredImage from '@/components/DeferredImage/DeferredImage'; import PageSection from '@/components/PageSection/PageSection'; import Reveal from '@/components/Reveal/Reveal'; import SectionHeading from '@/components/SectionHeading/SectionHeading'; import type { HomeContent, PricingPackage } from '@/content/types'; import { visiblePackages } from '@/lib/visiblePackages'; import PriceCard from './PriceCard'; const TITLE_ID = 'pricing-title'; const STAGGER = 0.08; // Where the two decorations sit (design .pricing__deco--1 and --2). The // design measures from the whole section; here they sit in the content box, // so the second one moves down into the section's bottom padding, or the // last card would cover it. const decorationPositions = [ { top: '8%', left: '2%' }, { bottom: 'calc(-0.6 * {spacing.sectionY})', right: '2%' }, ]; type PricingProps = { content: HomeContent['pricing']; packages: PricingPackage[]; }; // "Prijzen": the shoot packages as cards (design .pricing). One column on // phones and tablets, three from `lg`. Without a valid package the section // is left out entirely. export default function Pricing({ content, packages }: PricingProps) { const shown = visiblePackages(packages); if (shown.length === 0) return null; return ( {content.decorations.map((decoration, index) => ( ); }