New UI changes again...
Browse files93 unmodified lines949596979798991009910010110210310410510410510610710810911011111211211311411511611711811811912012119 unmodified lines14114214314414414514614714814915015015115215334 unmodified lines18818919019119119219319422 unmodified lines21721821922022022122222316 unmodified lines24024124224324424524624724826 unmodified lines27527627727527827928028128228328428528693 unmodified lines
return ( <div className="min-h-screen animate-fade-in"> <header className="bg-slate-950 border-b border-emerald-900 text-base md:text-lg"> <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"> <div className="flex items-center gap-3"> <div className="h-9 w-9 rounded-lg bg-emerald-500/20 border border-emerald-500/70 flex items-center justify-center text-emerald-300 font-mono text-sm"> FF </div> <div className="flex flex-col leading-tight"> <span className="text-xs uppercase tracking-[0.2em] text-emerald-400/80">FaceForensics Lab</span> <h1 className="text-sm md:text-base font-semibold">Deepfake Detection · Analysis</h1> <span className="text-sm uppercase tracking-[0.2em] text-emerald-400/80">FaceForensics Lab</span> <h1 className="text-lg font-semibold">Deepfake Detection Console</h1> </div> </div> <div className="flex items-center gap-3" /> </div> </header>
<main className="max-w-7xl mx-auto px-4 py-6 space-y-8 text-emerald-50 text-[15px] md:text-base"> <main className="max-w-7xl mx-auto px-4 py-6 space-y-8 text-emerald-50 text-sm 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"> <form onSubmit={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-sm md:text-base font-mono text-emerald-300/80"> <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> <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 md:text-base text-emerald-50 truncate"> <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-sm md:text-[15px]"> <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 && (22 unmodified lines const angle = (safePercent / 100) * 360;
return ( <div className="flex flex-col items-center gap-4"> <div className="flex flex-col items-center gap-4 flex-1 justify-center"> <div className="relative h-40 w-40 md:h-48 md:w-48 rounded-full flex items-center justify-center" style={{16 unmodified lines <div className="text-emerald-300/80 text-[10px]"> Circle shows how much of the model's belief is fake. </div> <div className="text-emerald-300/70 text-[10px] md:text-xs mt-1"> Always review the individual frames below; treat this as a guide, not absolute proof. </div> </div> </div> );26 unmodified lines )} </main>
<footer className="text-center text-xs text-gray-500 dark:text-gray-400 py-8">© {new Date().getFullYear()} Deepfake Detector</footer> <footer className="text-center text-xs text-emerald-300/70 py-6 border-t border-emerald-900 bg-slate-950/95"> © {new Date().getFullYear()} DeepDetection • FaceForensics-inspired workflow ·{' '} <a className="text-emerald-400 hover:text-emerald-300" href="/analyze"> Start analysis </a> </footer>
{selectedFrameIndex !== null && result && result.frames && ( (() => {frontend/pages/analyze.jsx+20-12