Fix the commit before
Browse filesFiles changed (2)
18 unmodified lines1920212223242518 unmodified lines4445464748495040 unmodified lines91929394959697989910010110218 unmodified lines if (f && !isValidSize(f)) { setError("Video must be 15 MB or smaller."); setVideoFile(null); if (fileInputRef.current) fileInputRef.current.value = ""; return; } setError("");18 unmodified lines if (!isValidSize(f)) { setError("Video must be 15 MB or smaller."); setVideoFile(null); if (fileInputRef.current) fileInputRef.current.value = ""; return; } setError("");40 unmodified lines setError("Please select a video file."); return; } if (!isValidSize(videoFile)) { setError("Video must be 15 MB or smaller."); setVideoFile(null); if (fileInputRef.current) fileInputRef.current.value = ""; return; } setLoading(true); try { const formData = new FormData();26 unmodified lines272829303031323316 unmodified lines50515253535455565758595960616270 unmodified lines13313413513613613713813914014114226 unmodified lines } }); }, { threshold: 0.2 } { threshold: 0.3, rootMargin: "0px 0px -25% 0px" } ); observer.observe(howRef.current); return () => observer.disconnect();16 unmodified lines </header>
<main className="flex-1"> <section className="relative overflow-hidden border-b border-emerald-900/60 animate-fade-in-up min-h-[70vh] md:min-h-[80vh] pt-16 md:pt-24 pb-24 md:pb-32"> <section className="relative overflow-hidden border-b border-emerald-900/60 animate-fade-in-up min-h-[80vh] md:min-h-[90vh] py-20 md:py-28 flex items-center"> <div className="absolute inset-0 pointer-events-none"> <div className="absolute inset-0 opacity-20 bg-[radial-gradient(circle_at_top,_#22c55e33,_transparent_60%)]" /> <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 grid gap-12 lg:grid-cols-[1.15fr,0.85fr] items-start"> <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 forensics70 unmodified lines
<section ref={howRef} className={`max-w-7xl mx-auto px-4 py-12 md:py-16 -mt-10 md:-mt-14 transition-all duration-700 ${ className={`max-w-7xl mx-auto px-4 py-12 md:py-16 transition-all duration-700 ${ howVisible ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10" }`} style={{ visibility: howVisible ? "visible" : "hidden" }} > <div className="max-w-3xl"> <h2 className="text-xl md:text-2xl font-semibold">How it works</h2>frontend/pages/analyze.jsx+8
frontend/pages/index.jsx+5-4