gig
Browse files88 unmodified lines8990919292939495969798991001011021031041051061071081091101111121131141151169394959697989910010110210310410510610710810911011111211311411511611711811912011812112212112312312412512612712812913013113213313413513613713813914014114214314412412512612712812913013113213313413513613713813914014114214314414514614714814915015114714815215315415515615715815916016116216316416516615215315415515615715815916016116716816917017117217317417517617717888 unmodified lines <div className="absolute inset-0 opacity-[0.07] bg-[linear-gradient(to_right,#10b981_10%,transparent_10%),linear-gradient(to_bottom,#10b981_10%,transparent_10%)] bg-[length:20px_20px]" /> </div>
<div className="relative max-w-7xl mx-auto px-4 w-full space-y-10"> <div className="relative max-w-7xl mx-auto px-4 grid gap-12 lg:grid-cols-[1.1fr,0.9fr] items-center"> <div className="space-y-5 animate-fade-in-scale"> <p className="text-xs md:text-sm font-mono uppercase tracking-[0.35em] text-emerald-400/80"> Real-time video forensics </p> <h1 className="mt-3 text-4xl md:text-5xl font-semibold leading-tight"> Inspect every frame. <span className="block text-emerald-400">Unmask every fake.</span> </h1> <p className="mt-4 text-base md:text-lg text-emerald-100/80 max-w-prose"> Upload a video and we will pull out a few key frames, find the faces, and score each one as real or fake. You can see the result for every frame, not just a single yes/no answer. </p> <div className="mt-8 flex flex-wrap items-center gap-4"> <Link href="/analyze" className="px-5 py-3 rounded-lg bg-emerald-500 text-slate-950 font-medium shadow-lg shadow-emerald-500/30 hover:bg-emerald-400 transition" > Launch Analyzer </Link> <div className="text-xs md:text-sm text-emerald-200/80 font-mono"> <div className="flex items-center gap-2"> <span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" /> <span>20 frames 路 face crops 路 real/fake scores</span> <div className="grid gap-12 lg:grid-cols-[1.1fr,0.9fr] items-center"> <div className="space-y-5 animate-fade-in-scale"> <p className="text-xs md:text-sm font-mono uppercase tracking-[0.35em] text-emerald-400/80"> Real-time video forensics </p> <h1 className="mt-3 text-4xl md:text-5xl font-semibold leading-tight"> Inspect every frame. <span className="block text-emerald-400">Unmask every fake.</span> </h1> <p className="mt-4 text-base md:text-lg text-emerald-100/80 max-w-prose"> Upload a video and we will pull out a few key frames, find the faces, and score each one as real or fake. You can see the result for every frame, not just a single yes/no answer. </p> <div className="mt-8 flex flex-wrap items-center gap-4"> <Link href="/analyze" className="px-5 py-3 rounded-lg bg-emerald-500 text-slate-950 font-medium shadow-lg shadow-emerald-500/30 hover:bg-emerald-400 transition" > Launch Analyzer </Link> <div className="text-xs md:text-sm text-emerald-200/80 font-mono"> <div className="flex items-center gap-2"> <span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" /> <span>20 frames 路 face crops 路 real/fake scores</span> </div> <div className="mt-1 opacity-70">Simple viewer for checking if a clip looks fake.</div> </div> <div className="mt-1 opacity-70">Simple viewer for checking if a clip looks fake.</div> </div> </div> </div>
<div className="relative animate-fade-in-scale"> <div className="rounded-2xl border border-emerald-700/60 bg-slate-950/60 shadow-[0_0_40px_rgba(16,185,129,0.25)] p-4"> <div className="aspect-video rounded-xl bg-slate-900/70 border border-emerald-900/80 flex flex-col justify-between overflow-hidden"> <div className="flex items-center justify-between px-4 pt-3 text-xs md:text-sm text-emerald-200/80 font-mono"> <span>video_feed.mp4</span> <span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-500/40 text-[10px]"> LIVE ANALYSIS </span> </div> <div className="flex-1 flex items-center justify-center px-4 pb-3"> <div className="relative w-full h-full rounded-lg overflow-hidden border border-emerald-900/60 bg-black"> {HERO_FRAMES.length > 0 ? ( <img src={HERO_FRAMES[heroFrameIndex]} alt="Demo frame" className="w-full h-full object-cover transition-opacity duration-700" /> ) : ( <div className="w-full h-full flex items-center justify-center text-emerald-300/80 text-xs md:text-sm"> Drop a video in the analyzer to see per-frame labels. </div> )} <div className="relative animate-fade-in-scale"> <div className="rounded-2xl border border-emerald-700/60 bg-slate-950/60 shadow-[0_0_40px_rgba(16,185,129,0.25)] p-4"> <div className="aspect-video rounded-xl bg-slate-900/70 border border-emerald-900/80 flex flex-col justify-between overflow-hidden"> <div className="flex items-center justify-between px-4 pt-3 text-xs md:text-sm text-emerald-200/80 font-mono"> <span>video_feed.mp4</span> <span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-500/40 text-[10px]"> LIVE ANALYSIS </span> </div> <div className="flex-1 flex items-center justify-center px-4 pb-3"> <div className="relative w-full h-full rounded-lg overflow-hidden border border-emerald-900/60 bg-black"> {HERO_FRAMES.length > 0 ? ( <img src={HERO_FRAMES[heroFrameIndex]} alt="Demo frame" className="w-full h-full object-cover transition-opacity duration-700" /> ) : ( <div className="w-full h-full flex items-center justify-center text-emerald-300/80 text-xs md:text-sm"> Drop a video in the analyzer to see per-frame labels. </div> )} </div> </div> <div className="h-1.5 w-full rounded-full bg-slate-800 overflow-hidden"> <div className="h-full w-1/2 bg-gradient-to-r from-emerald-400 to-emerald-600 animate-pulse" /> </div> </div> <div className="h-1.5 w-full rounded-full bg-slate-800 overflow-hidden"> <div className="h-full w-1/2 bg-gradient-to-r from-emerald-400 to-emerald-600 animate-pulse" />
<div className="mt-3 flex items-center justify-between text-[10px] font-mono"> <span className="px-2 py-0.5 rounded-full bg-slate-900 border border-cyan-500/40 text-cyan-200 flex items-center gap-1"> <span className="h-1.5 w-1.5 rounded-full bg-cyan-300" /> YOLO face crop </span> <span className="px-2 py-0.5 rounded-full bg-slate-900 border border-fuchsia-500/40 text-fuchsia-200 flex items-center gap-1"> <span className="h-1.5 w-1.5 rounded-full bg-fuchsia-300" /> ResNet18 score </span> </div> </div> </div> </div>
<div className="mt-3 flex items-center justify-between text-[10px] font-mono"> <span className="px-2 py-0.5 rounded-full bg-slate-900 border border-cyan-500/40 text-cyan-200 flex items-center gap-1"> <span className="h-1.5 w-1.5 rounded-full bg-cyan-300" /> YOLO face crop </span> <span className="px-2 py-0.5 rounded-full bg-slate-900 border border-fuchsia-500/40 text-fuchsia-200 flex items-center gap-1"> <span className="h-1.5 w-1.5 rounded-full bg-fuchsia-300" /> ResNet18 score </span> </div> <div className="rounded-2xl border border-cyan-900/60 bg-slate-950/85 p-4 md:p-6 shadow-lg shadow-cyan-900/20"> <div className="text-xs font-mono uppercase tracking-[0.25em] text-cyan-300/80 mb-3">Performance Snapshot</div> <div className="grid gap-3 sm:grid-cols-3 text-center"> {PERFORMANCE_METRICS.map((metric) => ( <div key={metric.label} className="rounded-lg border border-emerald-900/60 px-3 py-4 bg-slate-950/80"> <div className="text-[10px] uppercase tracking-[0.25em] text-emerald-300/70">{metric.label}</div> <div className="text-2xl font-semibold text-emerald-200">{metric.value}</div> </div> ))} </div> </div> </div>frontend/pages/index.jsx+75-61