// Alba Cars — Home page const { useState: useStateH, useEffect: useEffectH, useMemo: useMemoH, useRef: useRefH } = React; function HomePage({ setRoute, setVehicleId, heroVariant = 'split' }) { return (
{heroVariant === 'split' ? : }
); } // ============================================================= // HERO — Split (two-sided: Buy / Sell) // ============================================================= function HeroSplit({ setRoute }) { return (
{/* Headline band */}
Live · 212 cars in stock right now
Al Quoz, Dubai Open today · 09:30 – 22:00

Dubai's most trusted
pre-owned showroom.

Certified pre-owned British & German luxury, plus a fast, fair offer if you're selling. Sell your car in ~2 hours. Payment after RTA verification & pick-up.

150+ Point· RTA Certified· 1-Yr Warranty
{/* Split panels */}
980 ? '1fr 1fr' : '1fr', gap: 0, borderTop: '1px solid var(--line-dk)', }}> setRoute('buy')} sideCta={{ label: 'Just Arrived', sub: '7 new this week' }} align="left" /> setRoute('sell')} sideCta={{ label: 'Avg time', sub: '~2 hrs to cash' }} align="right" accent />
); } function HeroPanel({ kicker, title, sub, image, cta, ctaIcon, onCta, sideCta, align, accent }) { return (
980 ? '1px solid var(--line-dk)' : 'none', }}>
{kicker} {sideCta && (
{sideCta.label}
{sideCta.sub}
)}

{title}

{sub}

{cta}
); } // ============================================================= // HERO — Cinematic (alt variant — single full-bleed) // ============================================================= function HeroCinematic({ setRoute }) { return (
Alba Cars showroom
Live · 212 cars in stock

A used luxury car
shouldn't feel used.

Dubai's most trusted pre-owned showroom — British & German luxury, every car 150+ point inspected, RTA certified, and warrantied for a year.

