90 lines
5.5 KiB
TypeScript
90 lines
5.5 KiB
TypeScript
import Link from "next/link";
|
|
|
|
export default function HomePage() {
|
|
return (
|
|
<div className="space-y-16 py-8">
|
|
{/* Hero Section */}
|
|
<section className="mx-auto max-w-3xl space-y-6 text-center">
|
|
<h1 className="text-5xl font-bold tracking-tight text-transparent bg-clip-text bg-gradient-to-r from-green-400 to-emerald-600 sm:text-6xl">
|
|
Open Cyber LLM Arena
|
|
</h1>
|
|
<p className="text-lg text-gray-400 leading-relaxed mx-auto max-w-2xl">
|
|
The crowdsourced benchmarking platform for evaluating LLMs on <span className="text-gray-200 font-medium">real-world cybersecurity tasks</span>.
|
|
Run privacy-first benchmarks directly in your browser.
|
|
</p>
|
|
|
|
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
|
|
<Link
|
|
href="/benchmark"
|
|
className="group flex items-center gap-2 rounded-full bg-green-500 px-8 py-3 text-sm font-semibold text-black transition-all hover:bg-green-400 hover:shadow-lg hover:shadow-green-500/20"
|
|
>
|
|
Start Benchmark
|
|
<span className="transition-transform group-hover:translate-x-0.5">→</span>
|
|
</Link>
|
|
<Link
|
|
href="/leaderboard"
|
|
className="rounded-full border border-gray-700 bg-gray-900/50 px-8 py-3 text-sm font-medium text-gray-300 transition-all hover:bg-gray-800 hover:text-white"
|
|
>
|
|
View Leaderboard
|
|
</Link>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Feature Grid */}
|
|
<section className="grid gap-6 md:grid-cols-3">
|
|
<div className="group relative overflow-hidden rounded-2xl border border-gray-800 bg-gray-900/20 p-6 transition-all hover:border-gray-700 hover:bg-gray-900/40">
|
|
<div className="mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-blue-500/10 text-blue-400 group-hover:bg-blue-500/20">
|
|
<svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
|
</svg>
|
|
</div>
|
|
<h3 className="mb-2 text-lg font-semibold text-gray-100">High Trust & Privacy</h3>
|
|
<p className="text-sm text-gray-400 leading-relaxed">
|
|
Your API keys never leave your browser. Benchmarks run locally on your device, sending requests directly to the provider.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="group relative overflow-hidden rounded-2xl border border-gray-800 bg-gray-900/20 p-6 transition-all hover:border-gray-700 hover:bg-gray-900/40">
|
|
<div className="mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-purple-500/10 text-purple-400 group-hover:bg-purple-500/20">
|
|
<svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19.428 15.428a2 2 0 00-1.022-.547l-2.384-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
|
|
</svg>
|
|
</div>
|
|
<h3 className="mb-2 text-lg font-semibold text-gray-100">Local Model Support</h3>
|
|
<p className="text-sm text-gray-400 leading-relaxed">
|
|
Seamlessly benchmark local models via Ollama, LM Studio, or llama.cpp. Just point OCLA to your localhost endpoint.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="group relative overflow-hidden rounded-2xl border border-gray-800 bg-gray-900/20 p-6 transition-all hover:border-gray-700 hover:bg-gray-900/40">
|
|
<div className="mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-emerald-500/10 text-emerald-400 group-hover:bg-emerald-500/20">
|
|
<svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
|
|
</svg>
|
|
</div>
|
|
<h3 className="mb-2 text-lg font-semibold text-gray-100">Anonymous Sharing</h3>
|
|
<p className="text-sm text-gray-400 leading-relaxed">
|
|
Contribute to the community by sharing aggregated scores. No prompt text, response content, or IP addresses are ever recorded.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Info Banner */}
|
|
<section className="relative overflow-hidden rounded-2xl border border-yellow-500/10 bg-gradient-to-br from-yellow-500/5 to-transparent p-6">
|
|
<div className="flex items-start gap-4">
|
|
<div className="mt-1 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-yellow-500/10 text-yellow-500">
|
|
<span className="text-lg font-bold">!</span>
|
|
</div>
|
|
<div>
|
|
<h3 className="text-base font-medium text-yellow-200">Pre-loaded Safety Prompts</h3>
|
|
<p className="mt-1 text-sm text-yellow-500/80">
|
|
OCLA ships with a curated "Safe Pack" containing educational cybersecurity prompts.
|
|
You can also import your own custom packs (JSON) for internal red-teaming and evaluation.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
);
|
|
}
|