🎨 UI Overhaul — CODE-NARRATIVE-AI style (clean, no conflicts)
#6
by muthuk2 - opened
- frontend/src/index.css +10 -43
- frontend/src/pages/LandingPage.tsx +209 -205
- frontend/tailwind.config.js +6 -2
frontend/src/index.css
CHANGED
|
@@ -2,67 +2,34 @@
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
| 5 |
-
* {
|
| 6 |
-
|
| 7 |
-
padding: 0;
|
| 8 |
-
box-sizing: border-box;
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
html {
|
| 12 |
-
scroll-behavior: smooth;
|
| 13 |
-
}
|
| 14 |
|
| 15 |
body {
|
| 16 |
-
|
| 17 |
-
color: #ffffff;
|
| 18 |
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
|
| 19 |
-webkit-font-smoothing: antialiased;
|
| 20 |
-moz-osx-font-smoothing: grayscale;
|
| 21 |
}
|
| 22 |
|
| 23 |
-
::selection {
|
| 24 |
-
background: rgba(16, 185, 129, 0.2);
|
| 25 |
-
color: #ffffff;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
::-webkit-scrollbar {
|
| 29 |
-
width: 6px;
|
| 30 |
-
height: 6px;
|
| 31 |
-
}
|
| 32 |
|
| 33 |
-
::-webkit-scrollbar
|
| 34 |
-
|
| 35 |
-
}
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
-
background: #2a2a3e;
|
| 39 |
-
border-radius: 3px;
|
| 40 |
-
}
|
| 41 |
|
| 42 |
-
::-webkit-scrollbar-thumb:hover {
|
| 43 |
-
background: #3a3a5e;
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
/* Code blocks */
|
| 47 |
-
pre {
|
| 48 |
-
tab-size: 2;
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
/* Animations */
|
| 52 |
@keyframes fadeIn {
|
| 53 |
from { opacity: 0; transform: translateY(8px); }
|
| 54 |
to { opacity: 1; transform: translateY(0); }
|
| 55 |
}
|
| 56 |
-
|
| 57 |
-
.animate-fade-in {
|
| 58 |
-
animation: fadeIn 0.3s ease-out;
|
| 59 |
-
}
|
| 60 |
|
| 61 |
@keyframes shimmer {
|
| 62 |
0% { background-position: -200% 0; }
|
| 63 |
100% { background-position: 200% 0; }
|
| 64 |
}
|
| 65 |
-
|
| 66 |
.animate-shimmer {
|
| 67 |
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
|
| 68 |
background-size: 200% 100%;
|
|
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
| 5 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 6 |
+
html { scroll-behavior: smooth; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
body {
|
| 9 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
|
|
|
|
|
|
|
| 10 |
-webkit-font-smoothing: antialiased;
|
| 11 |
-moz-osx-font-smoothing: grayscale;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
::selection { background: rgba(16, 185, 129, 0.15); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 17 |
+
::-webkit-scrollbar-track { background: transparent; }
|
| 18 |
+
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
|
| 19 |
+
::-webkit-scrollbar-thumb:hover { background: #475569; }
|
| 20 |
|
| 21 |
+
pre { tab-size: 2; }
|
|
|
|
|
|
|
|
|
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
@keyframes fadeIn {
|
| 24 |
from { opacity: 0; transform: translateY(8px); }
|
| 25 |
to { opacity: 1; transform: translateY(0); }
|
| 26 |
}
|
| 27 |
+
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
@keyframes shimmer {
|
| 30 |
0% { background-position: -200% 0; }
|
| 31 |
100% { background-position: 200% 0; }
|
| 32 |
}
|
|
|
|
| 33 |
.animate-shimmer {
|
| 34 |
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
|
| 35 |
background-size: 200% 100%;
|
frontend/src/pages/LandingPage.tsx
CHANGED
|
@@ -1,234 +1,238 @@
|
|
| 1 |
-
import {
|
| 2 |
|
| 3 |
interface Props { onNavigate: (page: any) => void; }
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
particles.forEach(p => {
|
| 25 |
-
p.x += p.vx; p.y += p.vy;
|
| 26 |
-
if (p.x < 0 || p.x > canvas.width) p.vx *= -1;
|
| 27 |
-
if (p.y < 0 || p.y > canvas.height) p.vy *= -1;
|
| 28 |
-
ctx.beginPath(); ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
|
| 29 |
-
ctx.fillStyle = `rgba(16, 185, 129, ${p.a})`; ctx.fill();
|
| 30 |
-
});
|
| 31 |
-
for (let i = 0; i < particles.length; i++) {
|
| 32 |
-
for (let j = i + 1; j < particles.length; j++) {
|
| 33 |
-
const dx = particles[i].x - particles[j].x;
|
| 34 |
-
const dy = particles[i].y - particles[j].y;
|
| 35 |
-
const dist = Math.sqrt(dx * dx + dy * dy);
|
| 36 |
-
if (dist < 120) {
|
| 37 |
-
ctx.beginPath(); ctx.moveTo(particles[i].x, particles[i].y);
|
| 38 |
-
ctx.lineTo(particles[j].x, particles[j].y);
|
| 39 |
-
ctx.strokeStyle = `rgba(16, 185, 129, ${0.06 * (1 - dist / 120)})`;
|
| 40 |
-
ctx.lineWidth = 0.5; ctx.stroke();
|
| 41 |
-
}
|
| 42 |
-
}
|
| 43 |
-
}
|
| 44 |
-
animId = requestAnimationFrame(draw);
|
| 45 |
-
};
|
| 46 |
-
draw();
|
| 47 |
-
return () => { cancelAnimationFrame(animId); window.removeEventListener('resize', resize); };
|
| 48 |
-
}, []);
|
| 49 |
|
| 50 |
return (
|
| 51 |
-
<div className=
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
{/
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
</div>
|
| 67 |
</div>
|
| 68 |
-
<nav className="hidden md:flex items-center gap-6">
|
| 69 |
-
<a href="#features" className="text-sm text-gray-400 hover:text-white transition">Features</a>
|
| 70 |
-
<a href="#pipeline" className="text-sm text-gray-400 hover:text-white transition">Pipeline</a>
|
| 71 |
-
<a href="#research" className="text-sm text-gray-400 hover:text-white transition">Research</a>
|
| 72 |
-
</nav>
|
| 73 |
-
<button onClick={() => onNavigate('generate')} className="px-5 py-2.5 bg-white/[0.05] hover:bg-white/[0.08] border border-white/[0.08] rounded-full text-sm font-medium transition-all hover:border-emerald-500/30 hover:shadow-lg hover:shadow-emerald-500/10">
|
| 74 |
-
Launch App →
|
| 75 |
-
</button>
|
| 76 |
</header>
|
| 77 |
|
| 78 |
-
|
| 79 |
-
<section className="relative z-10 max-w-[1400px] mx-auto px-8 pt-20 lg:pt-32 pb-20 text-center">
|
| 80 |
-
{/* Badge */}
|
| 81 |
-
<div className="inline-flex items-center gap-2.5 px-5 py-2 rounded-full bg-gradient-to-r from-emerald-500/10 to-cyan-500/10 border border-emerald-500/20 mb-10">
|
| 82 |
-
<span className="w-2 h-2 bg-emerald-500 rounded-full animate-pulse" />
|
| 83 |
-
<span className="text-emerald-300 text-sm font-medium">Research-Grade AI • 5-Agent Pipeline • MuTAP Inspired</span>
|
| 84 |
-
</div>
|
| 85 |
-
|
| 86 |
-
<h1 className="text-5xl md:text-6xl lg:text-7xl font-black leading-[1.05] tracking-tight mb-8">
|
| 87 |
-
<span className="block text-white">Generate Tests That</span>
|
| 88 |
-
<span className="block mt-2 text-transparent bg-clip-text bg-gradient-to-r from-emerald-400 via-cyan-400 to-emerald-400 animate-gradient-x">Actually Catch Bugs</span>
|
| 89 |
-
</h1>
|
| 90 |
-
|
| 91 |
-
<p className="text-lg md:text-xl text-gray-400 max-w-2xl mx-auto mb-12 leading-relaxed">
|
| 92 |
-
5 AI agents analyze your code, generate tests, validate quality, and
|
| 93 |
-
<span className="text-emerald-300 font-semibold"> iteratively refine until grade A</span> —
|
| 94 |
-
using real mutation testing feedback.
|
| 95 |
-
</p>
|
| 96 |
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
<
|
| 101 |
-
|
| 102 |
-
<
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
</div>
|
| 121 |
-
))}
|
| 122 |
-
</div>
|
| 123 |
-
</section>
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</div>
|
| 147 |
-
))}
|
| 148 |
-
</div>
|
| 149 |
-
|
| 150 |
-
<div className="flex justify-center mt-6">
|
| 151 |
-
<div className="px-5 py-2 rounded-full bg-purple-500/10 border border-purple-500/20 text-purple-300 text-xs font-medium">
|
| 152 |
-
🔄 Agents 2–4 iterate until quality ≥ Grade A
|
| 153 |
</div>
|
| 154 |
-
</
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
| 165 |
-
{[
|
| 166 |
-
{ icon: '🔄', title: 'Iterative Refinement', desc: 'Generate → validate → improve (MuTAP loop)', tag: 'ISSTA 2023' },
|
| 167 |
-
{ icon: '📊', title: 'Behavior Coverage', desc: 'AST-based semantic coverage mapping', tag: 'Novel' },
|
| 168 |
-
{ icon: '🧬', title: 'Real Mutation Testing', desc: 'Actually executes mutants, finds survivors', tag: 'MuTAP' },
|
| 169 |
-
{ icon: '🧠', title: 'Complexity Analysis', desc: 'Cyclomatic complexity → test priority', tag: 'McCabe' },
|
| 170 |
-
{ icon: '🔍', title: 'Gap Detection', desc: 'Untested error paths & branches', tag: 'AST' },
|
| 171 |
-
{ icon: '📈', title: 'Quality Scoring', desc: 'Grade A-D on 5 dimensions', tag: 'Novel' },
|
| 172 |
-
{ icon: '🔐', title: 'Security Scanner', desc: 'OWASP: IDOR, injection, mass assignment', tag: 'OWASP' },
|
| 173 |
-
{ icon: '🤖', title: 'Multi-Agent', desc: '5 specialized agents collaborate', tag: '2024' },
|
| 174 |
-
].map((f, i) => (
|
| 175 |
-
<div key={i} className="group p-5 rounded-2xl bg-white/[0.015] border border-white/[0.04] hover:border-emerald-500/20 hover:bg-emerald-500/[0.02] transition-all duration-300">
|
| 176 |
-
<div className="flex items-start justify-between mb-3">
|
| 177 |
-
<span className="text-2xl">{f.icon}</span>
|
| 178 |
-
<span className="text-[9px] px-2 py-0.5 rounded-full bg-white/[0.05] text-gray-500 font-semibold uppercase tracking-wide">{f.tag}</span>
|
| 179 |
-
</div>
|
| 180 |
-
<h3 className="text-sm font-bold text-white mb-1.5 group-hover:text-emerald-300 transition">{f.title}</h3>
|
| 181 |
-
<p className="text-[11px] text-gray-500 leading-relaxed">{f.desc}</p>
|
| 182 |
</div>
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
<div className="p-8 rounded-3xl bg-gradient-to-br from-white/[0.02] to-white/[0.005] border border-white/[0.06]">
|
| 190 |
-
<h3 className="text-xl font-bold text-white mb-4">📑 Research Foundation</h3>
|
| 191 |
-
<div className="space-y-4">
|
| 192 |
-
{[
|
| 193 |
-
{ paper: 'MuTAP: Mutation Testing for AI-Generated Tests', venue: 'ISSTA 2023', id: 'arxiv:2308.16557', desc: 'Generate → mutate → find surviving mutants → re-prompt with feedback' },
|
| 194 |
-
{ paper: 'HITS: High-Coverage Test Synthesis', venue: 'ASE 2024', desc: 'Behavior-driven test generation with iterative coverage improvement' },
|
| 195 |
-
{ paper: 'Code Agents: Autonomous Code Generation', venue: 'arxiv:2406.12952', desc: 'Multi-agent collaboration for code understanding and generation' },
|
| 196 |
-
].map((r, i) => (
|
| 197 |
-
<div key={i} className="flex gap-4 items-start p-4 rounded-xl bg-white/[0.02] border border-white/[0.04]">
|
| 198 |
-
<div className="w-8 h-8 rounded-lg bg-emerald-500/10 flex items-center justify-center text-emerald-400 text-xs font-bold shrink-0">{i+1}</div>
|
| 199 |
-
<div>
|
| 200 |
-
<div className="text-sm font-semibold text-white">{r.paper}</div>
|
| 201 |
-
<div className="text-xs text-emerald-400/70 font-medium">{r.venue} {r.id && `• ${r.id}`}</div>
|
| 202 |
-
<div className="text-[11px] text-gray-500 mt-1">{r.desc}</div>
|
| 203 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
</div>
|
| 205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
</div>
|
| 207 |
-
</
|
| 208 |
-
</section>
|
| 209 |
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
{/* Footer */}
|
| 221 |
-
<footer className=
|
| 222 |
-
<div className="max-w-
|
| 223 |
-
<
|
| 224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
</div>
|
| 226 |
</footer>
|
| 227 |
-
|
| 228 |
-
<style>{`
|
| 229 |
-
@keyframes gradient-x { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
|
| 230 |
-
.animate-gradient-x { background-size: 200% 200%; animation: gradient-x 3s ease infinite; }
|
| 231 |
-
`}</style>
|
| 232 |
</div>
|
| 233 |
);
|
| 234 |
}
|
|
|
|
| 1 |
+
import { useState } from "react";
|
| 2 |
|
| 3 |
interface Props { onNavigate: (page: any) => void; }
|
| 4 |
|
| 5 |
+
function GithubIcon() {
|
| 6 |
+
return (
|
| 7 |
+
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
|
| 8 |
+
<path fillRule="evenodd" clipRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" />
|
| 9 |
+
</svg>
|
| 10 |
+
);
|
| 11 |
+
}
|
| 12 |
|
| 13 |
+
function TwitterIcon() {
|
| 14 |
+
return (
|
| 15 |
+
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
|
| 16 |
+
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
|
| 17 |
+
</svg>
|
| 18 |
+
);
|
| 19 |
+
}
|
| 20 |
|
| 21 |
+
const FEATURES = [
|
| 22 |
+
{ icon: "🔬", title: "Code Analysis", desc: "Paste any source code. Get AST-based complexity scoring, behavior extraction, and coverage gap detection in seconds." },
|
| 23 |
+
{ icon: "🧬", title: "Mutation Testing", desc: "Real mutation execution — mutates your code, runs tests, identifies which bugs would escape to production." },
|
| 24 |
+
{ icon: "📊", title: "Behavior Coverage", desc: "Semantic AST-based mapping of which behaviors ARE tested vs untested. Not keyword matching — real analysis." },
|
| 25 |
+
{ icon: "🔄", title: "Iterative Refinement", desc: "MuTAP-inspired loop: generate → validate → identify weaknesses → re-generate stronger tests until Grade A." },
|
| 26 |
+
{ icon: "🔐", title: "Security Scanner", desc: "OWASP Top 10 analysis: IDOR, injection, mass assignment, missing auth, path traversal — with test suggestions." },
|
| 27 |
+
{ icon: "⚡", title: "Multi-Agent Pipeline", desc: "5 specialized AI agents collaborate: Analyzer, Generator, Validator, Refiner, Coverage Mapper." },
|
| 28 |
+
];
|
| 29 |
|
| 30 |
+
export function LandingPage({ onNavigate }: Props) {
|
| 31 |
+
const [isDark, setIsDark] = useState(true);
|
| 32 |
+
const toggle = () => setIsDark(!isDark);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
return (
|
| 35 |
+
<div className={`relative flex min-h-screen w-full flex-col antialiased overflow-x-hidden transition-colors duration-300 ${isDark ? 'bg-slate-950 text-slate-100' : 'bg-white text-slate-900'}`}>
|
| 36 |
+
|
| 37 |
+
{/* Nav */}
|
| 38 |
+
<header className={`sticky top-0 z-50 w-full backdrop-blur-xl transition-all duration-300 border-b ${isDark ? 'bg-slate-900/90 border-slate-800' : 'bg-white/80 border-slate-200'}`}>
|
| 39 |
+
<div className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
|
| 40 |
+
<div className="flex items-center gap-2">
|
| 41 |
+
<div className={`w-8 h-8 flex items-center justify-center rounded-lg text-lg font-black ${isDark ? 'bg-emerald-950 text-emerald-400' : 'bg-emerald-50 text-emerald-600'}`}>🧪</div>
|
| 42 |
+
<h2 className={`text-lg font-bold tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>TestGenius AI</h2>
|
| 43 |
+
</div>
|
| 44 |
+
<nav className="hidden md:flex items-center gap-8">
|
| 45 |
+
{["Features", "Pipeline", "Research", "Docs"].map((item) => (
|
| 46 |
+
<a key={item} href={`#${item.toLowerCase()}`} className={`text-sm font-medium transition-colors ${isDark ? 'text-slate-400 hover:text-emerald-400' : 'text-slate-500 hover:text-emerald-600'}`}>{item}</a>
|
| 47 |
+
))}
|
| 48 |
+
</nav>
|
| 49 |
+
<div className="flex items-center gap-3">
|
| 50 |
+
<button onClick={toggle} className={`flex h-9 w-9 items-center justify-center rounded-full border transition-all ${isDark ? 'border-slate-700 bg-slate-800 text-slate-300 hover:border-slate-600' : 'border-slate-200 bg-white text-slate-600 hover:border-slate-300'}`}>
|
| 51 |
+
{isDark ? '☀️' : '🌙'}
|
| 52 |
+
</button>
|
| 53 |
+
<button onClick={() => onNavigate('generate')} className={`flex items-center justify-center rounded-full h-9 px-5 text-sm font-medium transition-all hover:shadow-lg ${isDark ? 'bg-white hover:bg-slate-100 text-slate-900' : 'bg-slate-900 hover:bg-slate-800 text-white'}`}>
|
| 54 |
+
Start Building →
|
| 55 |
+
</button>
|
| 56 |
</div>
|
| 57 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
</header>
|
| 59 |
|
| 60 |
+
<main className="flex-1 flex flex-col">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
+
{/* Hero */}
|
| 63 |
+
<section className="relative pt-20 pb-32 lg:pt-32 lg:pb-40 overflow-hidden">
|
| 64 |
+
<div className={`absolute inset-0 z-0 ${isDark ? 'bg-slate-950' : 'bg-white'}`}>
|
| 65 |
+
<div className={`absolute inset-0 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:20px_20px] ${isDark ? 'opacity-[0.03]' : 'opacity-[0.4]'}`} />
|
| 66 |
+
</div>
|
| 67 |
+
<div className="max-w-7xl mx-auto px-6 grid lg:grid-cols-2 gap-16 items-center relative z-10">
|
| 68 |
+
<div className="flex flex-col gap-8 max-w-2xl">
|
| 69 |
+
<div className={`inline-flex items-center gap-2 px-3 py-1.5 rounded-full w-fit shadow-sm border ${isDark ? 'bg-emerald-950 border-emerald-900' : 'bg-emerald-50 border-emerald-100'}`}>
|
| 70 |
+
<span className="flex h-2 w-2 rounded-full bg-emerald-500 relative"><span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-500 opacity-75" /></span>
|
| 71 |
+
<span className={`text-xs font-semibold uppercase tracking-wide ${isDark ? 'text-emerald-400' : 'text-emerald-600'}`}>v2.0 — Multi-Agent Pipeline</span>
|
| 72 |
+
</div>
|
| 73 |
+
<h1 className={`text-5xl lg:text-[4rem] font-extrabold leading-[1.1] tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>
|
| 74 |
+
AI-Powered Test<br /><span className={isDark ? 'text-emerald-400' : 'text-emerald-600'}>Generation Agent</span>
|
| 75 |
+
</h1>
|
| 76 |
+
<p className={`text-lg leading-relaxed max-w-lg ${isDark ? 'text-slate-400' : 'text-slate-600'}`}>
|
| 77 |
+
5 AI agents analyze your code, generate comprehensive tests, validate quality, and iteratively refine using mutation testing feedback — achieving Grade A quality automatically.
|
| 78 |
+
</p>
|
| 79 |
+
<div className="flex flex-wrap gap-4 pt-2">
|
| 80 |
+
<button onClick={() => onNavigate('generate')} className="flex items-center justify-center rounded-full h-12 px-8 bg-emerald-600 hover:bg-emerald-700 text-white text-base font-semibold shadow-lg shadow-emerald-600/30 transition-all hover:-translate-y-0.5">
|
| 81 |
+
Start Generating Tests →
|
| 82 |
+
</button>
|
| 83 |
+
<button onClick={() => onNavigate('analyze')} className={`flex items-center justify-center rounded-full h-12 px-8 border text-base font-semibold transition-all ${isDark ? 'bg-slate-800 border-slate-700 hover:border-slate-600 text-slate-200' : 'bg-white border-slate-200 hover:border-slate-300 text-slate-700'}`}>
|
| 84 |
+
Analyze Code First
|
| 85 |
+
</button>
|
| 86 |
+
</div>
|
| 87 |
+
<div className={`flex items-center gap-6 pt-4 text-sm font-mono ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>
|
| 88 |
+
<div className="flex items-center gap-2"><span className="text-green-500">✓</span><span>Real Mutation Execution</span></div>
|
| 89 |
+
<div className="flex items-center gap-2"><span className="text-green-500">✓</span><span>Any LLM Provider</span></div>
|
| 90 |
+
</div>
|
| 91 |
</div>
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
+
{/* Mock UI card */}
|
| 94 |
+
<div className="relative w-full group hidden lg:block">
|
| 95 |
+
<div className="absolute -inset-4 bg-gradient-to-r from-emerald-500 to-cyan-600 rounded-xl blur-2xl opacity-15 group-hover:opacity-25 transition duration-1000" />
|
| 96 |
+
<div className={`relative rounded-xl shadow-2xl border overflow-hidden ${isDark ? 'bg-slate-900 border-slate-700/60' : 'bg-white border-slate-200/60'}`}>
|
| 97 |
+
<div className={`h-10 border-b flex items-center px-4 justify-between ${isDark ? 'border-slate-800 bg-slate-800/50' : 'border-slate-100 bg-slate-50/50'}`}>
|
| 98 |
+
<div className="flex gap-1.5"><div className="w-3 h-3 rounded-full bg-red-400" /><div className="w-3 h-3 rounded-full bg-yellow-400" /><div className="w-3 h-3 rounded-full bg-green-400" /></div>
|
| 99 |
+
<div className={`text-[10px] font-mono px-2 py-0.5 rounded border ${isDark ? 'text-slate-500 bg-slate-800 border-slate-700' : 'text-slate-400 bg-white border-slate-100'}`}>multi-agent-pipeline / output</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div className={`p-6 min-h-[340px] relative ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
|
| 102 |
+
<div className="flex gap-6">
|
| 103 |
+
<div className="flex-1 space-y-3">
|
| 104 |
+
<div className={`h-3 rounded w-3/4 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
|
| 105 |
+
<div className={`h-3 rounded w-1/2 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
|
| 106 |
+
<div className={`h-3 rounded w-5/6 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
|
| 107 |
+
<div className={`h-3 rounded w-full mt-4 ${isDark ? 'bg-emerald-900/40' : 'bg-emerald-100'}`} />
|
| 108 |
+
<div className={`h-3 rounded w-11/12 ${isDark ? 'bg-emerald-900/20' : 'bg-emerald-50'}`} />
|
| 109 |
+
</div>
|
| 110 |
+
<div className="w-48 bg-slate-900 rounded-lg p-4 shadow-xl text-white transform translate-y-4 border border-slate-700 shrink-0">
|
| 111 |
+
<div className="flex items-center gap-2 mb-2"><span className="w-2 h-2 rounded-full bg-emerald-400 animate-pulse" /><span className="text-[10px] font-mono text-slate-400 uppercase">Quality Score</span></div>
|
| 112 |
+
<div className="text-3xl font-black mb-1">A</div>
|
| 113 |
+
<div className="text-xs text-slate-400">85/100 • 18 tests</div>
|
| 114 |
+
<div className="mt-3 h-1.5 w-full bg-slate-800 rounded-full overflow-hidden"><div className="h-full bg-gradient-to-r from-emerald-500 to-cyan-500 w-[85%]" /></div>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
<div className={`absolute bottom-6 left-6 right-6 p-3 rounded border flex items-start gap-3 ${isDark ? 'bg-emerald-950 border-emerald-900' : 'bg-emerald-50 border-emerald-100'}`}>
|
| 118 |
+
<span className={`text-sm mt-0.5 ${isDark ? 'text-emerald-400' : 'text-emerald-600'}`}>🧬</span>
|
| 119 |
+
<div>
|
| 120 |
+
<div className={`text-xs font-semibold ${isDark ? 'text-white' : 'text-slate-900'}`}>Mutation Result</div>
|
| 121 |
+
<div className={`text-[10px] mt-1 ${isDark ? 'text-slate-400' : 'text-slate-600'}`}>3 mutants survived — adding edge case tests to kill them.</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
</div>
|
| 128 |
+
</section>
|
| 129 |
+
|
| 130 |
+
{/* Features Grid */}
|
| 131 |
+
<section id="features" className={`py-24 relative overflow-hidden transition-colors duration-300 ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
|
| 132 |
+
<div className={`absolute inset-0 bg-[radial-gradient(#334155_1px,transparent_1px)] [background-size:16px_16px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_70%,transparent_100%)] ${isDark ? 'opacity-20' : 'opacity-10'}`} />
|
| 133 |
+
<div className="max-w-7xl mx-auto px-6 relative z-10">
|
| 134 |
+
<div className="text-center max-w-3xl mx-auto mb-20">
|
| 135 |
+
<h2 className={`text-3xl font-bold mb-4 tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>Designed for QA velocity</h2>
|
| 136 |
+
<p className={`text-lg ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>Research-backed tools that generate tests smarter than manual effort.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
</div>
|
| 138 |
+
<div className={`grid md:grid-cols-3 gap-0 border-t border-l ${isDark ? 'border-slate-700' : 'border-slate-200'}`}>
|
| 139 |
+
{FEATURES.map(({ icon, title, desc }) => (
|
| 140 |
+
<div key={title} className={`p-10 border-r border-b transition-colors group ${isDark ? 'border-slate-700 bg-slate-900 hover:bg-slate-800' : 'border-slate-200 bg-white hover:bg-slate-50'}`}>
|
| 141 |
+
<div className={`w-10 h-10 mb-6 flex items-center justify-center rounded-lg text-lg transition-colors ${isDark ? 'bg-slate-800 group-hover:bg-emerald-600 group-hover:text-white' : 'bg-slate-100 group-hover:bg-slate-900 group-hover:text-white'}`}>{icon}</div>
|
| 142 |
+
<h3 className={`text-lg font-semibold mb-3 ${isDark ? 'text-white' : 'text-slate-900'}`}>{title}</h3>
|
| 143 |
+
<p className={`text-sm leading-relaxed ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>{desc}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
</div>
|
| 145 |
+
))}
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</section>
|
| 149 |
+
|
| 150 |
+
{/* Code Demo */}
|
| 151 |
+
<section id="pipeline" className={`py-24 border-y transition-colors duration-300 ${isDark ? 'bg-slate-950 border-slate-800' : 'bg-slate-50 border-slate-200'}`}>
|
| 152 |
+
<div className="max-w-6xl mx-auto px-6">
|
| 153 |
+
<div className="mb-12 md:text-center">
|
| 154 |
+
<h2 className={`text-3xl font-bold ${isDark ? 'text-white' : 'text-slate-900'}`}>See the 5-agent pipeline in action</h2>
|
| 155 |
+
<p className={`mt-2 text-lg ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>From raw code to production-ready tests in one API call.</p>
|
| 156 |
+
</div>
|
| 157 |
+
<div className="max-w-4xl mx-auto rounded-xl overflow-hidden shadow-2xl border border-slate-700">
|
| 158 |
+
<div className="h-10 bg-[#1e1e1e] border-b border-[#333] flex items-center px-4 gap-2">
|
| 159 |
+
<div className="w-3 h-3 rounded-full bg-[#ff5f56]" /><div className="w-3 h-3 rounded-full bg-[#ffbd2e]" /><div className="w-3 h-3 rounded-full bg-[#27c93f]" />
|
| 160 |
+
<span className="ml-4 text-xs text-slate-400 font-mono">🧪 testgenius / demo</span>
|
| 161 |
</div>
|
| 162 |
+
<div className="grid md:grid-cols-2">
|
| 163 |
+
<div className="bg-[#1e1e1e] p-6 border-r border-[#333]">
|
| 164 |
+
<div className="text-[10px] font-mono text-slate-500 uppercase mb-3">Input: Source Code</div>
|
| 165 |
+
<pre className="text-sm leading-6 font-mono">
|
| 166 |
+
<span className="text-[#569cd6]">def </span><span className="text-[#dcdcaa]">calculate_discount</span>(price, type):{"\n"}{" "}<span className="text-[#c586c0]">if</span> price {"<="} <span className="text-[#b5cea8]">0</span>:{"\n"}{" "}<span className="text-[#c586c0]">raise</span> <span className="text-[#4ec9b0]">ValueError</span>(<span className="text-[#ce9178]">"positive"</span>){"\n"}{" "}<span className="text-[#c586c0]">if</span> type == <span className="text-[#ce9178]">"premium"</span>:{"\n"}{" "}<span className="text-[#c586c0]">return</span> price * <span className="text-[#b5cea8]">0.2</span>{"\n"}{" "}<span className="text-[#c586c0]">return</span> <span className="text-[#b5cea8]">0</span>
|
| 167 |
+
</pre>
|
| 168 |
+
</div>
|
| 169 |
+
<div className="bg-[#252526] p-6 relative">
|
| 170 |
+
<div className="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-emerald-500 to-cyan-500" />
|
| 171 |
+
<div className="flex items-center gap-2 mb-4"><span className="text-emerald-400 text-sm">🤖</span><span className="text-xs font-bold uppercase tracking-wider text-[#ccc]">Generated (Grade A)</span></div>
|
| 172 |
+
<div className="space-y-3">
|
| 173 |
+
<div className="bg-[#333] p-3 rounded border-l-2 border-emerald-500"><p className="text-xs text-[#999] mb-1">✅ 18 tests generated</p><p className="text-sm text-[#ddd]">Happy path, edge cases, boundary, errors</p></div>
|
| 174 |
+
<div className="bg-[#333] p-3 rounded border-l-2 border-purple-500"><p className="text-xs text-[#999] mb-1">🧬 Mutation Score: 87%</p><p className="text-sm text-[#ddd]">13/15 mutants killed</p></div>
|
| 175 |
+
<div className="bg-[#333] p-3 rounded border-l-2 border-cyan-500"><p className="text-xs text-[#999] mb-1">📊 Coverage: 92%</p><p className="text-sm text-[#ddd]">22/24 behaviors tested</p></div>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
</div>
|
| 181 |
+
</section>
|
|
|
|
| 182 |
|
| 183 |
+
{/* Stats */}
|
| 184 |
+
<section className={`py-20 transition-colors duration-300 ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
|
| 185 |
+
<div className="max-w-7xl mx-auto px-6">
|
| 186 |
+
<div className="grid md:grid-cols-4 gap-12 text-center">
|
| 187 |
+
{[{ stat: "85%+", label: "Quality Score" }, { stat: "5", label: "AI Agents" }, { stat: "<4s", label: "Generation Time" }, { stat: "87%", label: "Mutation Kill Rate" }].map(({ stat, label }, i) => (
|
| 188 |
+
<div key={label} className={`flex flex-col gap-1 items-center ${i < 3 ? `md:border-r ${isDark ? 'border-slate-800' : 'border-slate-100'}` : ''}`}>
|
| 189 |
+
<p className={`text-5xl font-extrabold tracking-tight text-transparent bg-clip-text bg-gradient-to-b ${isDark ? 'from-white to-slate-400' : 'from-slate-900 to-slate-600'}`}>{stat}</p>
|
| 190 |
+
<p className={`font-medium mt-2 ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>{label}</p>
|
| 191 |
+
</div>
|
| 192 |
+
))}
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
</section>
|
| 196 |
+
|
| 197 |
+
{/* CTA */}
|
| 198 |
+
<section className="bg-slate-900 py-24 relative overflow-hidden">
|
| 199 |
+
<div className="absolute top-0 right-0 w-[500px] h-[500px] bg-emerald-500/20 rounded-full blur-[100px] pointer-events-none" />
|
| 200 |
+
<div className="absolute bottom-0 left-0 w-[400px] h-[400px] bg-cyan-600/15 rounded-full blur-[80px] pointer-events-none" />
|
| 201 |
+
<div className="max-w-3xl mx-auto px-6 text-center relative z-10">
|
| 202 |
+
<h2 className="text-3xl md:text-4xl font-bold text-white mb-6 tracking-tight">Ready to generate better tests?</h2>
|
| 203 |
+
<p className="text-slate-400 mb-10 text-lg">Join QA teams who transformed their testing with AI-powered iterative generation.</p>
|
| 204 |
+
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
| 205 |
+
<button onClick={() => onNavigate('generate')} className="w-full sm:w-auto flex items-center justify-center rounded-full h-12 px-8 bg-white hover:bg-slate-100 text-slate-900 text-base font-bold shadow-lg transition-all">Get Started Free</button>
|
| 206 |
+
<button onClick={() => onNavigate('settings')} className="w-full sm:w-auto flex items-center justify-center rounded-full h-12 px-8 bg-slate-800 border border-slate-700 hover:border-slate-600 text-white text-base font-bold transition-all">Configure LLM</button>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</section>
|
| 210 |
+
</main>
|
| 211 |
|
| 212 |
{/* Footer */}
|
| 213 |
+
<footer className={`pt-16 pb-12 border-t transition-colors duration-300 ${isDark ? 'bg-slate-900 border-slate-800' : 'bg-white border-slate-100'}`}>
|
| 214 |
+
<div className="max-w-7xl mx-auto px-6">
|
| 215 |
+
<div className="grid grid-cols-2 md:grid-cols-5 gap-8 mb-16">
|
| 216 |
+
<div className="col-span-2">
|
| 217 |
+
<div className={`flex items-center gap-2 mb-6 ${isDark ? 'text-white' : 'text-slate-900'}`}><span className="text-xl">🧪</span><span className="font-bold text-base tracking-tight">TestGenius AI</span></div>
|
| 218 |
+
<p className={`text-sm max-w-xs ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>AI-powered test case generation for QA teams. Multi-agent iterative refinement inspired by MuTAP research.</p>
|
| 219 |
+
</div>
|
| 220 |
+
{[{ heading: "Product", links: ["Multi-Agent Pipeline", "Code Analysis", "Mutation Testing", "Security Scanner"] }, { heading: "Resources", links: ["API Docs", "Research Papers", "LLM Providers", "Changelog"] }, { heading: "Company", links: ["About", "GitHub", "MIT License", "Contact"] }].map(({ heading, links }) => (
|
| 221 |
+
<div key={heading} className="flex flex-col gap-4">
|
| 222 |
+
<h4 className={`font-semibold text-sm ${isDark ? 'text-white' : 'text-slate-900'}`}>{heading}</h4>
|
| 223 |
+
{links.map((l) => (<a key={l} href="#" className={`text-sm transition-colors ${isDark ? 'text-slate-400 hover:text-white' : 'text-slate-500 hover:text-slate-900'}`}>{l}</a>))}
|
| 224 |
+
</div>
|
| 225 |
+
))}
|
| 226 |
+
</div>
|
| 227 |
+
<div className={`flex flex-col md:flex-row justify-between items-center gap-6 pt-8 border-t ${isDark ? 'border-slate-800' : 'border-slate-100'}`}>
|
| 228 |
+
<div className={`text-sm ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>© {new Date().getFullYear()} TestGenius AI</div>
|
| 229 |
+
<div className="flex gap-6">
|
| 230 |
+
<a href="https://github.com/MUTHUKUMARAN-K-1" target="_blank" rel="noopener noreferrer" className={`transition-colors ${isDark ? 'text-slate-500 hover:text-white' : 'text-slate-400 hover:text-slate-900'}`}><GithubIcon /></a>
|
| 231 |
+
<a href="#" className={`transition-colors ${isDark ? 'text-slate-500 hover:text-white' : 'text-slate-400 hover:text-slate-900'}`}><TwitterIcon /></a>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
</div>
|
| 235 |
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
</div>
|
| 237 |
);
|
| 238 |
}
|
frontend/tailwind.config.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
| 1 |
/** @type {import('tailwindcss').Config} */
|
| 2 |
export default {
|
| 3 |
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
|
|
|
| 4 |
theme: {
|
| 5 |
extend: {
|
|
|
|
|
|
|
|
|
|
| 6 |
fontFamily: {
|
| 7 |
-
sans: ['-apple-system', 'BlinkMacSystemFont', '
|
| 8 |
mono: ['JetBrains Mono', 'Fira Code', 'Menlo', 'Monaco', 'monospace'],
|
| 9 |
},
|
| 10 |
animation: {
|
| 11 |
-
'fade-in': 'fadeIn 0.
|
| 12 |
'shimmer': 'shimmer 2s infinite',
|
| 13 |
},
|
| 14 |
},
|
|
|
|
| 1 |
/** @type {import('tailwindcss').Config} */
|
| 2 |
export default {
|
| 3 |
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
| 4 |
+
darkMode: 'class',
|
| 5 |
theme: {
|
| 6 |
extend: {
|
| 7 |
+
colors: {
|
| 8 |
+
primary: { DEFAULT: '#10b981', dark: '#059669' },
|
| 9 |
+
},
|
| 10 |
fontFamily: {
|
| 11 |
+
sans: ['-apple-system', 'BlinkMacSystemFont', 'Inter', 'Segoe UI', 'Roboto', 'sans-serif'],
|
| 12 |
mono: ['JetBrains Mono', 'Fira Code', 'Menlo', 'Monaco', 'monospace'],
|
| 13 |
},
|
| 14 |
animation: {
|
| 15 |
+
'fade-in': 'fadeIn 0.4s ease-out',
|
| 16 |
'shimmer': 'shimmer 2s infinite',
|
| 17 |
},
|
| 18 |
},
|