Fix the commit before
Browse filesFiles changed (2)
18 unmodified lines19202122232418 unmodified lines43444546474840 unmodified lines89909192939418 unmodified linesif (f && !isValidSize(f)) {setError("Video must be 15 MB or smaller.");setVideoFile(null);return;}setError("");18 unmodified linesif (!isValidSize(f)) {setError("Video must be 15 MB or smaller.");setVideoFile(null);return;}setError("");40 unmodified linessetError("Please select a video file.");return;}setLoading(true);try {const formData = new FormData();18 unmodified lines1920212223242518 unmodified lines4445464748495040 unmodified lines91929394959697989910010110218 unmodified linesif (f && !isValidSize(f)) {setError("Video must be 15 MB or smaller.");setVideoFile(null);if (fileInputRef.current) fileInputRef.current.value = "";return;}setError("");18 unmodified linesif (!isValidSize(f)) {setError("Video must be 15 MB or smaller.");setVideoFile(null);if (fileInputRef.current) fileInputRef.current.value = "";return;}setError("");40 unmodified linessetError("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 lines2728293031323316 unmodified lines5051525354555657585960616270 unmodified lines13313413513613713813914014126 unmodified lines}});},{ threshold: 0.2 });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"><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="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<sectionref={howRef}className={`max-w-7xl mx-auto px-4 py-12 md:py-16 -mt-10 md:-mt-14 transition-all duration-700 ${howVisible ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`}><div className="max-w-3xl"><h2 className="text-xl md:text-2xl font-semibold">How it works</h2>26 unmodified lines2728293031323316 unmodified lines5051525354555657585960616270 unmodified lines13313413513613713813914014114226 unmodified lines}});},{ 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-[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.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<sectionref={howRef}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