Bismillah Final Push
Browse files2 unmodified lines345678910116789101112131415161718192014151617181920212223141 unmodified lines165166167168168169170171102 unmodified lines2742752762772782792802812822832842852862872882892902912922932942772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103013023033043053063073083093103113123133143153162 unmodified lines
const HERO_FRAMES = ["/1.jpg", "/2.jpg", "/3.jpg", "/4.jpg", "/5.jpg", "/6.jpg", "/7.jpg"];
const ARCHITECTURE_BLOCKS = [ { label: "Conv 0", detail: "3 β 64", gradient: "from-rose-600/70 to-rose-400/60" }, { label: "Conv Block 1", detail: "64", gradient: "from-rose-500/70 to-rose-400/50" }, { label: "Conv Block 2", detail: "128", gradient: "from-orange-500/70 to-amber-400/50" }, { label: "Conv Block 3", detail: "256", gradient: "from-pink-500/60 to-fuchsia-400/50" }, { label: "Conv Block 4", detail: "512", gradient: "from-rose-400/60 to-purple-400/40" },const BACKBONE_STACK = [ { label: "Conv 0", detail: "3 β 64", width: 100, height: "3.2rem", gradient: "from-rose-600/80 to-rose-400/60" }, { label: "Conv Block 1", detail: "64", width: 88, height: "3rem", gradient: "from-rose-500/80 to-rose-300/60" }, { label: "Conv Block 2", detail: "128", width: 72, height: "4rem", gradient: "from-orange-500/80 to-amber-400/60" }, { label: "Conv Block 3", detail: "256", width: 58, height: "4.5rem", gradient: "from-pink-500/80 to-fuchsia-400/60" }, { label: "Conv Block 4", detail: "512", width: 45, height: "5rem", gradient: "from-rose-400/80 to-purple-400/60" },];
const HEAD_BLOCKS = [ { label: "Flatten", detail: "512" }, { label: "Linear", detail: "512 β 64" }, { label: "ReLU", detail: "" }, { label: "Dropout", detail: "0.2" }, { label: "Linear", detail: "64 β N" }, { label: "LogSoftmax", detail: "" },const HEAD_STACK = [ { label: "Flatten", detail: "512", width: 95, height: "3.2rem" }, { label: "Linear", detail: "512 β 64", width: 95, height: "3.2rem" }, { label: "ReLU", detail: "", width: 80, height: "3rem" }, { label: "Dropout", detail: "0.2", width: 80, height: "3rem" }, { label: "Linear", detail: "64 β N", width: 78, height: "3rem" }, { label: "Softmax", detail: "", width: 70, height: "2.8rem" },];
export default function Landing() {141 unmodified lines }`} style={{ visibility: howVisible ? "visible" : "hidden" }} > <div className="grid gap-8 lg:grid-cols-[1.1fr,0.9fr]"> <div className="grid gap-8 lg:grid-cols-2"> <div> <div className="max-w-3xl"> <h2 className="text-xl md:text-2xl font-semibold">How it works</h2>102 unmodified lines <span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-500/40 text-[10px] text-emerald-200">Transfer learning</span> </div>
<div className="space-y-5"> <div className="flex items-center gap-3 text-xs text-emerald-200/80"> <span className="px-3 py-1 rounded-full border border-emerald-500/50 bg-emerald-500/10 font-semibold tracking-wide">ImageNet weights</span> <span>Pretrained initialization feeding the feature extractor below.</span> </div>
<div> <div className="text-[10px] uppercase tracking-[0.3em] text-emerald-300/80 mb-2">Feature extractor</div> <div className="relative pl-6"> <div className="absolute left-3 top-2 bottom-4 w-px bg-emerald-500/30" /> {ARCHITECTURE_BLOCKS.map((block, idx) => ( <div key={block.label} className="relative pl-3 py-3"> <span className="absolute left-[-9px] top-3 h-2 w-2 rounded-full bg-emerald-300" /> <div className="text-sm font-semibold text-emerald-100">{block.label}</div> <div className="text-xs text-emerald-200/80">{block.detail}</div> {idx < ARCHITECTURE_BLOCKS.length - 1 && ( <div className="absolute left-[-7px] bottom-[-6px] text-emerald-400/60 text-lg leading-none">β</div> )} <div className="space-y-6"> <div className="text-xs text-emerald-200/80 font-mono uppercase tracking-[0.25em]">ImageNet weights feed these layers</div> <div className="relative pr-28"> <div className="absolute right-10 top-2 bottom-12 w-px bg-emerald-500/30" /> <div className="absolute right-0 top-4 px-3 py-1 rounded-full border border-emerald-500/40 bg-emerald-500/10 text-[11px] text-emerald-200">ImageNet weights</div> <div className="flex flex-col gap-4"> {BACKBONE_STACK.map((block, idx) => ( <div key={block.label} className="flex items-center gap-3"> <div className={`rounded-2xl border border-white/15 bg-gradient-to-r ${block.gradient} text-white px-4 py-2 flex flex-col justify-center shadow-inner shadow-black/20`} style={{ width: `${block.width}%`, minHeight: block.height }} > <div className="text-sm font-semibold leading-tight">{block.label}</div> <div className="text-xs text-white/80">{block.detail}</div> </div> <div className="h-px w-12 bg-emerald-500/30 relative"> <span className="absolute right-[-6px] top-1/2 -translate-y-1/2 h-3 w-px bg-emerald-400" /> </div> </div> ))} </div> </div>
<div className="pt-4 border-t border-emerald-900/50"> <div className="text-[10px] uppercase tracking-[0.3em] text-emerald-300/80 mb-2">Heads</div> <div className="relative pl-6"> <div className="absolute left-3 top-2 bottom-2 w-px bg-emerald-500/30" /> {HEAD_BLOCKS.map((block, idx) => ( <div key={block.label + block.detail} className="relative pl-3 py-2"> <span className="absolute left-[-9px] top-3 h-2 w-2 rounded-full bg-cyan-300" /> <div className="text-sm font-semibold text-emerald-100">{block.label}</div> {block.detail && <div className="text-xs text-emerald-200/80">{block.detail}</div>} {idx < HEAD_BLOCKS.length - 1 && ( <div className="absolute left-[-7px] bottom-[-6px] text-cyan-400/60 text-lg leading-none">β</div> <div className="text-[10px] uppercase tracking-[0.3em] text-emerald-300/80 mb-4">Heads</div> <div className="flex flex-col gap-3"> {HEAD_STACK.map((block, idx) => ( <div key={block.label + block.detail} className="space-y-2"> <div className="rounded-2xl border border-emerald-800/60 bg-slate-950/80 text-emerald-50 px-4 py-2 flex flex-col justify-center shadow-inner shadow-black/30" style={{ width: `${block.width}%`, minHeight: block.height }} > <div className="text-sm font-semibold leading-tight">{block.label}</div> {block.detail && <div className="text-xs text-emerald-200/80">{block.detail}</div>} </div> {idx < HEAD_STACK.length - 1 && ( <div className="text-center text-emerald-400/70 text-xs">β</div> )} </div> ))}frontend/pages/index.jsx+45-42