diff --git a/src/components/sections/DinoHero.tsx b/src/components/sections/DinoHero.tsx index 6890dc7..723dd42 100644 --- a/src/components/sections/DinoHero.tsx +++ b/src/components/sections/DinoHero.tsx @@ -1,10 +1,20 @@ /* eslint-disable @next/next/no-img-element */ +'use client' + import { BtnPrimary } from '@/components/ui/BtnPrimary' +// ─── Figma tokens ───────────────────────────────────────────────────────────── +// hero-main: bg #F2F5E8, 1920×1187 +// left text block: x=358, w=608 → at 1920: occupies 358–966px (~50%) +// hero-img frame: x=692 (relative), w=1228 (~63% of 1920 from center-right) +// Ellipse 91: 2267×2267 amber #F0A050, behind T-Rex in right half +// T-Rex: 1001×2152 (aspect ~0.465), right side, bleeds top, stays right of left-col +// ───────────────────────────────────────────────────────────────────────────── + const FONT_MONT = { fontFamily: 'var(--font-montserrat, Montserrat), sans-serif' } const FONT_INTER = { fontFamily: 'Inter, sans-serif' } -const DEFAULT_FEATURES = ['Повнорозмірні анімовані динозавра', 'Реалістичні рухи та звуки'] +const DEFAULT_FEATURES = ['Повнорозмірні анімовані динозаври', 'Реалістичні рухи та звуки'] interface DinoHeroProps { title?: string @@ -23,61 +33,135 @@ export function DinoHero({ features = DEFAULT_FEATURES, heroImageUrl, }: DinoHeroProps) { - return ( -
- {/* Left column */} -
-
-
- {/* Text */} -
-

- {title} -

-

- {description} -

- - Купити квиток - -
+ // Figma breakpoint for this layout: 1440px (--breakpoint-lg) + // left column: 640px wide (≈44% of 1440) + // right column: 1440-640 = 800px + // T-Rex at 1440: height = 900px (section height ≈ 780px + bleed), width = 900 * 0.465 = ~418px + // 418px < 800px → T-Rex fits fully within right column at any viewport ≥ 1440px ✓ + // For smaller desktops (1024–1440): scale proportionally - {/* Stat badge + feature list */} -
- {/* "26 унікальних експонатів" pill */} + return ( +
+ {/* Outer container limits max-width to 1920px, content left-aligned */} +
+ {/* ──────────────────────────────────────────────────────────────── + DESKTOP: absolute positioned right image area (left=640px) + overflow:hidden clips ellipse; separate img tag bleeds via section overflow:hidden + ──────────────────────────────────────────────────────────────── */} + + {/* AMBER ELLIPSE — clipped strictly to right of 640px */} +