--- import Layout from '../layouts/Layout.astro'; import ScrollerAnimate from '@components/ScrollerAnimate/ScrollerAnimate.svelte'; import Article from '@components/Article/Article.svelte'; import BodyText from '@components/BodyText/BodyText.svelte'; import Headline from '@components/Headline/Headline.svelte'; import graphicOne from '../assets/Photo-3468.jpg'; import graphicTwo from '../assets/Photo-3471.jpg'; import graphicThree from '../assets/Photo-3515.jpg'; import graphicFour from '../assets/Photo-3585.jpg'; import { getResponsiveGraphic } from '@utils/graphics/ResponsiveGraphic'; const graphics = await Promise.all([ { srcImg: graphicOne, alt: 'Photo one', title: 'Graphic One', description: 'a caption', notes: '', width: 'normal' as const }, { srcImg: graphicTwo, alt: 'Photo two', title: 'Graphic Two', description: 'a description', notes: 'noted', width: 'normal' as const }, { srcImg: graphicThree, alt: 'Photo three', title: 'Graphic Three', description: 'an observation', notes: '', width: 'normal' as const }, { srcImg: graphicFour, alt: 'Photo four', title: 'Graphic Four', description: 'blah', notes: 'note here', width: 'normal' as const }, ].map(async ({ srcImg, ...rest }) => { const images = await getResponsiveGraphic(srcImg as any); return { ...rest, src: images.src, srcset: images.srcSet?.attribute, }; })); ---