fix: restrain white gradient to left, add subtle bottom fade, make navbar fixed & solid with exact config links, and fix our tools section on mobile

This commit is contained in:
2026-11-05 17:49:46 +05:30
parent df3f1541b4
commit e592b397cc
3 changed files with 49 additions and 55 deletions
@@ -177,12 +177,10 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
key={item.id}
onMouseEnter={() => setHoveredId(item.id)}
onMouseLeave={() => setHoveredId(null)}
className="w-[82vw] max-w-[320px] md:max-w-none md:w-auto shrink-0 md:shrink md:flex-1 snap-start transition-[flex-grow] duration-700 ease-[cubic-bezier(0.16,1,0.3,1)] flex flex-col min-w-0"
style={{
flexGrow: flexGrowValue,
flexShrink: 1,
flexBasis: '0%',
}}
className="w-[82vw] sm:w-[320px] md:w-full shrink-0 md:shrink snap-start transition-[flex-grow] duration-1000 ease-[cubic-bezier(0.16,1,0.3,1)] will-change-[flex-grow] flex flex-col min-w-0"
>
{/* Window Container with strictly locked pixel height & landscape aspect */}
{item.mediaType === 'comparison' ? (
@@ -465,7 +463,7 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
playsInline
preload="auto"
style={{ borderRadius: '28px' }}
className="absolute inset-y-0 left-1/2 -translate-x-1/2 h-full w-[680px] max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
className="absolute inset-0 w-full h-full md:inset-y-0 md:left-1/2 md:-translate-x-1/2 md:w-[680px] md:max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
/>
{/* GPU-composited overlay (opacity only) */}
<div
@@ -498,7 +496,7 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
src={item.afterUrl}
alt="After"
style={{ borderRadius: '28px' }}
className="absolute inset-y-0 left-1/2 -translate-x-1/2 h-full w-[680px] max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
className="absolute inset-0 w-full h-full md:inset-y-0 md:left-1/2 md:-translate-x-1/2 md:w-[680px] md:max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
loading="lazy"
/>
@@ -516,7 +514,7 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
src={item.beforeUrl}
alt="Before"
style={{ borderRadius: '28px' }}
className="absolute inset-y-0 left-1/2 -translate-x-1/2 h-full w-[680px] max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
className="absolute inset-0 w-full h-full md:inset-y-0 md:left-1/2 md:-translate-x-1/2 md:w-[680px] md:max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
loading="lazy"
/>
</div>
@@ -573,7 +571,7 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
src={item.imageUrl || item.afterUrl || item.beforeUrl || '/brand/og-default.png'}
alt={item.title}
style={{ borderRadius: '28px' }}
className="absolute inset-y-0 left-1/2 -translate-x-1/2 h-full w-[680px] max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
className="absolute inset-0 w-full h-full md:inset-y-0 md:left-1/2 md:-translate-x-1/2 md:w-[680px] md:max-w-none object-cover pointer-events-none [backface-visibility:hidden]"
loading="lazy"
/>
{/* GPU-composited overlay (opacity only) */}