setRoute('buy')}>Browse Cars setRoute('sell')}>Sell Your Car
); } // ============================================================= // TRUST BAND // ============================================================= function TrustBand() { return (
); } // ============================================================= // FEATURED — horizontal scroll of cars // ============================================================= function FeaturedCarousel({ setRoute, setVehicleId }) { const featured = useMemoH(() => VEHICLES.slice(0, 8), []); const scrollerRef = useRefH(null); const scroll = (dir) => { scrollerRef.current?.scrollBy({ left: dir * 440, behavior: 'smooth' }); }; return (
setRoute('buy')}>View all 212 } />
{featured.map(v => ( { setVehicleId(v.id); setRoute('vehicle'); window.scrollTo({top:0}); }} /> ))}
); } const arrowBtn = { width: 44, height: 44, borderRadius: 999, background: 'transparent', border: '1px solid var(--border)', display: 'grid', placeItems: 'center', color: 'var(--text)', cursor: 'pointer', }; // Vehicle card — used in carousels + inventory grid function VehicleCard({ v, onClick, compact }) { const isPOA = v.price == null; return (
{`${v.year}
{v.tags?.includes('Just Arrived') && ( ● Just Arrived )} {v.tags?.includes('POA') && ( POA )} {v.tags?.includes('Performance') && ( Performance )} {v.tags?.includes('Electric') && ( Electric )}
{v.stockId}
{v.year} · {v.make}

{v.model} {v.variant}

{isPOA ? 'Inquire' : 'Demo price'}
{fmtAED(v.price)}
); } function chip(bg, fg) { return { background: bg, color: fg, padding: '4px 10px', borderRadius: 4, fontFamily: 'var(--f-display)', fontSize: 10, fontWeight: 500, letterSpacing: '0.1em', textTransform: 'uppercase', }; } function CardSpec({ icon, v }) { return (
{v}
); } // ============================================================= // TWO-SIDED — Buy + Sell mirrored cards // ============================================================= function TwoSidedSection({ setRoute }) { return (
900 ? '1fr 1fr' : '1fr', gap: 24, }}> setRoute('buy')} image="media/inv/bmw-x7.webp" /> setRoute('sell')} image="media/inv/mercedes-g63.webp" accent />
); } function ProcessCard({ num, steps, title, cta, onCta, image, accent }) { return (
{num} {accent ? 'Sell' : 'Buy'}

{title}

    {steps.map((s, i) => (
  1. 0{s.n}
    {s.t}
    {s.d}
  2. ))}
{cta}
); } // ============================================================= // BRAND WALL — typographic // ============================================================= function BrandWall({ setRoute }) { return (
Brand Roster · 17 marques

British & German lead, the rest curated.

setRoute('buy')}>Shop by brand
{BRANDS.map((b, i) => { const count = VEHICLES.filter(v => v.make === b).length; return ( ); })}
); } // ============================================================= // PROCESS — 150+ point inspection breakdown // ============================================================= function ProcessSection({ setRoute }) { const buckets = [ { n: 38, t: 'Engine & Drivetrain', items: ['Compression test', 'Oil & fluid analysis', 'Belt & pulley inspection', 'Mounts, gaskets, seals'] }, { n: 24, t: 'Transmission & Clutch', items: ['Shift quality road test', 'Fluid level & condition', 'Selector, cables, mounts'] }, { n: 32, t: 'Body & Paint', items: ['Panel gap measurement', 'Paint depth gauge (full car)', 'Re-spray detection', 'Underbody corrosion'] }, { n: 28, t: 'Electronics & ADAS', items: ['Full OBD diagnostic scan', 'ADAS calibration check', 'Infotainment & connectivity'] }, { n: 18, t: 'Suspension & Brakes', items: ['Pad & disc wear', 'Bushings, links, struts', 'Wheel alignment & tracking'] }, { n: 14, t: 'Interior & Comfort', items: ['Upholstery, trims, AC', 'All seat motors & memory', 'Keys, fobs, remotes'] }, ]; return (
900 ? '1fr 1.4fr' : '1fr', gap: 60, marginBottom: 70 }}>
The 150+ Point Inspection

We don't list a car
we wouldn't drive ourselves.

Every Alba car passes a 154-point inspection across six systems — measured, photographed, and signed off before it ever lands on a stock card. Fail any item and the car doesn't make the floor.

You see the full report on every vehicle page, alongside the 1-year warranty terms.

900 ? 'repeat(3, 1fr)' : 'repeat(auto-fit, minmax(250px, 1fr))', gap: 0, border: '1px solid var(--line-dk)', }}> {buckets.map((b, i) => (
900) ? '1px solid var(--line-dk)' : 'none', borderBottom: (i < 3 && window.innerWidth > 900) ? '1px solid var(--line-dk)' : 'none', display: 'flex', flexDirection: 'column', gap: 18, }}>
{b.n} checks

{b.t}

    {b.items.map(it => (
  • {it}
  • ))}
))}
154
Total points
1yr
Free warranty
0
Hidden issues
setRoute('buy')}>See inspection reports
); } // ============================================================= // FINANCE BAND // ============================================================= function FinanceBand({ setRoute }) { const [price, setPrice] = useStateH(220000); const [years, setYears] = useStateH(4); const [down, setDown] = useStateH(20); const monthly = useMemoH(() => { const principal = price * (1 - down / 100); const r = 0.0299 / 12; // illustrative const n = years * 12; if (!n) return 0; return (principal * r * Math.pow(1 + r, n)) / (Math.pow(1 + r, n) - 1); }, [price, years, down]); return (
980 ? '1fr 1.2fr' : '1fr', gap: 0, background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 14, overflow: 'hidden', }}>
Finance — terms up to 5 years

Monthly that fits your life,
not the other way around.

In partnership with leading UAE banks. EMI up to 5 years, lease-to-own up to 4. Eligibility takes about 60 seconds.

setRoute('finance')}>Check Eligibility ~60 seconds · No credit pull
Seasonal partner offer
120-day deferred payment in partnership with Emirates NBD — on select financing plans, when purchasing from Alba Cars. Terms apply. Check current availability.
EMI Estimator · illustrative

Your monthly estimate

1?'s':''}`} min={1} max={5} step={1} value={years} onChange={setYears} />
Estimated monthly
AED {monthly ? Math.round(monthly).toLocaleString() : '—'}
Illustrative at 2.99% reducing · final rate by bank approval
); } function SliderRow({ label, valueLabel, min, max, step, value, onChange }) { return (
{label} {valueLabel}
onChange(+e.target.value)} style={{ width: '100%', appearance: 'none', height: 4, borderRadius: 2, background: `linear-gradient(to right, var(--gold) 0%, var(--gold) ${((value-min)/(max-min))*100}%, var(--line-dk) ${((value-min)/(max-min))*100}%, var(--line-dk) 100%)`, cursor: 'pointer', }} />
); } // ============================================================= // SHOWROOM SECTION // ============================================================= function ShowroomSection({ setRoute }) { return (
900 ? '1.3fr 1fr' : '1fr', gap: 40 }}>
900 ? '4/3' : '4/3', position: 'relative', }}> Alba Cars showroom exterior
Visit the showroom
Al Asayel St, Al Quoz Ind 1
Showroom

