// sections.jsx — all the landing-page section components // ========================================================= // NAV // ========================================================= const Nav = ({ scrolled }) => ( ); // ========================================================= // HERO // ========================================================= const Hero = ({ parallaxY, accent }) => { // parallaxY is the scroll-derived translation (0 at top, increases as you scroll) const py = parallaxY; return (
{/* Decorative grid bg */}
{/* Floating decorative shapes — hidden on mobile via .hero-deco */}
Baru · Builder toko dengan AI sekarang gratis

Buka toko online
dalam{' '} 5 menit.

Platform mini-marketplace untuk seller Indonesia. Buat toko sendiri, kelola produk, dan terima pesanan — semua di satu tempat. Gratis selamanya.

{/* Domain check */}
market101.id/
{['Gratis selamanya', 'Tanpa kartu kredit', 'Setup 5 menit'].map(t => ( {t} ))}
{/* Hero visual */}
{/* Backdrop card */}
{/* Center phone */}
{/* Left floating: domain pill — hidden on mobile */}
{/* Left lower: dashboard card — hidden on mobile */}
{/* Right floating: order toast — hidden on mobile */}
{/* Right lower: review badge — hidden on mobile */}
{[0,1,2,3,4].map(i => )}
"Toko saya jadi profesional banget. Setup-nya cepet."
Dewi A.
Owner, Senja Skincare
); }; // ========================================================= // MARQUEE / LOGO BAR // ========================================================= const Marquee = () => (
Dipakai 12.487+ seller di 38 kota di Indonesia
{[...Array(2)].flatMap((_, n) => ['Senja Skincare', 'Kopi Tani', 'Atelier 22', 'Rumah Batik Mela', 'Halo Petshop', 'Studio Lumin', 'Bali Bites', 'Folk & Form', 'Bumi Roastery', 'Nara Ceramics'] .map((b, i) => ( {b} )) )}
); // ========================================================= // STATS // ========================================================= const Stats = () => (
{[ { v: '12.487', l: 'Toko aktif', sub: '+312 minggu ini' }, { v: 'Rp 4,2M', l: 'GMV bulan ini', sub: 'tumbuh 24% MoM' }, { v: '38', l: 'Kota di Indonesia', sub: 'dari Aceh hingga Papua' }, { v: '99,9%', l: 'Uptime', sub: 'tahun berjalan' }, ].map((s, i) => (
{s.v}
{s.l}
{s.sub}
))}
); /* ─── Mobile fixes ─────────────────────────────────────── */ const _sectionsMobileStyle = document.createElement('style'); _sectionsMobileStyle.textContent = ` /* Hero: hide decorative blobs & floating cards on mobile */ @media (max-width: 640px) { .hero-deco { display: none !important; } .hero-float-card { display: none !important; } /* Hero visual: shrink min-height so phone isn't huge */ #top .wrap > div + div { min-height: 360px !important; margin-top: 40px !important; } /* Hero domain pill → column layout */ .hero-pill { flex-direction: column !important; border-radius: 20px !important; padding: 14px 14px 10px !important; align-items: stretch !important; width: 100% !important; max-width: 100% !important; gap: 0 !important; } .hero-pill-domain { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .hero-pill-domain input { width: 100% !important; flex: 1 !important; font-size: 15px !important; } .hero-pill-btn { width: 100% !important; border-radius: 12px !important; padding: 14px !important; font-size: 15px !important; justify-content: center !important; } } `; document.head.appendChild(_sectionsMobileStyle); Object.assign(window, { Nav, Hero, Marquee, Stats });