1import{c as m,r,u as x,s as h,j as e,S as p,B as a,L as t,a as g}from"./main-BGPPHxHM.js";import{C as u}from"./car-card-C9ZRISs7.js";import{S as f}from"./search-DQkFYzwY.js";import{H as i}from"./hand-coins-TihzmIur.js";import{S as j}from"./shield-check-D1ldACVY.js";import"./badge-zEFINaEp.js";import"./check-Cx29d-FE.js";import"./gauge-BjZ0J16D.js";import"./chevron-right-ChkK1bCk.js";const y=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],l=m("arrow-right",y),w="/assets/hero-showroom-lAc9HKr5.jpg";function H(){const[n,o]=r.useState([]),{theme:d}=x(),c=d?.hero_image_url||w;return r.useEffect(()=>{h.from("cars").select("id,make,model,year,price,mileage,fuel_type,transmission,body_type,color,description,image_url,status,featured,created_at,updated_at,gallery_urls,variant,registration,registration_date,stock_number,location,engine,engine_size,horsepower,drivetrain,doors,seats,mpg_combined,mpg_city,mpg_highway,fuel_tank_size,co2_emissions,ulez_compliant,mot_expiry,previous_owners,length_mm,width_mm,height_mm,wheelbase_mm,features,offer_active,offer_label,market_price,offer_expires_at,listed_at").eq("featured",!0).eq("status","available").order("created_at",{ascending:!1}).limit(3).then(({data:s})=>o(s??[]))},[]),e.jsxs("div",{children:[e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 -z-10",children:[e.jsx("img",{src:c,alt:"Used cars lined up in the Pulse Cars showroom in Birmingham",className:"h-full w-full object-cover opacity-25"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-soft"})]}),e.jsx("div",{className:"mx-auto max-w-7xl px-4 py-20 sm:px-6 sm:py-28 lg:px-8 lg:py-36",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 px-3 py-1 text-xs font-medium text-primary",children:[e.jsx(p,{className:"h-3.5 w-3.5"})," Birmingham's trusted used car dealership"]}),e.jsxs("h1",{className:"mt-5 font-display text-4xl font-bold leading-[1.05] sm:text-6xl lg:text-7xl",children:["Find your next car.",e.jsx("br",{}),e.jsx("span",{className:"bg-gradient-hero bg-clip-text text-transparent",children:"Or sell us your old one."})]}),e.jsx("p",{className:"mt-6 max-w-xl text-lg text-muted-foreground",children:"Hand-picked vehicles, transparent pricing, and fair instant offers when you're ready to move on."}),e.jsxs("div",{className:"mt-8 flex flex-wrap gap-3",children:[e.jsx(a,{asChild:!0,size:"lg",className:"bg-gradient-hero shadow-elegant",children:e.jsxs(t,{to:"/inventory",children:[e.jsx(f,{className:"mr-2 h-4 w-4"})," Browse Inventory"]})}),e.jsx(a,{asChild:!0,size:"lg",variant:"outline",children:e.jsxs(t,{to:"/sell",children:[e.jsx(i,{className:"mr-2 h-4 w-4"})," Sell Your Car"]})})]})]})})]}),e.jsx("section",{className:"border-y border-border bg-card",children:e.jsx("div",{className:"mx-auto grid max-w-7xl gap-8 px-4 py-12 sm:px-6 md:grid-cols-3 lg:px-8",children:[{icon:j,title:"Fully checked",desc:"Every car inspected and HPI clear before listing."},{icon:i,title:"Fair offers",desc:"Honest valuations when you sell â no haggling games."},{icon:g,title:"Birmingham based",desc:"Family-run dealership serving the West Midlands."}].map(s=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("span",{className:"flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(s.icon,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})]},s.title))})}),e.jsxs("section",{className:"mx-auto max-w-7xl px-4 py-20 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mb-10 flex items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-display text-3xl font-bold sm:text-4xl",children:"Featured this week"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:"Hand-picked highlights from our current stock."})]}),e.jsx(a,{asChild:!0,variant:"ghost",children:e.jsxs(t,{to:"/inventory",children:["View all ",e.jsx(l,{className:"ml-1 h-4 w-4"})]})})]}),e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:n.map(s=>e.jsx(u,{car:s},s.id))})]}),e.jsx("section",{className:"mx-auto max-w-7xl px-4 pb-20 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"overflow-hidden rounded-3xl bg-gradient-hero px-8 py-14 text-center text-primary-foreground shadow-elegant sm:px-16 sm:py-20",children:[e.jsx("h2",{className:"font-display text-3xl font-bold sm:text-5xl",children:"Ready to sell your car?"}),e.jsx("p",{className:"mx-auto mt-4 max-w-xl text-base opacity-90 sm:text-lg",children:"Tell us about it in 60 seconds. We'll review the details and come back with an offer."}),e.jsx(a,{asChild:!0,size:"lg",variant:"secondary",className:"mt-8",children:e.jsxs(t,{to:"/sell",children:["Get my offer ",e.jsx(l,{className:"ml-2 h-4 w-4"})]})})]})})]})}export{H as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.