import { Box, Grid } from '@chakra-ui/react'; import DeferredImage from '@/components/DeferredImage/DeferredImage'; import HomeSection from '@/components/HomeSection/HomeSection'; import Reveal from '@/components/Reveal/Reveal'; import SectionHeading from '@/components/SectionHeading/SectionHeading'; import type { HomeContent } from '@/content/types'; const TITLE_ID = 'intro-title'; // Every other photo sits lower, so the row is not a rigid block (design // .intro-gallery figure:nth-child(2|4)) const OFFSET = 'clamp(1.5rem, 4vw, 3.5rem)'; // Delay between photos fading in, as in the design's .reveal:nth-child const STAGGER = 0.08; type IntroGalleryProps = { content: HomeContent['intro']; }; // "Lifestyle fotografie": heading with intro and a gallery of four photos // (design .intro-gallery). 4 columns on desktop, 2 on tablet, 1 on phones. export default function IntroGallery({ content }: IntroGalleryProps) { return ( {content.photos.map((photo, index) => ( ))} ); }