Three units, one floor, every car under one roof.

Drop in any day — drive away the same week. Our team handles RTA transfer, bank paperwork, and UAE-wide delivery, so paperwork never gets between you and your car.

    {[ { l: 'Address', v: 'Showroom 17, 18 & 20, Al Asayel Street, Al Quoz Ind 1, Dubai' }, { l: 'Open', v: 'Sun – Sat · 09:30 – 22:00' }, { l: 'Phone', v: '+971 4 377 2503', mono: true }, { l: 'Email', v: 'info@albacars.ae' }, ].map(r => (
  • {r.l} {r.v}
  • ))}
setRoute('contact')}>Get directions Book a viewing
); } // ============================================================= // PRESS STRIP — text marquee // ============================================================= function PressStrip() { const items = ['Gulf News', 'Khaleej Times', 'Arabian Business', 'MEA Markets · Best Used Car Dealership', 'Dubizzle · Showroom of the Month', 'YourStory']; return (
As featured in / awarded by
{[...items, ...items].map((x, i) => ( {x} ))}
); } // ============================================================= // FAQ // ============================================================= function FAQSection() { const [open, setOpen] = useStateH(0); const faqs = [ { q: 'How long does selling my car take?', a: "About 2 hours from form to cash. We give an instant online valuation, do a free in-person inspection, and pay you after RTA verification and pick-up — same-day in most cases." }, { q: 'Is the 1-year warranty really free?', a: "Yes. Every certified Alba car ships with a free 1-year warranty covering major mechanical and electrical systems. Full terms are printed on every vehicle's certificate." }, { q: "Can I finance a car without a UAE bank account?", a: 'We work with leading UAE banks; an account with one of them (or willingness to open one) is typically required. Tenures up to 5 years; lease-to-own up to 4. Final eligibility is bank-driven.' }, { q: "What's the 150+ point inspection?", a: "Across engine, transmission, body & paint, electronics, suspension, and interior — measured, photographed, and signed off. Fail any item and the car doesn't make our floor. The full report is on every vehicle page." }, { q: 'Do you deliver outside Dubai?', a: 'Yes — UAE-wide delivery on completed sales, door to door. We also handle RTA transfer and bank paperwork in-house.' }, ]; return (
900 ? '1fr 1.4fr' : '1fr', gap: 60 }}>
FAQ

Common questions, plain answers.

    {faqs.map((f, i) => (
  • {open === i && (
    {f.a}
    )}
  • ))}
); } Object.assign(window, { HomePage });