More UI Changes
Browse filesFiles changed (2)
93 unmodified lines9495969798991008 unmodified lines10911011111211311411511611711811912012119 unmodified lines14114214314414514614714814915015115215334 unmodified lines1881891901911921931943 unmodified lines19819920020120220320420513 unmodified lines21922022122222322422522622722822923023123223323423523623723823924093 unmodified linesreturn (<div className="min-h-screen animate-fade-in"><header className="bg-slate-950 border-b border-emerald-900"><div className="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between"><div className="flex items-center gap-3"><div className="h-8 w-8 rounded-lg bg-emerald-500/20 border border-emerald-500/70 flex items-center justify-center text-emerald-300 font-mono text-xs">8 unmodified lines</div></header><main className="max-w-7xl mx-auto px-4 py-6 space-y-8 text-emerald-50"><section className="grid gap-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,1.4fr)] items-stretch animate-fade-in-up max-w-5xl mx-auto"><formonSubmit={onSubmit}className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-6 md:p-7 shadow-md shadow-emerald-900/40 flex flex-col gap-5 items-stretch text-center md:text-left h-full"><div className="flex items-center justify-between text-[11px] font-mono text-emerald-300/80"><span className="uppercase tracking-[0.2em] text-emerald-400/80">Upload & analyze</span>{result && (<span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-600/40 text-[10px]">19 unmodified lines<><div className="text-5xl mb-2">🎥</div><p className="mt-1 font-medium">Drop a video here or click to choose</p><p className="text-xs text-emerald-200/80">MP4 recommended · we sample about 20 frames</p></>)}{videoFile && (<div className="w-full space-y-3"><div className="flex items-center justify-between mb-1"><div className="text-sm text-emerald-50 truncate"><span className="font-medium">Selected:</span> {videoFile.name}<span className="ml-2 text-emerald-300/70">({Math.round(videoFile.size / 1024 / 1024)} MB)</span></div>34 unmodified lines</div>)}</div><div className="flex flex-col gap-1 text-xs md:text-sm">{error && <span className="text-red-400">{error}</span>}{!videoFile && <span className="text-emerald-200/80">Select a video to begin the check.</span>}{!loading && result && (3 unmodified lines</div></form><div className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-5 shadow-md shadow-emerald-900/40 animate-fade-in-scale h-full flex flex-col gap-4 items-center text-center"><h2 className="text-lg font-semibold mb-2">Final conclusion</h2>{result ? ((() => {const rawScore =13 unmodified linesreturn (<div className="flex flex-col items-center gap-4"><divclassName="relative h-28 w-28 rounded-full flex items-center justify-center"style={{background: `conic-gradient(${primaryColor} ${angle}deg, ${trackColor} ${angle}deg)`,}}><div className="h-20 w-20 rounded-full bg-slate-950 flex flex-col items-center justify-center border border-slate-700"><span className="text-[10px] font-mono text-emerald-200/80">{labelText}</span><span className="text-sm font-semibold">{isNaN(percent) ? "-" : `${safePercent}%`}</span></div></div><div className="text-[11px] text-emerald-200/80 space-y-1"><div>REAL: {realProb.toFixed(3)}</div><div>FAKE: {fakeProb.toFixed(3)}</div><div className="text-emerald-300/80 text-[10px]">93 unmodified lines9495969798991008 unmodified lines10911011111211311411511611711811912012119 unmodified lines14114214314414514614714814915015115215334 unmodified lines1881891901911921931943 unmodified lines19819920020120220320420513 unmodified lines21922022122222322422522622722822923023123223323423523623723823924093 unmodified linesreturn (<div className="min-h-screen animate-fade-in"><header className="bg-slate-950 border-b border-emerald-900 text-base md:text-lg"><div className="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between"><div className="flex items-center gap-3"><div className="h-8 w-8 rounded-lg bg-emerald-500/20 border border-emerald-500/70 flex items-center justify-center text-emerald-300 font-mono text-xs">8 unmodified lines</div></header><main className="max-w-7xl mx-auto px-4 py-6 space-y-8 text-emerald-50 text-[15px] md:text-base"><section className="grid gap-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,1.4fr)] items-stretch animate-fade-in-up max-w-5xl mx-auto"><formonSubmit={onSubmit}className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-6 md:p-7 shadow-md shadow-emerald-900/40 flex flex-col gap-5 items-stretch text-center md:text-left h-full"><div className="flex items-center justify-between text-xs md:text-sm font-mono text-emerald-300/80"><span className="uppercase tracking-[0.2em] text-emerald-400/80">Upload & analyze</span>{result && (<span className="px-2 py-0.5 rounded-full bg-emerald-500/10 border border-emerald-600/40 text-[10px]">19 unmodified lines<><div className="text-5xl mb-2">🎥</div><p className="mt-1 font-medium">Drop a video here or click to choose</p><p className="text-xs md:text-sm text-emerald-200/80">MP4 recommended · we sample about 20 frames</p></>)}{videoFile && (<div className="w-full space-y-3"><div className="flex items-center justify-between mb-1"><div className="text-sm md:text-base text-emerald-50 truncate"><span className="font-medium">Selected:</span> {videoFile.name}<span className="ml-2 text-emerald-300/70">({Math.round(videoFile.size / 1024 / 1024)} MB)</span></div>34 unmodified lines</div>)}</div><div className="flex flex-col gap-1 text-sm md:text-[15px]">{error && <span className="text-red-400">{error}</span>}{!videoFile && <span className="text-emerald-200/80">Select a video to begin the check.</span>}{!loading && result && (3 unmodified lines</div></form><div className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-6 md:p-7 shadow-md shadow-emerald-900/40 animate-fade-in-scale h-full flex flex-col gap-4 items-center text-center"><h2 className="text-xl md:text-2xl font-semibold mb-2">Final conclusion</h2>{result ? ((() => {const rawScore =13 unmodified linesreturn (<div className="flex flex-col items-center gap-4"><divclassName="relative h-32 w-32 md:h-36 md:w-36 rounded-full flex items-center justify-center"style={{background: `conic-gradient(${primaryColor} ${angle}deg, ${trackColor} ${angle}deg)`,}}><div className="h-24 w-24 md:h-28 md:w-28 rounded-full bg-slate-950 flex flex-col items-center justify-center border border-slate-700"><span className="text-[11px] md:text-xs font-mono text-emerald-200/80">{labelText}</span><span className="text-base md:text-lg font-semibold">{isNaN(percent) ? "-" : `${safePercent}%`}</span></div></div><div className="text-xs md:text-sm text-emerald-200/80 space-y-1"><div>REAL: {realProb.toFixed(3)}</div><div>FAKE: {fakeProb.toFixed(3)}</div><div className="text-emerald-300/80 text-[10px]">
6 unmodified lines7896 unmodified lines/* Smooth theme transition */* { @apply transition-colors duration-150; }6 unmodified lines7891011121314151617181920212223242526276 unmodified lines/* Smooth theme transition */* { @apply transition-colors duration-150; }/* Custom scrollbar to match dark forensic UI */::-webkit-scrollbar {width: 8px;}::-webkit-scrollbar-track {background: #020617; /* slate-950 */}::-webkit-scrollbar-thumb {background: linear-gradient(to bottom, #22c55e, #06b6d4);border-radius: 9999px;}::-webkit-scrollbar-thumb:hover {background: linear-gradient(to bottom, #4ade80, #22d3ee);}
frontend/pages/analyze.jsx+13-13
frontend/styles/globals.css+18