diff --git a/components/blocks/ReferencesSlider.tsx b/components/blocks/ReferencesSlider.tsx index f9c04ad13..bbf5dcc92 100644 --- a/components/blocks/ReferencesSlider.tsx +++ b/components/blocks/ReferencesSlider.tsx @@ -110,24 +110,17 @@ export function ReferencesSlider(props: ReferencesSliderProps) {
- {/* Pure CSS Full-Bleed Alignment Container */} -
-
- {references.map((ref, i) => { + {/* Carousel: stays inside container for left alignment, breaks right to viewport edge */} +
+ {references.map((ref, i) => { const imgSrc = ref.image ? (typeof ref.image === 'string' ? ref.image : ref.image.url) : fallbacks[i % fallbacks.length]; @@ -139,7 +132,7 @@ export function ReferencesSlider(props: ReferencesSliderProps) { whileInView={{ opacity: 1, x: 0 }} viewport={{ once: true, margin: "-50px" }} transition={{ delay: i * 0.1, duration: 1.0, ease: [0.16, 1, 0.3, 1] }} - className="flex-shrink-0 w-[320px] md:w-[480px] snap-start group pointer-events-auto mr-6" + className="flex-shrink-0 w-[320px] md:w-[480px] snap-start group pointer-events-auto" > ); })} -
+ {/* Right padding spacer so last card doesn't clip at viewport edge */} +
diff --git a/components/layout/MobileBottomNav.tsx b/components/layout/MobileBottomNav.tsx index a15980c29..8d774e7c0 100644 --- a/components/layout/MobileBottomNav.tsx +++ b/components/layout/MobileBottomNav.tsx @@ -130,7 +130,7 @@ export function MobileBottomNav({ navLinks, currentLocale }: MobileBottomNavProp {item.label} @@ -144,7 +144,7 @@ export function MobileBottomNav({ navLinks, currentLocale }: MobileBottomNavProp key={item.label} onClick={() => setIsFlyoutOpen(!isFlyoutOpen)} className={`relative flex flex-col items-center justify-center flex-1 h-[62px] transition-colors duration-300 select-none w-full focus:outline-none ${ - isActive ? 'text-primary' : 'text-neutral-600 hover:text-neutral-900' + isActive ? 'text-primary' : 'text-neutral-800 hover:text-neutral-900' }`} style={{ WebkitTapHighlightColor: 'transparent', touchAction: 'manipulation' }} > @@ -159,7 +159,7 @@ export function MobileBottomNav({ navLinks, currentLocale }: MobileBottomNavProp href={mappedUrl} onClick={() => setIsFlyoutOpen(false)} className={`relative flex flex-col items-center justify-center flex-1 h-[62px] transition-colors duration-300 select-none ${ - isActive ? 'text-primary' : 'text-neutral-600 hover:text-neutral-900' + isActive ? 'text-primary' : 'text-neutral-800 hover:text-neutral-900' }`} style={{ WebkitTapHighlightColor: 'transparent', touchAction: 'manipulation' }} >