File tree Expand file tree Collapse file tree
src/components/ProjectCarousel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,9 +36,29 @@ export default function ProjectCarousel({ projects }) {
3636 < BackgroundImage portrait = { project . coverImagePortrait } landscape = { project . coverImageLandscape } />
3737
3838 { /* overlay container */ }
39- < div className = "absolute inset-0 flex justify-center items-center py-24 text-paper" >
40- < TitleLarge > { project . title } </ TitleLarge >
41-
39+ < div className = "absolute inset-0 flex flex-col justify-center items-center p-4 md:p-8 pt-14 text-paper" >
40+
41+ { /* Fælles wrapper — begrænser bredden på mobil, går i row på desktop */ }
42+ < div className = "w-full max-w-sm md:max-w-none md:flex md:flex-row md:w-full" >
43+
44+ { /* Billede-kolonne */ }
45+ < div className = "w-full md:w-1/2 flex justify-center md:justify-end md:p-8" >
46+ < img
47+ src = { project . coverImageLandscape }
48+ loading = "lazy"
49+ className = "w-full md:max-w-none aspect-square md:aspect-video object-cover"
50+ />
51+ </ div >
52+
53+ { /* Tekst-kolonne */ }
54+ < div className = "w-full md:w-1/2 flex flex-col pt-3 md:p-8 gap-2 md:justify-center" >
55+ < TitleLarge > { project . title } </ TitleLarge >
56+ { project . description . map ( ( t , i ) => (
57+ < p key = { i } className = "font-light text-xs md:text-sm pb-2" > { t } </ p >
58+ ) ) }
59+ </ div >
60+
61+ </ div >
4262 </ div >
4363 </ SwiperSlide >
4464 ) ) }
You can’t perform that action at this time.
0 commit comments