File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,9 +64,11 @@ export function EditionUseCaseCard({
6464 </ p >
6565
6666 { link ?. url && link ?. label && (
67- < LinkButton href = { link . url } className = "mt-auto pt-2" >
68- { link . label }
69- </ LinkButton >
67+ < div className = "mt-auto pt-2" >
68+ < LinkButton href = { link . url } className = "my-2" >
69+ { link . label }
70+ </ LinkButton >
71+ </ div >
7072 ) }
7173 </ div >
7274 </ div >
Original file line number Diff line number Diff line change @@ -113,14 +113,19 @@ export function SwipeCardSection({ content }: SwipeCardSectionProps) {
113113 onDragEnd = { handleDragEnd }
114114 >
115115 < div className = "relative flex w-full items-stretch justify-center" >
116- < div className = "h-full w-[64vw] max-w-4xl opacity-0 pointer-events-none" >
117- < EditionUseCaseCard
118- title = { cards [ focusedIndex ] ?. title ?? "" }
119- description = { cards [ focusedIndex ] ?. description ?? "" }
120- image = { cards [ focusedIndex ] ?. image }
121- link = { cards [ focusedIndex ] ?. link }
122- isFocused
123- />
116+ < div className = "invisible pointer-events-none grid w-[60%]" >
117+ { cards . map ( ( card , index ) => (
118+ < div key = { card . id || index } className = "col-start-1 row-start-1" >
119+ < EditionUseCaseCard
120+ title = { card . title }
121+ description = { card . description }
122+ image = { card . image }
123+ link = { card . link }
124+ isFocused
125+ className = "h-auto"
126+ />
127+ </ div >
128+ ) ) }
124129 </ div >
125130 { cards . map ( ( card , index ) => {
126131 const offset = index - focusedIndex
@@ -132,7 +137,7 @@ export function SwipeCardSection({ content }: SwipeCardSectionProps) {
132137 key = { card . id || index }
133138 className = { cn (
134139 "absolute inset-y-0 h-full w-full transition-all duration-500 ease-out" ,
135- "left-1/2 w-[64vw] max-w-4xl " ,
140+ "left-1/2 w-[60%] " ,
136141 ! isVisibleMobile && "lg:opacity-100 lg:pointer-events-auto opacity-0 pointer-events-none" ,
137142 ! isVisibleDesktop && "lg:opacity-0 lg:pointer-events-none" ,
138143 ) }
You can’t perform that action at this time.
0 commit comments