// ===== Sections ===== const { useState, useEffect, useRef, useMemo } = React; // ---------- Announcement ---------- const AnnounceBar = () => (
Free same-day delivery in Algiers on orders over 50 000 DA
Track Order Support FR / EN / AR
); // ---------- Header ---------- const Header = ({ cartCount, onCartOpen, query, setQuery }) => (
LOGO Your Brand
All Categories
setQuery(e.target.value)} />
Call 0560 11 02 30
); // ---------- Mega Nav ---------- const MegaNav = () => { const [open, setOpen] = useState(false); const ref = useRef(); useEffect(() => { const onDoc = (e) => { if (ref.current && !ref.current.contains(e.target)) setOpen(false); }; document.addEventListener("click", onDoc); return () => document.removeEventListener("click", onDoc); }, []); return (
{open && (
e.stopPropagation()}> {CATEGORIES.map(c => ( {c.label} ))}
)}
Free delivery 50K+ 2-year warranty
); }; // ---------- Hero ---------- const HERO_SLIDES = [ { tag: "RTX 50 SERIES IS HERE", title: ["Built for the new era of ", "ray-traced", " worlds."], sub: "Drop the latest Blackwell GPUs into a chassis tuned by engineers. Free delivery, full warranty.", specs: [ { k: "GPU Boost", v: "+38%" }, { k: "AI cores", v: "TENSOR Gen-5" }, { k: "Latency", v: "<6 ms" }, ], img: "https://images.unsplash.com/photo-1591488320449-011701bb6704?w=900&q=80&auto=format", primary: { label: "Shop GPUs", href: "shop.html?cat=gpu" }, ghost: { label: "Browse all", href: "shop.html" }, }, { tag: "STREAMER PRESET", title: ["Stream, encode, win — ", "all at once", "."], sub: "Dual-PC presets, hardware encoders, calibrated audio chains. Pre-built and ready in 24 hours.", specs: [ { k: "Encode", v: "AV1 / HEVC" }, { k: "Audio", v: "32-bit ADC" }, { k: "Ready", v: "<24 h" }, ], img: "https://images.unsplash.com/photo-1587202372634-32705e3bf49c?w=900&q=80&auto=format", primary: { label: "Shop Streamer rigs", href: "shop.html?cat=case" }, ghost: { label: "Custom build", href: "info.html?topic=custom" }, }, { tag: "STUDENT DEAL", title: ["Esports-ready ", "starter rigs", " from 89K DA."], sub: "Entry tier, lasting hardware. Upgrade-friendly motherboards on every config.", specs: [ { k: "1080p", v: "144 FPS" }, { k: "From", v: "89 000 DA" }, { k: "Pay over", v: "3 / 6 mo" }, ], img: "https://images.unsplash.com/photo-1593640408182-31c70c8268f5?w=900&q=80&auto=format", primary: { label: "See starter rigs", href: "shop.html?cat=case" }, ghost: { label: "Build your own", href: "info.html?topic=custom" }, }, ]; const Hero = () => { const [slide, setSlide] = useState(0); useEffect(() => { const t = setInterval(() => setSlide(s => (s + 1) % HERO_SLIDES.length), 6500); return () => clearInterval(t); }, []); const s = HERO_SLIDES[slide]; return (
{s.tag}

{s.title[0]}{s.title[1]}{s.title[2]}

{s.sub}

{s.specs.map((sp, i) => (
{sp.k}
{sp.v}
))}
{s.primary?.label || "Shop now"} {s.ghost?.label || "Build Your PC"}
{HERO_SLIDES.map((_, i) => (
{HERO_SLIDES.map((slideData, i) => ( {slideData.tag} ))}
Limited Drop

Lavender Mesh Series

Custom-painted chassis — only 80 units in Algeria.

Reserve yours
Trade-in Program

Up to 35K DA back

Bring your old rig, we credit it toward a new build.

See offer
); }; // ---------- Stats strip ---------- const Stats = () => (
Same-day delivery
Algiers, Oran, Constantine
2-year warranty
All components covered
14-day returns
No questions asked
Expert support
9 AM – 9 PM, 7 days
); // ---------- Category tiles ---------- const CategoryTiles = () => (
Shop by category

Every part of the rig.

