/* Build Core Supply — Website UI Kit · inner pages part 2 */
const { useEffect: uE4 } = React;
/* ===================== PRODUCTS PAGE ===================== */
function ProductsPage({go, onEnquire, onOpen}){
return (
Catalogue
A Complete Range of Building Materials
Cement, TMT steel, MS sections, cement frames, AAC blocks and more — at wholesale rates. Tap any product for full specifications.
);
}
/* ===================== PRODUCT DETAIL PAGE ===================== */
function ProductDetailPage({go, slug, onEnquire, onOpen}){
uE4(()=>{ window.scrollTo(0,0); },[slug]);
const row = PRODUCTS.find(p=>p[2]===slug) || PRODUCTS[0];
const [nm, cat, img, kind, pr, u] = row;
const det = PRODUCT_DETAILS[img] || {desc:"", specs:[]};
const related = PRODUCTS.filter(p=>p[1]===cat && p[2]!==img).slice(0,4);
const relList = related.length?related:PRODUCTS.filter(p=>p[2]!==img).slice(0,4);
return (
{cat}
{nm}
{det.moq &&
}
{kind==="price"
?
₹ {pr} {u} · wholesale
:
Price on enquiry Get Latest Price
}
{det.desc}
{det.specs.map(([k,v])=>(| {k} | {v} |
))}
Related Products
{relList.map(([rnm,rc,rimg,rkind,rpr,ru])=>(
onOpen(rimg)} style={{cursor:'pointer'}}>
{rc}
{rnm}
{rkind==="price"
?
₹ {rpr} {ru}
:
Get Latest Price
}
))}
);
}
/* ===================== PROJECTS / PORTFOLIO PAGE ===================== */
function ProjectsPage({go}){
return (
PortfolioTrusted on Landmark Builds
From high-rise towers to residential complexes, builders across Maharashtra rely on us for materials that arrive on time and on spec.
{PROJECT_DETAILS.map((p)=>(
{p.client}
{p.title}
{p.loc}
{p.desc}
{p.tags.map(t=>({t}))}
))}
);
}
/* ===================== CONTACT PAGE ===================== */
function ContactPage({go, prefill}){
return (
Head Office — Sinnar
Sai Steel Services, Sinnar, Nashik District, Maharashtra, India
Branch — Nashik
Gangapur Road, Nashik, Maharashtra, India
Talk to Us
+91 98765 43210
enquiry@buildcoresupply.in
Mon–Sat · 9:00–19:00
);
}
/* ===================== GALLERY PAGE ===================== */
const GALLERY = [
{src:"boardroom-01.jpg", cat:"Boardroom", t:"Conference room"},
{src:"cabin-01.jpg", cat:"Director's Cabin", t:"Director's cabin"},
{src:"workspace-01.jpg", cat:"Workspace", t:"Operations desk"},
{src:"boardroom-02.jpg", cat:"Boardroom", t:"Meeting in progress"},
{src:"cabin-02.jpg", cat:"Director's Cabin", t:"Cabin detail"},
{src:"workspace-02.jpg", cat:"Workspace", t:"Work area"},
{src:"cabin-03.jpg", cat:"Director's Cabin", t:"Private office"},
{src:"boardroom-03.jpg", cat:"Boardroom", t:"Around the table"},
{src:"cabin-04.jpg", cat:"Director's Cabin", t:"Cabin & glass partition"},
{src:"cabin-05.jpg", cat:"Director's Cabin", t:"Cabin view"},
];
const GAL_CATS = ["All","Boardroom","Director's Cabin","Workspace"];
function Lightbox({items, index, onClose, onNav}){
uE4(()=>{
const onKey=(e)=>{ if(e.key==="Escape") onClose(); if(e.key==="ArrowRight") onNav(1); if(e.key==="ArrowLeft") onNav(-1); };
window.addEventListener('keydown', onKey); return ()=>window.removeEventListener('keydown', onKey);
},[onClose,onNav]);
const open = index!==null;
const it = open ? items[index] : null;
return (
{open &&
{index+1} / {items.length}
e.stopPropagation()}/>
}
);
}
function GalleryPage({go}){
const [cat,setCat]=React.useState("All");
const [idx,setIdx]=React.useState(null);
const list = cat==="All" ? GALLERY : GALLERY.filter(g=>g.cat===cat);
const nav=(d)=>setIdx(i=>(i+d+list.length)%list.length);
return (
Our WorkplaceInside Build Core Supply
A look around our offices in Sinnar & Nashik — the boardroom, the director's cabin and the team workspace where every order is planned and dispatched.
{GAL_CATS.map(c=>())}
{list.map((g,i)=>(
setIdx(i)}>
))}
setIdx(null)} onNav={nav}/>
);
}
Object.assign(window, { ProductsPage, ProductDetailPage, ProjectsPage, ContactPage, GalleryPage, GALLERY });