fix: image height
This commit is contained in:
@@ -8,21 +8,25 @@ const slides = [
|
|||||||
label: 'Dashboard',
|
label: 'Dashboard',
|
||||||
src: '/dashboard.png',
|
src: '/dashboard.png',
|
||||||
alt: 'GreyProxy dashboard overview showing connection stats and activity',
|
alt: 'GreyProxy dashboard overview showing connection stats and activity',
|
||||||
|
fit: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Pending requests',
|
label: 'Pending requests',
|
||||||
src: '/pending_requests.png',
|
src: '/pending_requests.png',
|
||||||
alt: 'GreyProxy pending network requests with Allow and Deny controls',
|
alt: 'GreyProxy pending network requests with Allow and Deny controls',
|
||||||
|
fit: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Rules',
|
label: 'Rules',
|
||||||
src: '/rules.png',
|
src: '/rules.png',
|
||||||
alt: 'GreyProxy domain rules configuration for allow and deny policies',
|
alt: 'GreyProxy domain rules configuration for allow and deny policies',
|
||||||
|
fit: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Logs',
|
label: 'Logs',
|
||||||
src: '/logs.png',
|
src: '/logs.png',
|
||||||
alt: 'GreyProxy connection logs showing all outbound network activity',
|
alt: 'GreyProxy connection logs showing all outbound network activity',
|
||||||
|
fit: false,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -91,14 +95,21 @@ export function Observability() {
|
|||||||
onMouseLeave={() => setPaused(false)}
|
onMouseLeave={() => setPaused(false)}
|
||||||
>
|
>
|
||||||
{/* Screenshot with crossfade */}
|
{/* Screenshot with crossfade */}
|
||||||
<div className="relative rounded-lg border border-border/40 overflow-hidden bg-card/30">
|
<div className="relative rounded-lg border border-border/40 overflow-hidden bg-white">
|
||||||
|
{/* Hidden reference image to lock container height */}
|
||||||
|
<img
|
||||||
|
src={slides[0].src}
|
||||||
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
|
className="w-full h-auto invisible"
|
||||||
|
/>
|
||||||
{slides.map((slide, i) => (
|
{slides.map((slide, i) => (
|
||||||
<img
|
<img
|
||||||
key={slide.label}
|
key={slide.label}
|
||||||
src={slide.src}
|
src={slide.src}
|
||||||
alt={slide.alt}
|
alt={slide.alt}
|
||||||
className={`w-full h-auto transition-opacity duration-700 ${
|
className={`absolute inset-0 w-full h-full object-contain object-top transition-opacity duration-700 ${
|
||||||
i === active ? 'opacity-100 relative' : 'opacity-0 absolute inset-0'
|
i === active ? 'opacity-100' : 'opacity-0'
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user