Spaces:
Running
Running
Ryan Christian D. Deniega commited on
Commit ·
376fe09
1
Parent(s): 70fdb2e
feat: add landing page — hero, modes, how-it-works, stats, CTA band
Browse files- frontend/src/App.jsx +3 -1
- frontend/src/components/Navbar.jsx +1 -1
- frontend/src/index.css +27 -0
- frontend/src/pages/LandingPage.jsx +588 -0
frontend/src/App.jsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
| 2 |
import Navbar from './components/Navbar.jsx'
|
|
|
|
| 3 |
import VerifyPage from './pages/VerifyPage.jsx'
|
| 4 |
import HistoryPage from './pages/HistoryPage.jsx'
|
| 5 |
import TrendsPage from './pages/TrendsPage.jsx'
|
|
@@ -42,7 +43,8 @@ export default function App() {
|
|
| 42 |
<Navbar />
|
| 43 |
<div id="main-content">
|
| 44 |
<Routes>
|
| 45 |
-
<Route path="/" element={<
|
|
|
|
| 46 |
<Route path="/history" element={<HistoryPage />} />
|
| 47 |
<Route path="/trends" element={<TrendsPage />} />
|
| 48 |
</Routes>
|
|
|
|
| 1 |
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
| 2 |
import Navbar from './components/Navbar.jsx'
|
| 3 |
+
import LandingPage from './pages/LandingPage.jsx'
|
| 4 |
import VerifyPage from './pages/VerifyPage.jsx'
|
| 5 |
import HistoryPage from './pages/HistoryPage.jsx'
|
| 6 |
import TrendsPage from './pages/TrendsPage.jsx'
|
|
|
|
| 43 |
<Navbar />
|
| 44 |
<div id="main-content">
|
| 45 |
<Routes>
|
| 46 |
+
<Route path="/" element={<LandingPage />} />
|
| 47 |
+
<Route path="/verify" element={<VerifyPage />} />
|
| 48 |
<Route path="/history" element={<HistoryPage />} />
|
| 49 |
<Route path="/trends" element={<TrendsPage />} />
|
| 50 |
</Routes>
|
frontend/src/components/Navbar.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import { Radar, Clock, TrendingUp, ShieldCheck } from 'lucide-react'
|
|
| 3 |
import { PAGE_STYLE } from '../App.jsx'
|
| 4 |
|
| 5 |
const NAV_LINKS = [
|
| 6 |
-
{ to: '/', icon: ShieldCheck, label: 'Verify' },
|
| 7 |
{ to: '/history', icon: Clock, label: 'History' },
|
| 8 |
{ to: '/trends', icon: TrendingUp, label: 'Trends' },
|
| 9 |
]
|
|
|
|
| 3 |
import { PAGE_STYLE } from '../App.jsx'
|
| 4 |
|
| 5 |
const NAV_LINKS = [
|
| 6 |
+
{ to: '/verify', icon: ShieldCheck, label: 'Verify' },
|
| 7 |
{ to: '/history', icon: Clock, label: 'History' },
|
| 8 |
{ to: '/trends', icon: TrendingUp, label: 'Trends' },
|
| 9 |
]
|
frontend/src/index.css
CHANGED
|
@@ -283,6 +283,33 @@ a.nav-link-item:hover > div {
|
|
| 283 |
}
|
| 284 |
}
|
| 285 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
/* ── Verdict breaking-news banner ──────────────────────── */
|
| 287 |
.verdict-banner {
|
| 288 |
font-family: var(--font-display);
|
|
|
|
| 283 |
}
|
| 284 |
}
|
| 285 |
|
| 286 |
+
/* ── Landing page — responsive overrides ──────────────────── */
|
| 287 |
+
.landing-stats {
|
| 288 |
+
display: grid;
|
| 289 |
+
grid-template-columns: repeat(3, 1fr);
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
@media (max-width: 640px) {
|
| 293 |
+
.landing-stats {
|
| 294 |
+
grid-template-columns: 1fr !important;
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
.landing-stats > div {
|
| 298 |
+
border-right: none !important;
|
| 299 |
+
border-bottom: 1px solid var(--border);
|
| 300 |
+
padding-left: 0 !important;
|
| 301 |
+
padding-right: 0 !important;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.landing-stats > div:last-child {
|
| 305 |
+
border-bottom: none;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.landing-steps {
|
| 309 |
+
flex-direction: column;
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
/* ── Verdict breaking-news banner ──────────────────────── */
|
| 314 |
.verdict-banner {
|
| 315 |
font-family: var(--font-display);
|
frontend/src/pages/LandingPage.jsx
ADDED
|
@@ -0,0 +1,588 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Link } from 'react-router-dom'
|
| 2 |
+
import { FileText, Link2, Image, Video, ArrowRight, Database, ShieldCheck } from 'lucide-react'
|
| 3 |
+
import { PAGE_STYLE } from '../App.jsx'
|
| 4 |
+
|
| 5 |
+
/* ─── data ──────────────────────────────────────────────────── */
|
| 6 |
+
const MODES = [
|
| 7 |
+
{
|
| 8 |
+
icon: FileText,
|
| 9 |
+
label: 'Text',
|
| 10 |
+
desc: 'Paste any headline, social media post, or claim — Tagalog, English, or Taglish.',
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
icon: Link2,
|
| 14 |
+
label: 'URL',
|
| 15 |
+
desc: 'Drop a link to any Philippine news article and get instant credibility analysis.',
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
icon: Image,
|
| 19 |
+
label: 'Image',
|
| 20 |
+
desc: 'Upload a screenshot — OCR extracts all visible text for full fact-checking.',
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
icon: Video,
|
| 24 |
+
label: 'Video',
|
| 25 |
+
desc: 'Upload a clip — Whisper transcribes speech, frame OCR captures on-screen text.',
|
| 26 |
+
},
|
| 27 |
+
]
|
| 28 |
+
|
| 29 |
+
const STEPS = [
|
| 30 |
+
{
|
| 31 |
+
num: '01',
|
| 32 |
+
label: 'INPUT',
|
| 33 |
+
icon: FileText,
|
| 34 |
+
desc: 'Paste text, drop a URL, upload an image, or submit a video clip.',
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
num: '02',
|
| 38 |
+
label: 'ANALYZE',
|
| 39 |
+
icon: Database,
|
| 40 |
+
desc: 'NLP pipeline extracts claims, detects language, checks clickbait, and queries live evidence.',
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
num: '03',
|
| 44 |
+
label: 'VERDICT',
|
| 45 |
+
icon: ShieldCheck,
|
| 46 |
+
desc: 'Credibility score, entity breakdown, and source evidence — rendered in seconds.',
|
| 47 |
+
},
|
| 48 |
+
]
|
| 49 |
+
|
| 50 |
+
const STATS = [
|
| 51 |
+
{ value: '70M+', label: 'Filipinos online', sub: 'one of the highest social media usage rates in the world' },
|
| 52 |
+
{ value: '6×', label: 'faster spread', sub: 'misinformation travels six times faster than verified news' },
|
| 53 |
+
{ value: '2026', label: 'election year', sub: 'disinformation campaigns at all-time high during election cycles' },
|
| 54 |
+
]
|
| 55 |
+
|
| 56 |
+
/* ─── component ─────────────────────────────────────────────── */
|
| 57 |
+
export default function LandingPage() {
|
| 58 |
+
return (
|
| 59 |
+
<div style={{ background: 'var(--bg-base)', overflowX: 'hidden' }}>
|
| 60 |
+
|
| 61 |
+
{/* ── Hero ─────────────────────────────────────────────── */}
|
| 62 |
+
<section
|
| 63 |
+
style={{
|
| 64 |
+
minHeight: 'calc(100vh - 56px)',
|
| 65 |
+
display: 'flex',
|
| 66 |
+
flexDirection: 'column',
|
| 67 |
+
justifyContent: 'center',
|
| 68 |
+
position: 'relative',
|
| 69 |
+
overflow: 'hidden',
|
| 70 |
+
borderBottom: '1px solid var(--border)',
|
| 71 |
+
}}
|
| 72 |
+
>
|
| 73 |
+
{/* Red diagonal gradient overlay */}
|
| 74 |
+
<div
|
| 75 |
+
aria-hidden
|
| 76 |
+
style={{
|
| 77 |
+
position: 'absolute',
|
| 78 |
+
inset: 0,
|
| 79 |
+
background:
|
| 80 |
+
'radial-gradient(ellipse 80% 60% at 60% 40%, rgba(220,38,38,0.07) 0%, transparent 70%)',
|
| 81 |
+
pointerEvents: 'none',
|
| 82 |
+
}}
|
| 83 |
+
/>
|
| 84 |
+
|
| 85 |
+
{/* Animated scanline — single key animation per UX guidance */}
|
| 86 |
+
<div
|
| 87 |
+
aria-hidden
|
| 88 |
+
style={{
|
| 89 |
+
position: 'absolute',
|
| 90 |
+
left: 0,
|
| 91 |
+
right: 0,
|
| 92 |
+
height: 1,
|
| 93 |
+
background: 'linear-gradient(90deg, transparent 0%, var(--accent-red) 40%, var(--accent-red) 60%, transparent 100%)',
|
| 94 |
+
opacity: 0.35,
|
| 95 |
+
animation: 'scanline 3.5s cubic-bezier(0.4,0,0.6,1) infinite',
|
| 96 |
+
}}
|
| 97 |
+
/>
|
| 98 |
+
|
| 99 |
+
{/* Content */}
|
| 100 |
+
<div style={{ ...PAGE_STYLE, paddingTop: 80, paddingBottom: 80 }}>
|
| 101 |
+
{/* Eyebrow */}
|
| 102 |
+
<p
|
| 103 |
+
className="fade-up-1"
|
| 104 |
+
style={{
|
| 105 |
+
fontFamily: 'var(--font-mono)',
|
| 106 |
+
fontSize: 11,
|
| 107 |
+
letterSpacing: '0.25em',
|
| 108 |
+
textTransform: 'uppercase',
|
| 109 |
+
color: 'var(--accent-red)',
|
| 110 |
+
marginBottom: 24,
|
| 111 |
+
}}
|
| 112 |
+
>
|
| 113 |
+
Philippine Fact-Check Engine · Multimodal AI
|
| 114 |
+
</p>
|
| 115 |
+
|
| 116 |
+
{/* Main headline — clamp as per UI/UX Pro Max exaggerated-minimalism */}
|
| 117 |
+
<h1
|
| 118 |
+
className="fade-up-2"
|
| 119 |
+
style={{
|
| 120 |
+
fontFamily: 'var(--font-display)',
|
| 121 |
+
fontSize: 'clamp(2.8rem, 9vw, 7.5rem)',
|
| 122 |
+
fontWeight: 800,
|
| 123 |
+
lineHeight: 0.95,
|
| 124 |
+
letterSpacing: '-0.03em',
|
| 125 |
+
color: 'var(--text-primary)',
|
| 126 |
+
marginBottom: 32,
|
| 127 |
+
maxWidth: 820,
|
| 128 |
+
}}
|
| 129 |
+
>
|
| 130 |
+
VERIFY<br />
|
| 131 |
+
BEFORE<br />
|
| 132 |
+
<span style={{ color: 'var(--accent-red)' }}>YOU SHARE.</span>
|
| 133 |
+
</h1>
|
| 134 |
+
|
| 135 |
+
{/* Subline */}
|
| 136 |
+
<p
|
| 137 |
+
className="fade-up-3"
|
| 138 |
+
style={{
|
| 139 |
+
fontFamily: 'var(--font-body)',
|
| 140 |
+
fontSize: 'clamp(1rem, 2vw, 1.2rem)',
|
| 141 |
+
color: 'var(--text-secondary)',
|
| 142 |
+
maxWidth: 520,
|
| 143 |
+
lineHeight: 1.7,
|
| 144 |
+
marginBottom: 48,
|
| 145 |
+
}}
|
| 146 |
+
>
|
| 147 |
+
PhilVerify checks claims, URLs, images, and videos against live news evidence — built for Tagalog, English, and Taglish content.
|
| 148 |
+
</p>
|
| 149 |
+
|
| 150 |
+
{/* CTA */}
|
| 151 |
+
<div className="fade-up-4" style={{ display: 'flex', gap: 16, flexWrap: 'wrap', alignItems: 'center' }}>
|
| 152 |
+
<Link
|
| 153 |
+
to="/verify"
|
| 154 |
+
style={{
|
| 155 |
+
display: 'inline-flex',
|
| 156 |
+
alignItems: 'center',
|
| 157 |
+
gap: 10,
|
| 158 |
+
background: 'var(--accent-red)',
|
| 159 |
+
color: '#fff',
|
| 160 |
+
fontFamily: 'var(--font-display)',
|
| 161 |
+
fontSize: 13,
|
| 162 |
+
fontWeight: 700,
|
| 163 |
+
letterSpacing: '0.15em',
|
| 164 |
+
textTransform: 'uppercase',
|
| 165 |
+
padding: '14px 28px',
|
| 166 |
+
textDecoration: 'none',
|
| 167 |
+
transition: 'background 0.2s ease-out, transform 0.15s ease-out',
|
| 168 |
+
cursor: 'pointer',
|
| 169 |
+
}}
|
| 170 |
+
onMouseEnter={e => { e.currentTarget.style.background = '#b91c1c'; e.currentTarget.style.transform = 'translateY(-1px)'; }}
|
| 171 |
+
onMouseLeave={e => { e.currentTarget.style.background = 'var(--accent-red)'; e.currentTarget.style.transform = 'translateY(0)'; }}
|
| 172 |
+
>
|
| 173 |
+
Start Verifying
|
| 174 |
+
<ArrowRight size={16} strokeWidth={2.5} />
|
| 175 |
+
</Link>
|
| 176 |
+
|
| 177 |
+
<a
|
| 178 |
+
href="https://semiautomat1c-philverify-api.hf.space/docs"
|
| 179 |
+
target="_blank"
|
| 180 |
+
rel="noopener noreferrer"
|
| 181 |
+
style={{
|
| 182 |
+
display: 'inline-flex',
|
| 183 |
+
alignItems: 'center',
|
| 184 |
+
gap: 8,
|
| 185 |
+
fontFamily: 'var(--font-display)',
|
| 186 |
+
fontSize: 12,
|
| 187 |
+
fontWeight: 600,
|
| 188 |
+
letterSpacing: '0.12em',
|
| 189 |
+
textTransform: 'uppercase',
|
| 190 |
+
color: 'var(--text-secondary)',
|
| 191 |
+
textDecoration: 'none',
|
| 192 |
+
borderBottom: '1px solid var(--border)',
|
| 193 |
+
paddingBottom: 2,
|
| 194 |
+
transition: 'color 0.2s ease-out, border-color 0.2s ease-out',
|
| 195 |
+
cursor: 'pointer',
|
| 196 |
+
}}
|
| 197 |
+
onMouseEnter={e => { e.currentTarget.style.color = 'var(--text-primary)'; e.currentTarget.style.borderColor = 'var(--text-primary)'; }}
|
| 198 |
+
onMouseLeave={e => { e.currentTarget.style.color = 'var(--text-secondary)'; e.currentTarget.style.borderColor = 'var(--border)'; }}
|
| 199 |
+
>
|
| 200 |
+
API Docs
|
| 201 |
+
</a>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
</section>
|
| 205 |
+
|
| 206 |
+
{/* ── Why It Matters — stats ───────────────────────────── */}
|
| 207 |
+
<section
|
| 208 |
+
style={{
|
| 209 |
+
borderBottom: '1px solid var(--border)',
|
| 210 |
+
background: 'var(--bg-surface)',
|
| 211 |
+
}}
|
| 212 |
+
>
|
| 213 |
+
<div
|
| 214 |
+
className="landing-stats"
|
| 215 |
+
style={{
|
| 216 |
+
...PAGE_STYLE,
|
| 217 |
+
paddingTop: 0,
|
| 218 |
+
paddingBottom: 0,
|
| 219 |
+
}}
|
| 220 |
+
>
|
| 221 |
+
{STATS.map((s, i) => (
|
| 222 |
+
<div
|
| 223 |
+
key={s.value}
|
| 224 |
+
style={{
|
| 225 |
+
padding: '48px 0',
|
| 226 |
+
borderRight: i < STATS.length - 1 ? '1px solid var(--border)' : 'none',
|
| 227 |
+
paddingRight: i < STATS.length - 1 ? 40 : 0,
|
| 228 |
+
paddingLeft: i > 0 ? 40 : 0,
|
| 229 |
+
}}
|
| 230 |
+
>
|
| 231 |
+
<div
|
| 232 |
+
style={{
|
| 233 |
+
fontFamily: 'var(--font-display)',
|
| 234 |
+
fontSize: 'clamp(2rem, 5vw, 3.5rem)',
|
| 235 |
+
fontWeight: 800,
|
| 236 |
+
color: 'var(--accent-red)',
|
| 237 |
+
letterSpacing: '-0.03em',
|
| 238 |
+
lineHeight: 1,
|
| 239 |
+
marginBottom: 8,
|
| 240 |
+
}}
|
| 241 |
+
>
|
| 242 |
+
{s.value}
|
| 243 |
+
</div>
|
| 244 |
+
<div
|
| 245 |
+
style={{
|
| 246 |
+
fontFamily: 'var(--font-display)',
|
| 247 |
+
fontSize: 11,
|
| 248 |
+
fontWeight: 700,
|
| 249 |
+
letterSpacing: '0.2em',
|
| 250 |
+
textTransform: 'uppercase',
|
| 251 |
+
color: 'var(--text-primary)',
|
| 252 |
+
marginBottom: 8,
|
| 253 |
+
}}
|
| 254 |
+
>
|
| 255 |
+
{s.label}
|
| 256 |
+
</div>
|
| 257 |
+
<div
|
| 258 |
+
style={{
|
| 259 |
+
fontFamily: 'var(--font-body)',
|
| 260 |
+
fontSize: 13,
|
| 261 |
+
color: 'var(--text-muted)',
|
| 262 |
+
lineHeight: 1.5,
|
| 263 |
+
}}
|
| 264 |
+
>
|
| 265 |
+
{s.sub}
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
))}
|
| 269 |
+
</div>
|
| 270 |
+
</section>
|
| 271 |
+
|
| 272 |
+
{/* ── Input Modes ──────────────────────────────────────── */}
|
| 273 |
+
<section style={{ borderBottom: '1px solid var(--border)' }}>
|
| 274 |
+
<div style={{ ...PAGE_STYLE, paddingTop: 80, paddingBottom: 80 }}>
|
| 275 |
+
<p
|
| 276 |
+
style={{
|
| 277 |
+
fontFamily: 'var(--font-mono)',
|
| 278 |
+
fontSize: 11,
|
| 279 |
+
letterSpacing: '0.25em',
|
| 280 |
+
textTransform: 'uppercase',
|
| 281 |
+
color: 'var(--text-muted)',
|
| 282 |
+
marginBottom: 12,
|
| 283 |
+
}}
|
| 284 |
+
>
|
| 285 |
+
What can you verify
|
| 286 |
+
</p>
|
| 287 |
+
<h2
|
| 288 |
+
style={{
|
| 289 |
+
fontFamily: 'var(--font-display)',
|
| 290 |
+
fontSize: 'clamp(1.6rem, 4vw, 2.8rem)',
|
| 291 |
+
fontWeight: 800,
|
| 292 |
+
letterSpacing: '-0.02em',
|
| 293 |
+
color: 'var(--text-primary)',
|
| 294 |
+
marginBottom: 48,
|
| 295 |
+
maxWidth: 520,
|
| 296 |
+
}}
|
| 297 |
+
>
|
| 298 |
+
Four ways to submit a claim.
|
| 299 |
+
</h2>
|
| 300 |
+
|
| 301 |
+
<div
|
| 302 |
+
style={{
|
| 303 |
+
display: 'grid',
|
| 304 |
+
gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))',
|
| 305 |
+
gap: 1,
|
| 306 |
+
border: '1px solid var(--border)',
|
| 307 |
+
}}
|
| 308 |
+
>
|
| 309 |
+
{MODES.map(({ icon: Icon, label, desc }) => (
|
| 310 |
+
<Link
|
| 311 |
+
key={label}
|
| 312 |
+
to="/verify"
|
| 313 |
+
style={{ textDecoration: 'none' }}
|
| 314 |
+
>
|
| 315 |
+
<div
|
| 316 |
+
className="card"
|
| 317 |
+
style={{
|
| 318 |
+
padding: '32px 28px',
|
| 319 |
+
borderRadius: 0,
|
| 320 |
+
border: 'none',
|
| 321 |
+
borderLeft: '3px solid transparent',
|
| 322 |
+
transition: 'border-color 0.2s ease-out, background 0.2s ease-out',
|
| 323 |
+
cursor: 'pointer',
|
| 324 |
+
height: '100%',
|
| 325 |
+
}}
|
| 326 |
+
onMouseEnter={e => {
|
| 327 |
+
e.currentTarget.style.borderLeftColor = 'var(--accent-red)'
|
| 328 |
+
e.currentTarget.style.background = 'var(--bg-elevated)'
|
| 329 |
+
}}
|
| 330 |
+
onMouseLeave={e => {
|
| 331 |
+
e.currentTarget.style.borderLeftColor = 'transparent'
|
| 332 |
+
e.currentTarget.style.background = 'var(--bg-surface)'
|
| 333 |
+
}}
|
| 334 |
+
>
|
| 335 |
+
<Icon
|
| 336 |
+
size={20}
|
| 337 |
+
strokeWidth={1.5}
|
| 338 |
+
style={{ color: 'var(--accent-red)', marginBottom: 16 }}
|
| 339 |
+
/>
|
| 340 |
+
<div
|
| 341 |
+
style={{
|
| 342 |
+
fontFamily: 'var(--font-display)',
|
| 343 |
+
fontSize: 13,
|
| 344 |
+
fontWeight: 700,
|
| 345 |
+
letterSpacing: '0.15em',
|
| 346 |
+
textTransform: 'uppercase',
|
| 347 |
+
color: 'var(--text-primary)',
|
| 348 |
+
marginBottom: 10,
|
| 349 |
+
}}
|
| 350 |
+
>
|
| 351 |
+
{label}
|
| 352 |
+
</div>
|
| 353 |
+
<p
|
| 354 |
+
style={{
|
| 355 |
+
fontFamily: 'var(--font-body)',
|
| 356 |
+
fontSize: 14,
|
| 357 |
+
color: 'var(--text-secondary)',
|
| 358 |
+
lineHeight: 1.6,
|
| 359 |
+
}}
|
| 360 |
+
>
|
| 361 |
+
{desc}
|
| 362 |
+
</p>
|
| 363 |
+
</div>
|
| 364 |
+
</Link>
|
| 365 |
+
))}
|
| 366 |
+
</div>
|
| 367 |
+
</div>
|
| 368 |
+
</section>
|
| 369 |
+
|
| 370 |
+
{/* ── How It Works ─────────────────────────────────────── */}
|
| 371 |
+
<section style={{ borderBottom: '1px solid var(--border)', background: 'var(--bg-surface)' }}>
|
| 372 |
+
<div style={{ ...PAGE_STYLE, paddingTop: 80, paddingBottom: 80 }}>
|
| 373 |
+
<p
|
| 374 |
+
style={{
|
| 375 |
+
fontFamily: 'var(--font-mono)',
|
| 376 |
+
fontSize: 11,
|
| 377 |
+
letterSpacing: '0.25em',
|
| 378 |
+
textTransform: 'uppercase',
|
| 379 |
+
color: 'var(--text-muted)',
|
| 380 |
+
marginBottom: 12,
|
| 381 |
+
}}
|
| 382 |
+
>
|
| 383 |
+
The process
|
| 384 |
+
</p>
|
| 385 |
+
<h2
|
| 386 |
+
style={{
|
| 387 |
+
fontFamily: 'var(--font-display)',
|
| 388 |
+
fontSize: 'clamp(1.6rem, 4vw, 2.8rem)',
|
| 389 |
+
fontWeight: 800,
|
| 390 |
+
letterSpacing: '-0.02em',
|
| 391 |
+
color: 'var(--text-primary)',
|
| 392 |
+
marginBottom: 64,
|
| 393 |
+
maxWidth: 480,
|
| 394 |
+
}}
|
| 395 |
+
>
|
| 396 |
+
From claim to verdict in seconds.
|
| 397 |
+
</h2>
|
| 398 |
+
|
| 399 |
+
<div
|
| 400 |
+
style={{
|
| 401 |
+
display: 'grid',
|
| 402 |
+
gridTemplateColumns: 'repeat(auto-fit, minmax(240px, 1fr))',
|
| 403 |
+
gap: 0,
|
| 404 |
+
}}
|
| 405 |
+
>
|
| 406 |
+
{STEPS.map(({ num, label, icon: Icon, desc }, i) => (
|
| 407 |
+
<div
|
| 408 |
+
key={num}
|
| 409 |
+
style={{
|
| 410 |
+
padding: '0 40px 0 0',
|
| 411 |
+
borderRight: i < STEPS.length - 1 ? '1px solid var(--border)' : 'none',
|
| 412 |
+
marginRight: i < STEPS.length - 1 ? 40 : 0,
|
| 413 |
+
paddingBottom: 0,
|
| 414 |
+
}}
|
| 415 |
+
>
|
| 416 |
+
<div
|
| 417 |
+
style={{
|
| 418 |
+
display: 'flex',
|
| 419 |
+
alignItems: 'center',
|
| 420 |
+
gap: 12,
|
| 421 |
+
marginBottom: 24,
|
| 422 |
+
}}
|
| 423 |
+
>
|
| 424 |
+
<span
|
| 425 |
+
style={{
|
| 426 |
+
fontFamily: 'var(--font-mono)',
|
| 427 |
+
fontSize: 'clamp(2rem, 4vw, 3rem)',
|
| 428 |
+
fontWeight: 700,
|
| 429 |
+
color: 'var(--bg-elevated)',
|
| 430 |
+
letterSpacing: '-0.04em',
|
| 431 |
+
lineHeight: 1,
|
| 432 |
+
WebkitTextStroke: '1px var(--border-light)',
|
| 433 |
+
}}
|
| 434 |
+
>
|
| 435 |
+
{num}
|
| 436 |
+
</span>
|
| 437 |
+
<div
|
| 438 |
+
style={{
|
| 439 |
+
width: 1,
|
| 440 |
+
height: 40,
|
| 441 |
+
background: 'var(--border)',
|
| 442 |
+
}}
|
| 443 |
+
/>
|
| 444 |
+
<div>
|
| 445 |
+
<div
|
| 446 |
+
style={{
|
| 447 |
+
fontFamily: 'var(--font-display)',
|
| 448 |
+
fontSize: 11,
|
| 449 |
+
fontWeight: 700,
|
| 450 |
+
letterSpacing: '0.25em',
|
| 451 |
+
textTransform: 'uppercase',
|
| 452 |
+
color: 'var(--accent-red)',
|
| 453 |
+
}}
|
| 454 |
+
>
|
| 455 |
+
{label}
|
| 456 |
+
</div>
|
| 457 |
+
<Icon size={18} strokeWidth={1.5} style={{ color: 'var(--text-secondary)', marginTop: 4 }} />
|
| 458 |
+
</div>
|
| 459 |
+
</div>
|
| 460 |
+
<p
|
| 461 |
+
style={{
|
| 462 |
+
fontFamily: 'var(--font-body)',
|
| 463 |
+
fontSize: 15,
|
| 464 |
+
color: 'var(--text-secondary)',
|
| 465 |
+
lineHeight: 1.7,
|
| 466 |
+
maxWidth: 280,
|
| 467 |
+
}}
|
| 468 |
+
>
|
| 469 |
+
{desc}
|
| 470 |
+
</p>
|
| 471 |
+
</div>
|
| 472 |
+
))}
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
</section>
|
| 476 |
+
|
| 477 |
+
{/* ── Final CTA band ───────────────────────────────────── */}
|
| 478 |
+
<section style={{ background: 'var(--accent-red)' }}>
|
| 479 |
+
<div
|
| 480 |
+
style={{
|
| 481 |
+
...PAGE_STYLE,
|
| 482 |
+
paddingTop: 80,
|
| 483 |
+
paddingBottom: 80,
|
| 484 |
+
display: 'flex',
|
| 485 |
+
flexDirection: 'column',
|
| 486 |
+
alignItems: 'center',
|
| 487 |
+
textAlign: 'center',
|
| 488 |
+
gap: 24,
|
| 489 |
+
}}
|
| 490 |
+
>
|
| 491 |
+
<p
|
| 492 |
+
style={{
|
| 493 |
+
fontFamily: 'var(--font-mono)',
|
| 494 |
+
fontSize: 11,
|
| 495 |
+
letterSpacing: '0.25em',
|
| 496 |
+
textTransform: 'uppercase',
|
| 497 |
+
color: 'rgba(255,255,255,0.6)',
|
| 498 |
+
}}
|
| 499 |
+
>
|
| 500 |
+
Free to use · No account needed
|
| 501 |
+
</p>
|
| 502 |
+
<h2
|
| 503 |
+
style={{
|
| 504 |
+
fontFamily: 'var(--font-display)',
|
| 505 |
+
fontSize: 'clamp(1.8rem, 5vw, 3.5rem)',
|
| 506 |
+
fontWeight: 800,
|
| 507 |
+
letterSpacing: '-0.02em',
|
| 508 |
+
color: '#fff',
|
| 509 |
+
lineHeight: 1,
|
| 510 |
+
maxWidth: 600,
|
| 511 |
+
}}
|
| 512 |
+
>
|
| 513 |
+
STOP MISINFORMATION.<br />START VERIFYING.
|
| 514 |
+
</h2>
|
| 515 |
+
<Link
|
| 516 |
+
to="/verify"
|
| 517 |
+
style={{
|
| 518 |
+
display: 'inline-flex',
|
| 519 |
+
alignItems: 'center',
|
| 520 |
+
gap: 10,
|
| 521 |
+
background: '#fff',
|
| 522 |
+
color: 'var(--accent-red)',
|
| 523 |
+
fontFamily: 'var(--font-display)',
|
| 524 |
+
fontSize: 13,
|
| 525 |
+
fontWeight: 700,
|
| 526 |
+
letterSpacing: '0.15em',
|
| 527 |
+
textTransform: 'uppercase',
|
| 528 |
+
padding: '14px 32px',
|
| 529 |
+
textDecoration: 'none',
|
| 530 |
+
marginTop: 8,
|
| 531 |
+
transition: 'background 0.2s ease-out, transform 0.15s ease-out',
|
| 532 |
+
cursor: 'pointer',
|
| 533 |
+
}}
|
| 534 |
+
onMouseEnter={e => { e.currentTarget.style.background = '#f5f0e8'; e.currentTarget.style.transform = 'translateY(-1px)'; }}
|
| 535 |
+
onMouseLeave={e => { e.currentTarget.style.background = '#fff'; e.currentTarget.style.transform = 'translateY(0)'; }}
|
| 536 |
+
>
|
| 537 |
+
Verify a Claim Now
|
| 538 |
+
<ArrowRight size={16} strokeWidth={2.5} />
|
| 539 |
+
</Link>
|
| 540 |
+
</div>
|
| 541 |
+
</section>
|
| 542 |
+
|
| 543 |
+
{/* ── Footer ───────────────────────────────────────────── */}
|
| 544 |
+
<footer
|
| 545 |
+
style={{
|
| 546 |
+
borderTop: '1px solid var(--border)',
|
| 547 |
+
background: 'var(--bg-base)',
|
| 548 |
+
}}
|
| 549 |
+
>
|
| 550 |
+
<div
|
| 551 |
+
style={{
|
| 552 |
+
...PAGE_STYLE,
|
| 553 |
+
paddingTop: 32,
|
| 554 |
+
paddingBottom: 32,
|
| 555 |
+
display: 'flex',
|
| 556 |
+
justifyContent: 'space-between',
|
| 557 |
+
alignItems: 'center',
|
| 558 |
+
flexWrap: 'wrap',
|
| 559 |
+
gap: 16,
|
| 560 |
+
}}
|
| 561 |
+
>
|
| 562 |
+
<span
|
| 563 |
+
style={{
|
| 564 |
+
fontFamily: 'var(--font-display)',
|
| 565 |
+
fontSize: 13,
|
| 566 |
+
fontWeight: 800,
|
| 567 |
+
letterSpacing: '0.1em',
|
| 568 |
+
color: 'var(--text-muted)',
|
| 569 |
+
}}
|
| 570 |
+
>
|
| 571 |
+
PHIL·VERIFY
|
| 572 |
+
</span>
|
| 573 |
+
<span
|
| 574 |
+
style={{
|
| 575 |
+
fontFamily: 'var(--font-mono)',
|
| 576 |
+
fontSize: 11,
|
| 577 |
+
color: 'var(--text-muted)',
|
| 578 |
+
letterSpacing: '0.1em',
|
| 579 |
+
}}
|
| 580 |
+
>
|
| 581 |
+
ML2 Final Project · MIT License · {new Date().getFullYear()}
|
| 582 |
+
</span>
|
| 583 |
+
</div>
|
| 584 |
+
</footer>
|
| 585 |
+
|
| 586 |
+
</div>
|
| 587 |
+
)
|
| 588 |
+
}
|