/* ============================================================
WorkStay — Hero (3 layout variants via `variant` prop)
exports: Hero, FloatSearch
============================================================ */
const { useState: useStateH } = React;
/* floating search bar — shared by hero variants */
function FloatSearch({ go, compact = false }) {
const fields = [
{ label: 'Where', value: 'Manali, Himachal Pradesh', icon: 'pin' },
{ label: 'Duration', value: '3 months', icon: 'long' },
{ label: 'Work needs', value: 'Fiber · Quiet · Desk', icon: 'desk' },
{ label: 'Move in', value: 'Apr 12', icon: 'cal' },
];
return (
{fields.map((f, i) => (
{i < fields.length - 1 && }
))}
);
}
const HERO_BADGES = [
{ icon: 'wifi', label: 'Verified Wi-Fi' },
{ icon: 'quiet', label: 'Quiet Spaces' },
{ icon: 'power', label: 'Power Backup' },
{ icon: 'desk', label: 'Dedicated Workspace' },
{ icon: 'long', label: 'Long Stay Ready' },
];
function HeroHeadline({ serif = true, size = 'd1' }) {
return (
Live where
you work best.
);
}
function Hero({ variant = 'centered', go, accent }) {
const sub = 'Verified work-ready stays with fast Wi-Fi, quiet environments, and long-stay comfort — curated for people who build things.';
/* ---------- VARIANT: split panel ---------- */
if (variant === 'split') {
return (
Deep Work Certified stays
{sub}
go('explore')} icon="arrow">Find your stay
go('explore')}>How it works
{HERO_BADGES.map(b => {b.label})}
);
}
/* ---------- VARIANT: left editorial ---------- */
if (variant === 'editorial') {
return (
A premium OS for remote living
Live where
you work best.
{sub}
{HERO_BADGES.map(b => {b.label})}
);
}
/* ---------- VARIANT: centered cinematic (default) ---------- */
return (
{/* floating ambient orbs */}
Deep Work Certified · 230+ verified stays
Live where you
work best.
{sub}
{HERO_BADGES.map(b => {b.label})}
Scroll
);
}
function FloatingStatCard() {
return (
Beas River Loft
Manali
940 Mbps verified
);
}
Object.assign(window, { Hero, FloatSearch });