AR / RTL
Arabic content & RTL layout shipped in build. Toggle for demo.
)}
>
);
}
// ──────────────────────────────────────────────────────────────────────────
// Hash router
function parseHash(h) {
const raw = (h || "").replace(/^#\/?/, "").trim();
if(!raw) return {page:"home"};
const parts = raw.split("/").filter(Boolean);
const [seg0, seg1] = parts;
if(seg0 === "products" && seg1) return {page:"category", id: seg1};
if(seg0 === "sectors" && seg1) return {page:"sector", id: seg1};
const known = ["home","products","sectors","projects","showroom","about","contact"];
if(known.includes(seg0)) return {page: seg0};
return {page:"home"};
}
function toHash(r) {
if(r.page==="category") return "#/products/" + r.id;
if(r.page==="sector") return "#/sectors/" + r.id;
if(r.page==="home") return "#/";
return "#/" + r.page;
}
// Mount
ReactDOM.createRoot(document.getElementById("root")).render(