Added image scrolling for homepage
Browse files1234567817 unmodified lines2627282930313233343536373839405 unmodified lines464748495051525 unmodified lines5859606162636465666768697071727374import Link from "next/link";export default function Landing() {return (<div className="min-h-screen flex flex-col bg-slate-950 text-emerald-50 bg-radial-fade animate-fade-in"><header className="border-b border-emerald-800/60 bg-slate-950/80 backdrop-blur"><div className="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between"><div className="flex items-center gap-3">17 unmodified lines</div><div className="relative max-w-7xl mx-auto px-4 py-16 md:py-20 grid md:grid-cols-2 gap-10 items-center"><div className="space-y-4 animate-fade-in-scale"><p className="text-xs 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-sm md:text-base text-emerald-100/80 max-w-prose">Upload a video and we will pull out a few key frames, find the faces, and scoreeach one as real or fake. You can see the result for every frame, not just a singleyes/no answer.5 unmodified lines>Launch Analyzer</Link><div className="text-xs 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>5 unmodified lines<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 p-4"><div className="flex items-center justify-between text-xs 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 text-emerald-300/80 text-xs">Drop a video in the analyzer to see per-frame labels.</div><div className="mt-3 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>123456789101112131415161718192017 unmodified lines3839404142434445464748495051525 unmodified lines585960616263645 unmodified lines7071727374757677787980818283848586878889909192939495969798import Link from "next/link";import { useEffect, useState } from "react";const HERO_FRAMES = ["/1.jpg", "/2.jpg", "/3.jpg", "/4.jpg", "/5.jpg"];export default function Landing() {const [heroFrameIndex, setHeroFrameIndex] = useState(0);useEffect(() => {if (!HERO_FRAMES.length) return;const id = setInterval(() => {setHeroFrameIndex((prev) => (prev + 1) % HERO_FRAMES.length);}, 3500);return () => clearInterval(id);}, []);return (<div className="min-h-screen flex flex-col bg-slate-950 text-emerald-50 text-sm md:text-base bg-radial-fade animate-fade-in"><header className="border-b border-emerald-800/60 bg-slate-950/80 backdrop-blur"><div className="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between"><div className="flex items-center gap-3">17 unmodified lines</div><div className="relative max-w-7xl mx-auto px-4 py-16 md:py-20 grid md:grid-cols-2 gap-10 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 scoreeach one as real or fake. You can see the result for every frame, not just a singleyes/no answer.5 unmodified lines>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>5 unmodified lines<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 ? (<imgsrc={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>
frontend/pages/index.jsx+34-10