PageSourceSearch

https://tbuddy.app/assets/marketplace._city-DNm6Gbbt.js

js tbuddy.app collected 2026-09-24 14:34:03 UTC 4,596 bytes, 1 lines download raw bytes

1import{bq as p,m as h,j as e,d as g,M as n,L as i,T as f,S as u}from"./index-CICaNWwF.js";import{S as b}from"./site-footer-xuXK3X5W.js";import{A as j}from"./arrow-right-DEAWO6Yn.js";import{S as d}from"./shield-check-BbywUhkh.js";import{S as m}from"./star-eguBFjoY.js";import"./youtube-B8ClpAHZ.js";const N=["Electronics","Phones & tablets","Laptops & PCs","Furniture","Home appliances","Fashion","Shoes & bags","Bikes & sports","Books & study","Kids & baby","Musical instruments","Cameras"];function E(){const{city:a,stats:t}=p.useLoaderData(),c=h.filter(s=>s.slug!==a.slug).slice(0,12),x=t.members+t.services>0,o=s=>s>=1e3?`${(s/1e3).toFixed(1).replace(/\.0$/,"")}K+`:`${s}`;return e.jsxs("div",{className:"min-h-screen bg-gradient-soft",children:[e.jsx(g,{}),e.jsxs("main",{className:"mx-auto max-w-5xl px-5 pt-10 pb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-primary bg-primary-soft rounded-full px-3 py-1",children:[e.jsx(n,{className:"size-3.5"})," ",a.country,a.state?` · ${a.state}`:""]}),e.jsxs("h1",{className:"mt-3 font-display text-4xl sm:text-5xl font-semibold tracking-tight",children:["Buy & sell locally in ",e.jsx("span",{className:"text-primary",children:a.name}),"."]}),e.jsxs("p",{className:"mt-4 text-muted-foreground text-lg max-w-2xl",children:["Find great deals from real, ID-verified sellers across ",a.name," — or list what you're selling in minutes. Safe in-app chat, two-sided reviews."]}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[e.jsxs(i,{to:"/signup",className:"inline-flex items-center gap-2 rounded-2xl bg-gradient-warm text-primary-foreground font-semibold px-6 py-3 shadow-card",children:["Start selling in ",a.name," ",e.jsx(j,{className:"size-4"})]}),e.jsx(i,{to:"/app/products",className:"inline-flex items-center gap-2 rounded-2xl bg-card border border-border font-semibold px-6 py-3",children:"Browse products"})]}),x&&e.jsx("section",{className:"mt-8 grid grid-cols-3 gap-3",children:[{Icon:f,label:"Active listings",value:o(t.services)},{Icon:d,label:"Verified sellers",value:o(t.members)},{Icon:m,label:"Avg rating",value:"4.9"}].map(({Icon:s,label:r,value:l})=>e.jsxs("div",{className:"bg-card rounded-2xl border border-border/60 p-4 shadow-soft flex items-center gap-3",children:[e.jsx("div",{className:"rounded-xl bg-primary-soft text-primary p-2",children:e.jsx(s,{className:"size-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-display text-xl font-semibold leading-none",children:l}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[r," in ",a.name]})]})]},r))}),e.jsxs("section",{className:"mt-12",children:[e.jsxs("h2",{className:"font-display text-2xl font-semibold",children:["Popular categories in ",a.name]}),e.jsx("ul",{className:"mt-4 flex flex-wrap gap-2",children:N.map(s=>e.jsx("li",{className:"px-3 py-1.5 rounded-full bg-card border border-border text-sm font-medium",children:s},s))})]}),a.neighborhoods?.length?e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"font-display text-2xl font-semibold",children:"Neighbourhoods we cover"}),e.jsx("ul",{className:"mt-4 flex flex-wrap gap-2",children:a.neighborhoods.map(s=>e.jsx("li",{className:"px-3 py-1.5 rounded-full bg-card border border-border text-sm font-medium",children:s},s))})]}):null,e.jsx("section",{className:"mt-12 grid sm:grid-cols-3 gap-4",children:[{Icon:d,t:"Verified sellers",d:`Every ${a.name} seller passes ID + selfie checks.`},{Icon:u,t:"Safe chat",d:"In-app messaging, optional phone/WhatsApp, block & report."},{Icon:m,t:"Two-sided reviews",d:"Ratings on buyer and seller — reputation matters."}].map(({Icon:s,t:r,d:l})=>e.jsxs("div",{className:"bg-card rounded-2xl p-5 shadow-soft border border-border/60",children:[e.jsx(s,{className:"size-6 text-primary"}),e.jsx("h3",{className:"mt-3 font-display text-lg font-semibold",children:r}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l})]},r))}),e.jsxs("section",{className:"mt-12 rounded-3xl bg-card border border-border/60 p-8 shadow-card",children:[e.jsx("h2",{className:"font-display text-2xl font-semibold",children:"Marketplace in other cities"}),e.jsx("ul",{className:"mt-4 flex flex-wrap gap-2",children:c.map(s=>e.jsx("li",{children:e.jsxs(i,{to:"/marketplace/$city",params:{city:s.slug},className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-muted text-sm font-medium hover:bg-primary-soft hover:text-primary transition",children:[e.jsx(n,{className:"size-3.5"})," ",s.name]})},s.slug))})]})]}),e.jsx(b,{})]})}
1export{E 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.