View all 12 →
{CATEGORIES.slice(0, 8).map(c => ( {c.label}
{c.label}
{c.count} products
))}
); // ---------- Flash deals header ---------- const FlashCountdown = () => { const [t, setT] = useState({ h: 14, m: 32, s: 21 }); useEffect(() => { const id = setInterval(() => { setT(prev => { let { h, m, s } = prev; s--; if (s < 0) { s = 59; m--; } if (m < 0) { m = 59; h--; } if (h < 0) { h = 23; } return { h, m, s }; }); }, 1000); return () => clearInterval(id); }, []); const pad = (n) => String(n).padStart(2, "0"); return (
{pad(t.h)}
hours
:
{pad(t.m)}
min
:
{pad(t.s)}
sec
); }; // ---------- Product Card ---------- const ProductCard = ({ p, onOpen, onAdd, faved, onFav }) => { const discount = p.was ? Math.round((1 - p.price / p.was) * 100) : 0; return (
{p.badges.map((b, i) => { const cls = b.includes("%") ? "sale" : b === "NEW" ? "new" : "hot"; return {b}; })}
{p.img ? ( {p.name} ) : ( {p.cat.toLowerCase()}.render )}
{p.brand}

{p.name}

{p.specs.map((s, i) => {s})}
{p.rating.toFixed(1)} · {p.reviews} reviews
{money(p.price)} {p.currency}
{p.was && (
{money(p.was)} save {discount}%
)}
); }; // ---------- Flash deals section ---------- const FlashDeals = ({ onOpen, onAdd, faves, onFav }) => { const deals = PRODUCTS.filter(p => p.was).slice(0, 4); return (

Flash deals · ends tonight

Hand-picked drops. Hard cap on units, no rainchecks.

{deals.map(p => ( ))}
); }; // ---------- Featured Products ---------- const Featured = ({ onOpen, onAdd, faves, onFav }) => { const [tab, setTab] = useState("all"); const tabs = [ { id: "all", label: "All Bestsellers" }, { id: "GPU", label: "GPUs" }, { id: "CPU", label: "CPUs" }, { id: "MONITOR", label: "Monitors" }, { id: "KEYBOARD", label: "Keyboards" }, ]; const list = tab === "all" ? PRODUCTS : PRODUCTS.filter(p => p.cat === tab); return (
Most wanted

Bestsellers this week.

{tabs.map(t => ( ))}
{list.slice(0, 8).map(p => ( ))}
); }; // ---------- Builder banner ---------- const Builder = () => (
PC BUILDER

Spec your dream rig in 4 steps.

Compatibility-checked at every step. Free assembly, stress-testing & a 24-hour burn-in before it ships.

1Pick a CPU
2Choose a GPU
3Add parts
4Checkout
Start building View prebuilts
Current selection
{[ { icon: "cpu", name: "Processor", val: "Ryzen 9 9950X" }, { icon: "gpu", name: "Graphics", val: "RTX 5080 16GB" }, { icon: "ram", name: "Memory", val: "32 GB DDR5-6400" }, { icon: "ssd", name: "Storage", val: "2 TB NVMe Gen5" }, { icon: "case", name: "Case", val: "Cipher Mesh Pro" }, ].map((part, i) => (
{part.name}
{part.val}
))}
Estimated total 318 400 DZD
); // ---------- Prebuilts ---------- const Prebuilts = ({ onOpen, onAdd, faves, onFav }) => (
Ready to ship

House-built systems.

All prebuilts →
{PREBUILT.map(p => ( ))}
); // ---------- Brand strip ---------- const Brands = () => (
{BRANDS.map(b => (
{b}
))}
); // ---------- Newsletter ---------- const Newsletter = () => { const [email, setEmail] = useState(""); const [sent, setSent] = useState(false); return (

Drop-day alerts, restock pings, member-only discounts.

Join 28 000+ Algerian gamers who hear about new GPU stock before it sells out.

setEmail(e.target.value)} />
We send max 1 email per week. No spam, easy unsubscribe.
); }; // ---------- Footer ---------- const Footer = () => ( ); window.AnnounceBar = AnnounceBar; window.Header = Header; window.MegaNav = MegaNav; window.Hero = Hero; window.Stats = Stats; window.CategoryTiles = CategoryTiles; window.FlashDeals = FlashDeals; window.Featured = Featured; window.Builder = Builder; window.Prebuilts = Prebuilts; window.Brands = Brands; window.Newsletter = Newsletter; window.Footer = Footer; window.ProductCard = ProductCard;