🎨 Landing Page β€” CODE-NARRATIVE-AI exact style (Stripe-inspired, light/dark)

#5
by muthuk2 - opened
frontend/src/index.css CHANGED
@@ -2,13 +2,69 @@
2
  @tailwind components;
3
  @tailwind utilities;
4
 
 
 
 
 
5
  body {
6
- background: #0a0a0f;
7
- color: #e4e4e7;
 
 
 
 
 
8
  }
9
 
10
  ::-webkit-scrollbar { width: 6px; height: 6px; }
11
  ::-webkit-scrollbar-track { background: transparent; }
12
- ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
- select option { background: #1a1a2e; color: #e4e4e7; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  @tailwind components;
3
  @tailwind utilities;
4
 
5
+ * { margin: 0; padding: 0; box-sizing: border-box; }
6
+
7
+ html { scroll-behavior: smooth; }
8
+
9
  body {
10
+ font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ ::selection {
16
+ background: rgba(16, 185, 129, 0.15);
17
  }
18
 
19
  ::-webkit-scrollbar { width: 6px; height: 6px; }
20
  ::-webkit-scrollbar-track { background: transparent; }
21
+ ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
22
+ ::-webkit-scrollbar-thumb:hover { background: #475569; }
23
+
24
+ /* CODE-NARRATIVE style: glass nav */
25
+ .glass-nav {
26
+ background: rgba(255, 255, 255, 0.8);
27
+ backdrop-filter: blur(12px);
28
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
29
+ }
30
+
31
+ /* Stripe-style shadow for cards */
32
+ .shadow-stripe {
33
+ box-shadow:
34
+ 0 0 0 1px rgba(0, 0, 0, 0.03),
35
+ 0 2px 4px rgba(0, 0, 0, 0.05),
36
+ 0 12px 24px rgba(0, 0, 0, 0.05);
37
+ }
38
+
39
+ /* Grid pattern background */
40
+ .linear-grid {
41
+ background-image:
42
+ linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
43
+ linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
44
+ background-size: 60px 60px;
45
+ }
46
 
47
+ /* Animated cursor */
48
+ .cursor::after {
49
+ content: '|';
50
+ animation: blink 1s infinite;
51
+ }
52
+
53
+ @keyframes blink {
54
+ 0%, 50% { opacity: 1; }
55
+ 51%, 100% { opacity: 0; }
56
+ }
57
+
58
+ @keyframes fadeIn {
59
+ from { opacity: 0; transform: translateY(8px); }
60
+ to { opacity: 1; transform: translateY(0); }
61
+ }
62
+
63
+ .animate-fade-in {
64
+ animation: fadeIn 0.4s ease-out;
65
+ }
66
+
67
+ /* Dark mode base (since we toggle via class) */
68
+ .dark {
69
+ color-scheme: dark;
70
+ }
frontend/src/pages/LandingPage.tsx CHANGED
@@ -1,192 +1,355 @@
1
- import React, { useEffect, useRef } from 'react';
2
 
3
  interface Props { onNavigate: (page: any) => void; }
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  export function LandingPage({ onNavigate }: Props) {
6
- const canvasRef = useRef<HTMLCanvasElement>(null);
7
-
8
- // Animated particle background
9
- useEffect(() => {
10
- const canvas = canvasRef.current;
11
- if (!canvas) return;
12
- const ctx = canvas.getContext('2d')!;
13
- canvas.width = window.innerWidth;
14
- canvas.height = window.innerHeight;
15
-
16
- const particles: { x: number; y: number; vx: number; vy: number; r: number; a: number }[] = [];
17
- for (let i = 0; i < 60; i++) {
18
- particles.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, vx: (Math.random() - 0.5) * 0.3, vy: (Math.random() - 0.5) * 0.3, r: Math.random() * 1.5 + 0.5, a: Math.random() * 0.4 + 0.1 });
19
- }
20
-
21
- let animId: number;
22
- const draw = () => {
23
- ctx.clearRect(0, 0, canvas.width, canvas.height);
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
- // Connect nearby particles
32
- for (let i = 0; i < particles.length; i++) {
33
- for (let j = i + 1; j < particles.length; j++) {
34
- const dx = particles[i].x - particles[j].x;
35
- const dy = particles[i].y - particles[j].y;
36
- const dist = Math.sqrt(dx * dx + dy * dy);
37
- if (dist < 150) {
38
- ctx.beginPath(); ctx.moveTo(particles[i].x, particles[i].y);
39
- ctx.lineTo(particles[j].x, particles[j].y);
40
- ctx.strokeStyle = `rgba(16, 185, 129, ${0.08 * (1 - dist / 150)})`;
41
- ctx.stroke();
42
- }
43
- }
44
- }
45
- animId = requestAnimationFrame(draw);
46
- };
47
- draw();
48
- return () => cancelAnimationFrame(animId);
49
- }, []);
50
 
51
  return (
52
- <div className="relative min-h-screen overflow-hidden">
53
- {/* Particle canvas */}
54
- <canvas ref={canvasRef} className="absolute inset-0 pointer-events-none" />
55
-
56
- {/* Gradient orbs */}
57
- <div className="absolute top-[20%] left-[10%] w-[500px] h-[500px] rounded-full bg-emerald-500/[0.04] blur-[120px] animate-pulse" />
58
- <div className="absolute bottom-[10%] right-[15%] w-[400px] h-[400px] rounded-full bg-cyan-500/[0.03] blur-[100px]" />
59
- <div className="absolute top-[60%] left-[50%] w-[300px] h-[300px] rounded-full bg-purple-500/[0.02] blur-[80px]" />
60
-
61
- {/* Header */}
62
- <header className="relative z-10 max-w-[1400px] mx-auto px-6 py-5 flex items-center justify-between">
63
- <div className="flex items-center gap-2.5">
64
- <div className="w-9 h-9 rounded-xl bg-gradient-to-br from-emerald-500 to-cyan-500 flex items-center justify-center text-sm font-bold shadow-lg shadow-emerald-500/30">T</div>
65
- <span className="font-bold text-lg tracking-tight">TestGenius<span className="text-emerald-400">.ai</span></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  </div>
67
- <button onClick={() => onNavigate('generate')} className="px-5 py-2 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">
68
- Launch App β†’
69
- </button>
70
  </header>
71
 
72
- {/* Hero */}
73
- <section className="relative z-10 max-w-[1400px] mx-auto px-6 pt-24 pb-16 text-center">
74
- {/* Badge */}
75
- <div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-emerald-500/10 to-cyan-500/10 border border-emerald-500/20 mb-8">
76
- <span className="w-2 h-2 bg-emerald-500 rounded-full animate-pulse" />
77
- <span className="text-emerald-300 text-[13px] font-medium">Multi-Agent AI β€’ Research-Grade β€’ Iterative Refinement</span>
78
- </div>
79
 
80
- <h1 className="text-[3.5rem] md:text-[4.5rem] lg:text-[5.5rem] font-bold leading-[1.05] tracking-tight mb-6">
81
- <span className="block text-white">Generate Tests That</span>
82
- <span className="block 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>
83
- </h1>
84
-
85
- <p className="text-lg md:text-xl text-gray-400 max-w-2xl mx-auto mb-10 leading-relaxed">
86
- 5 AI agents analyze your code, generate tests, validate quality, and
87
- <span className="text-emerald-300 font-medium"> iteratively refine until grade A</span> β€”
88
- using mutation testing feedback from MuTAP research.
89
- </p>
90
-
91
- <div className="flex flex-col sm:flex-row gap-4 justify-center items-center mb-16">
92
- <button onClick={() => onNavigate('generate')}
93
- className="group relative px-8 py-3.5 bg-gradient-to-r from-emerald-600 to-cyan-600 rounded-xl font-semibold text-[15px] transition-all hover:shadow-xl hover:shadow-emerald-500/25 hover:scale-[1.02]">
94
- <span className="relative z-10">⚑ Start Generating Tests</span>
95
- <div className="absolute inset-0 rounded-xl bg-gradient-to-r from-emerald-400 to-cyan-400 opacity-0 group-hover:opacity-20 transition-opacity blur-xl" />
96
- </button>
97
- <button onClick={() => onNavigate('analyze')}
98
- className="px-8 py-3.5 border border-white/[0.08] hover:border-emerald-500/30 rounded-xl font-medium text-[15px] text-gray-300 hover:text-white transition-all hover:bg-white/[0.02]">
99
- πŸ”¬ Analyze Code First
100
- </button>
101
- </div>
102
 
103
- {/* Stats */}
104
- <div className="grid grid-cols-2 md:grid-cols-5 gap-3 max-w-3xl mx-auto mb-20">
105
- {[
106
- { value: '5', label: 'AI Agents', color: 'emerald' },
107
- { value: '8', label: 'Novelties', color: 'cyan' },
108
- { value: 'A-D', label: 'Quality Grade', color: 'purple' },
109
- { value: '<4s', label: 'Per Run', color: 'amber' },
110
- { value: '∞', label: 'LLM Providers', color: 'rose' },
111
- ].map((s, i) => (
112
- <div key={i} className="relative group">
113
- <div className="absolute inset-0 rounded-xl bg-gradient-to-b from-white/[0.02] to-transparent opacity-0 group-hover:opacity-100 transition" />
114
- <div className="relative p-4 rounded-xl border border-white/[0.04] group-hover:border-white/[0.08] transition">
115
- <div className="text-xl font-bold text-white mb-0.5">{s.value}</div>
116
- <div className="text-[11px] text-gray-500 font-medium uppercase tracking-wider">{s.label}</div>
 
 
 
 
 
 
 
 
117
  </div>
118
  </div>
119
- ))}
120
- </div>
121
- </section>
122
-
123
- {/* Pipeline Visualization */}
124
- <section className="relative z-10 max-w-5xl mx-auto px-6 pb-20">
125
- <h2 className="text-2xl font-bold text-center mb-2">The 5-Agent Pipeline</h2>
126
- <p className="text-sm text-gray-500 text-center mb-10">Not single-shot. Iterative. Research-grade.</p>
127
-
128
- <div className="grid md:grid-cols-5 gap-3">
129
- {[
130
- { num: '1', title: 'Analyze', desc: 'AST complexity + behavior extraction', icon: 'πŸ”¬', color: 'from-blue-500/20 to-indigo-500/20', border: 'border-blue-500/20' },
131
- { num: '2', title: 'Generate', desc: 'Context-rich LLM test generation', icon: '⚑', color: 'from-emerald-500/20 to-green-500/20', border: 'border-emerald-500/20' },
132
- { num: '3', title: 'Validate', desc: 'Quality scoring on 5 dimensions', icon: 'βœ…', color: 'from-amber-500/20 to-yellow-500/20', border: 'border-amber-500/20' },
133
- { num: '4', title: 'Refine', desc: 'Mutation-guided improvement loop', icon: 'πŸ”„', color: 'from-purple-500/20 to-pink-500/20', border: 'border-purple-500/20' },
134
- { num: '5', title: 'Map', desc: 'Behavior coverage visualization', icon: 'πŸ“Š', color: 'from-cyan-500/20 to-teal-500/20', border: 'border-cyan-500/20' },
135
- ].map((step, i) => (
136
- <div key={i} className={`relative p-4 rounded-xl border ${step.border} bg-gradient-to-b ${step.color} backdrop-blur-sm transition-all hover:scale-[1.03] hover:shadow-lg`}>
137
- {i < 4 && <div className="hidden md:block absolute -right-2 top-1/2 -translate-y-1/2 text-gray-600 text-xs z-20">β†’</div>}
138
- <div className="text-2xl mb-2">{step.icon}</div>
139
- <div className="text-xs font-bold text-white/40 mb-1">AGENT {step.num}</div>
140
- <div className="text-sm font-semibold text-white mb-1">{step.title}</div>
141
- <div className="text-[11px] text-gray-400 leading-relaxed">{step.desc}</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  </div>
143
- ))}
144
- </div>
145
 
146
- {/* Iteration arrow */}
147
- <div className="flex justify-center mt-4">
148
- <div className="px-4 py-1.5 rounded-full bg-purple-500/10 border border-purple-500/20 text-purple-300 text-[11px] font-medium">
149
- πŸ”„ Agents 2-4 iterate until quality β‰₯ Grade B
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  </div>
151
- </div>
152
- </section>
153
-
154
- {/* Feature Grid */}
155
- <section className="relative z-10 max-w-5xl mx-auto px-6 pb-20">
156
- <h2 className="text-2xl font-bold text-center mb-10">8 Research-Backed Novelties</h2>
157
- <div className="grid md:grid-cols-4 gap-3">
158
- {[
159
- { icon: 'πŸ”„', title: 'Iterative Refinement', desc: 'MuTAP-style: generate β†’ validate β†’ improve', tag: 'ISSTA 2023' },
160
- { icon: 'πŸ“Š', title: 'Behavior Coverage', desc: 'Which behaviors ARE vs AREN\'T tested', tag: 'Qodo-style' },
161
- { icon: '🧬', title: 'Mutation Testing', desc: 'Find gaps where bugs would hide', tag: 'Research' },
162
- { icon: '🧠', title: 'Complexity Analysis', desc: 'AST cyclomatic β†’ test priority', tag: 'McCabe' },
163
- { icon: 'πŸ”', title: 'Gap Detection', desc: 'Untested error paths & branches', tag: 'Static' },
164
- { icon: 'πŸ“ˆ', title: 'Quality Scoring', desc: 'Grade A-D on 5 dimensions', tag: 'Novel' },
165
- { icon: 'πŸ”', title: 'Security Scanner', desc: 'OWASP injection & auth checks', tag: 'OWASP' },
166
- { icon: 'πŸ€–', title: 'Multi-Agent', desc: '5 specialized agents collaborate', tag: '2024' },
167
- ].map((f, i) => (
168
- <div key={i} className="group p-4 rounded-xl bg-white/[0.015] border border-white/[0.04] hover:border-emerald-500/20 hover:bg-emerald-500/[0.02] transition-all">
169
- <div className="flex items-start justify-between mb-2">
170
- <span className="text-xl">{f.icon}</span>
171
- <span className="text-[9px] px-1.5 py-0.5 rounded-full bg-white/[0.05] text-gray-500 font-medium">{f.tag}</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  </div>
173
- <h3 className="text-[13px] font-semibold text-white mb-1 group-hover:text-emerald-300 transition">{f.title}</h3>
174
- <p className="text-[11px] text-gray-500 leading-relaxed">{f.desc}</p>
175
  </div>
176
- ))}
177
- </div>
178
- </section>
179
 
180
- {/* Footer */}
181
- <footer className="relative z-10 border-t border-white/[0.03] py-8 text-center">
182
- <p className="text-xs text-gray-600">TestGenius AI β€” Research-grade test generation. Built for QA teams.</p>
183
- </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
- {/* CSS for gradient animation */}
186
- <style>{`
187
- @keyframes gradient-x { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
188
- .animate-gradient-x { background-size: 200% 200%; animation: gradient-x 3s ease infinite; }
189
- `}</style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  </div>
191
  );
192
  }
 
1
+ import { useState } from "react";
2
 
3
  interface Props { onNavigate: (page: any) => void; }
4
 
5
+ /* ── Icons ─── */
6
+ function GithubIcon() {
7
+ return (
8
+ <svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
9
+ <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" />
10
+ </svg>
11
+ );
12
+ }
13
+
14
+ function TwitterIcon() {
15
+ return (
16
+ <svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
17
+ <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" />
18
+ </svg>
19
+ );
20
+ }
21
+
22
+ /* ── Feature data ─── */
23
+ const FEATURES = [
24
+ { icon: "πŸ”¬", title: "Code Analysis", desc: "Paste any source code. Get AST-based complexity scoring, behavior extraction, and coverage gap detection in seconds." },
25
+ { icon: "🧬", title: "Mutation Testing", desc: "Real mutation execution β€” mutates your code, runs tests, identifies which bugs would escape to production." },
26
+ { icon: "πŸ“Š", title: "Behavior Coverage", desc: "Semantic AST-based mapping of which behaviors ARE tested vs untested. Not keyword matching β€” real analysis." },
27
+ { icon: "πŸ”„", title: "Iterative Refinement", desc: "MuTAP-inspired loop: generate β†’ validate β†’ identify weaknesses β†’ re-generate stronger tests until Grade A." },
28
+ { icon: "πŸ”", title: "Security Scanner", desc: "OWASP Top 10 analysis: IDOR, injection, mass assignment, missing auth, path traversal β€” with test suggestions." },
29
+ { icon: "⚑", title: "Multi-Agent Pipeline", desc: "5 specialized AI agents collaborate: Analyzer, Generator, Validator, Refiner, Coverage Mapper." },
30
+ ];
31
+
32
+ /* ── Landing ─── */
33
  export function LandingPage({ onNavigate }: Props) {
34
+ const [isDark, setIsDark] = useState(true);
35
+
36
+ const toggle = () => {
37
+ setIsDark(!isDark);
38
+ document.documentElement.classList.toggle('dark');
39
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  return (
42
+ <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'}`}>
43
+
44
+ {/* ── Nav ── */}
45
+ <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'}`}>
46
+ <div className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
47
+ <div className="flex items-center gap-2">
48
+ <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'}`}>
49
+ πŸ§ͺ
50
+ </div>
51
+ <h2 className={`text-lg font-bold tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>TestGenius AI</h2>
52
+ </div>
53
+
54
+ <nav className="hidden md:flex items-center gap-8">
55
+ {["Features", "Pipeline", "Research", "Docs"].map((item) => (
56
+ <a key={item} href={`#${item.toLowerCase()}`}
57
+ className={`text-sm font-medium transition-colors ${isDark ? 'text-slate-400 hover:text-emerald-400' : 'text-slate-500 hover:text-emerald-600'}`}>
58
+ {item}
59
+ </a>
60
+ ))}
61
+ </nav>
62
+
63
+ <div className="flex items-center gap-3">
64
+ <button onClick={toggle}
65
+ 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'}`}>
66
+ {isDark ? 'β˜€οΈ' : 'πŸŒ™'}
67
+ </button>
68
+ <button onClick={() => onNavigate('generate')}
69
+ 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'}`}>
70
+ Start Building β†’
71
+ </button>
72
+ </div>
73
  </div>
 
 
 
74
  </header>
75
 
76
+ <main className="flex-1 flex flex-col">
 
 
 
 
 
 
77
 
78
+ {/* ── Hero ── */}
79
+ <section className="relative pt-20 pb-32 lg:pt-32 lg:pb-40 overflow-hidden">
80
+ <div className={`absolute inset-0 z-0 ${isDark ? 'bg-slate-950' : 'bg-white'}`}>
81
+ <div className={`absolute inset-0 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:20px_20px] ${isDark ? 'opacity-[0.03]' : 'opacity-[0.4]'}`} />
82
+ </div>
83
+
84
+ <div className="max-w-7xl mx-auto px-6 grid lg:grid-cols-2 gap-16 items-center relative z-10">
85
+ {/* Left */}
86
+ <div className="flex flex-col gap-8 max-w-2xl">
87
+ <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'}`}>
88
+ <span className="flex h-2 w-2 rounded-full bg-emerald-500 relative">
89
+ <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-500 opacity-75" />
90
+ </span>
91
+ <span className={`text-xs font-semibold uppercase tracking-wide ${isDark ? 'text-emerald-400' : 'text-emerald-600'}`}>v2.0 β€” Multi-Agent Pipeline</span>
92
+ </div>
93
+
94
+ <h1 className={`text-5xl lg:text-[4rem] font-extrabold leading-[1.1] tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>
95
+ AI-Powered Test<br />
96
+ <span className={isDark ? 'text-emerald-400' : 'text-emerald-600'}>Generation Agent</span>
97
+ </h1>
 
 
98
 
99
+ <p className={`text-lg leading-relaxed max-w-lg ${isDark ? 'text-slate-400' : 'text-slate-600'}`}>
100
+ 5 AI agents analyze your code, generate comprehensive tests, validate quality, and iteratively refine using mutation testing feedback β€” achieving Grade A quality automatically.
101
+ </p>
102
+
103
+ <div className="flex flex-wrap gap-4 pt-2">
104
+ <button onClick={() => onNavigate('generate')}
105
+ 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">
106
+ Start Generating Tests β†’
107
+ </button>
108
+ <button onClick={() => onNavigate('analyze')}
109
+ 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'}`}>
110
+ Analyze Code First
111
+ </button>
112
+ </div>
113
+
114
+ <div className={`flex items-center gap-6 pt-4 text-sm font-mono ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>
115
+ <div className="flex items-center gap-2">
116
+ <span className="text-green-500">βœ“</span> <span>Real Mutation Execution</span>
117
+ </div>
118
+ <div className="flex items-center gap-2">
119
+ <span className="text-green-500">βœ“</span> <span>Any LLM Provider</span>
120
+ </div>
121
  </div>
122
  </div>
123
+
124
+ {/* Right: Mock UI */}
125
+ <div className="relative w-full group hidden lg:block">
126
+ <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" />
127
+ <div className={`relative rounded-xl shadow-2xl border overflow-hidden ${isDark ? 'bg-slate-900 border-slate-700/60' : 'bg-white border-slate-200/60'}`}>
128
+ {/* Title bar */}
129
+ <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'}`}>
130
+ <div className="flex gap-1.5">
131
+ <div className="w-3 h-3 rounded-full bg-red-400" />
132
+ <div className="w-3 h-3 rounded-full bg-yellow-400" />
133
+ <div className="w-3 h-3 rounded-full bg-green-400" />
134
+ </div>
135
+ <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'}`}>
136
+ multi-agent-pipeline / output
137
+ </div>
138
+ </div>
139
+
140
+ {/* Content */}
141
+ <div className={`p-6 min-h-[340px] relative ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
142
+ <div className="flex gap-6">
143
+ {/* Left: quality metrics */}
144
+ <div className="flex-1 space-y-3">
145
+ <div className={`h-3 rounded w-3/4 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
146
+ <div className={`h-3 rounded w-1/2 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
147
+ <div className={`h-3 rounded w-5/6 ${isDark ? 'bg-slate-800' : 'bg-slate-100'}`} />
148
+ <div className={`h-3 rounded w-full mt-4 ${isDark ? 'bg-emerald-900/40' : 'bg-emerald-100'}`} />
149
+ <div className={`h-3 rounded w-11/12 ${isDark ? 'bg-emerald-900/20' : 'bg-emerald-50'}`} />
150
+ <div className={`h-3 rounded w-4/5 ${isDark ? 'bg-emerald-900/20' : 'bg-emerald-50'}`} />
151
+ </div>
152
+
153
+ {/* Right: live card */}
154
+ <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">
155
+ <div className="flex items-center gap-2 mb-2">
156
+ <span className="w-2 h-2 rounded-full bg-emerald-400 animate-pulse" />
157
+ <span className="text-[10px] font-mono text-slate-400 uppercase">Quality Score</span>
158
+ </div>
159
+ <div className="text-3xl font-black mb-1">A</div>
160
+ <div className="text-xs text-slate-400">85/100 β€’ 18 tests generated</div>
161
+ <div className="mt-3 h-1.5 w-full bg-slate-800 rounded-full overflow-hidden">
162
+ <div className="h-full bg-gradient-to-r from-emerald-500 to-cyan-500 w-[85%]" />
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ {/* Bottom suggestion */}
168
+ <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'}`}>
169
+ <span className={`text-sm mt-0.5 ${isDark ? 'text-emerald-400' : 'text-emerald-600'}`}>🧬</span>
170
+ <div>
171
+ <div className={`text-xs font-semibold ${isDark ? 'text-white' : 'text-slate-900'}`}>Mutation Result</div>
172
+ <div className={`text-[10px] mt-1 ${isDark ? 'text-slate-400' : 'text-slate-600'}`}>
173
+ 3 mutants survived β€” adding edge case tests for boundary values to kill them.
174
+ </div>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </div>
179
  </div>
180
+ </div>
181
+ </section>
182
 
183
+ {/* ── Features Grid (bordered) ── */}
184
+ <section id="features" className={`py-24 relative overflow-hidden transition-colors duration-300 ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
185
+ <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'}`} />
186
+ <div className="max-w-7xl mx-auto px-6 relative z-10">
187
+ <div className="text-center max-w-3xl mx-auto mb-20">
188
+ <h2 className={`text-3xl font-bold mb-4 tracking-tight ${isDark ? 'text-white' : 'text-slate-900'}`}>Designed for QA velocity</h2>
189
+ <p className={`text-lg ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>Research-backed tools that generate tests smarter than manual effort.</p>
190
+ </div>
191
+ <div className={`grid md:grid-cols-3 gap-0 border-t border-l ${isDark ? 'border-slate-700' : 'border-slate-200'}`}>
192
+ {FEATURES.map(({ icon, title, desc }) => (
193
+ <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'}`}>
194
+ <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'}`}>
195
+ {icon}
196
+ </div>
197
+ <h3 className={`text-lg font-semibold mb-3 ${isDark ? 'text-white' : 'text-slate-900'}`}>{title}</h3>
198
+ <p className={`text-sm leading-relaxed ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>{desc}</p>
199
+ </div>
200
+ ))}
201
+ </div>
202
  </div>
203
+ </section>
204
+
205
+ {/* ── Pipeline Demo ── */}
206
+ <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'}`}>
207
+ <div className="max-w-6xl mx-auto px-6">
208
+ <div className="mb-12 md:text-center">
209
+ <h2 className={`text-3xl font-bold ${isDark ? 'text-white' : 'text-slate-900'}`}>See the 5-agent pipeline in action</h2>
210
+ <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>
211
+ </div>
212
+
213
+ {/* Code window */}
214
+ <div className="max-w-4xl mx-auto rounded-xl overflow-hidden shadow-2xl border border-slate-700">
215
+ <div className="h-10 bg-[#1e1e1e] border-b border-[#333] flex items-center px-4 gap-2">
216
+ <div className="w-3 h-3 rounded-full bg-[#ff5f56]" />
217
+ <div className="w-3 h-3 rounded-full bg-[#ffbd2e]" />
218
+ <div className="w-3 h-3 rounded-full bg-[#27c93f]" />
219
+ <span className="ml-4 text-xs text-slate-400 font-mono">πŸ§ͺ testgenius-pipeline / demo</span>
220
+ </div>
221
+
222
+ <div className="grid md:grid-cols-2">
223
+ {/* Input */}
224
+ <div className="bg-[#1e1e1e] p-6 border-r border-[#333]">
225
+ <div className="text-[10px] font-mono text-slate-500 uppercase mb-3">Input: Source Code</div>
226
+ <pre className="text-sm leading-6 font-mono">
227
+ <span className="text-[#569cd6]">def </span>
228
+ <span className="text-[#dcdcaa]">calculate_discount</span>(price, user_type):
229
+ {"\n"}{" "}<span className="text-[#c586c0]">if</span> price {"<="} <span className="text-[#b5cea8]">0</span>:{"\n"}
230
+ {" "}<span className="text-[#c586c0]">raise</span> <span className="text-[#4ec9b0]">ValueError</span>(<span className="text-[#ce9178]">"positive"</span>){"\n"}
231
+ {" "}<span className="text-[#c586c0]">if</span> user_type == <span className="text-[#ce9178]">"premium"</span>:{"\n"}
232
+ {" "}<span className="text-[#c586c0]">return</span> price * <span className="text-[#b5cea8]">0.2</span>{"\n"}
233
+ {" "}<span className="text-[#c586c0]">elif</span> user_type == <span className="text-[#ce9178]">"member"</span>:{"\n"}
234
+ {" "}<span className="text-[#c586c0]">return</span> price * <span className="text-[#b5cea8]">0.1</span>{"\n"}
235
+ {" "}<span className="text-[#c586c0]">return</span> <span className="text-[#b5cea8]">0</span>
236
+ </pre>
237
+ </div>
238
+
239
+ {/* Output */}
240
+ <div className="bg-[#252526] p-6 relative">
241
+ <div className="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-emerald-500 to-cyan-500" />
242
+ <div className="flex items-center gap-2 mb-4">
243
+ <span className="text-emerald-400 text-sm">πŸ€–</span>
244
+ <span className="text-xs font-bold uppercase tracking-wider text-[#ccc]">Generated Tests (Grade A)</span>
245
+ </div>
246
+ <div className="space-y-3">
247
+ <div className="bg-[#333] p-3 rounded border-l-2 border-emerald-500">
248
+ <p className="text-xs text-[#999] mb-1">βœ… 18 tests generated</p>
249
+ <p className="text-sm text-[#ddd]">Happy path, edge cases, boundary, error handling, parametrized</p>
250
+ </div>
251
+ <div className="bg-[#333] p-3 rounded border-l-2 border-purple-500">
252
+ <p className="text-xs text-[#999] mb-1">🧬 Mutation Score: 87%</p>
253
+ <p className="text-sm text-[#ddd]">13/15 mutants killed. 2 survived β†’ added tests in iteration 2.</p>
254
+ </div>
255
+ <div className="bg-[#333] p-3 rounded border-l-2 border-cyan-500">
256
+ <p className="text-xs text-[#999] mb-1">πŸ“Š Behavior Coverage: 92%</p>
257
+ <p className="text-sm text-[#ddd]">22/24 behaviors tested. Uncovered: concurrency, unicode input.</p>
258
+ </div>
259
+ </div>
260
+ </div>
261
  </div>
 
 
262
  </div>
263
+ </div>
264
+ </section>
 
265
 
266
+ {/* ── Stats ── */}
267
+ <section className={`py-20 transition-colors duration-300 ${isDark ? 'bg-slate-900' : 'bg-white'}`}>
268
+ <div className="max-w-7xl mx-auto px-6">
269
+ <div className="grid md:grid-cols-4 gap-12 text-center">
270
+ {[
271
+ { stat: "85%+", label: "Quality Score" },
272
+ { stat: "5", label: "AI Agents" },
273
+ { stat: "<4s", label: "Generation Time" },
274
+ { stat: "87%", label: "Mutation Kill Rate" },
275
+ ].map(({ stat, label }, i) => (
276
+ <div key={label} className={`flex flex-col gap-1 items-center ${i < 3 ? `md:border-r ${isDark ? 'border-slate-800' : 'border-slate-100'}` : ''}`}>
277
+ <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'}`}>
278
+ {stat}
279
+ </p>
280
+ <p className={`font-medium mt-2 ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>{label}</p>
281
+ </div>
282
+ ))}
283
+ </div>
284
+ </div>
285
+ </section>
286
+
287
+ {/* ── CTA ── */}
288
+ <section className="bg-slate-900 py-24 relative overflow-hidden">
289
+ <div className="absolute top-0 right-0 w-[500px] h-[500px] bg-emerald-500/20 rounded-full blur-[100px] pointer-events-none" />
290
+ <div className="absolute bottom-0 left-0 w-[400px] h-[400px] bg-cyan-600/15 rounded-full blur-[80px] pointer-events-none" />
291
+ <div className="max-w-3xl mx-auto px-6 text-center relative z-10">
292
+ <h2 className="text-3xl md:text-4xl font-bold text-white mb-6 tracking-tight">Ready to generate better tests?</h2>
293
+ <p className="text-slate-400 mb-10 text-lg">
294
+ Join QA teams who have transformed their testing workflow with AI-powered iterative test generation.
295
+ </p>
296
+ <div className="flex flex-col sm:flex-row items-center justify-center gap-4">
297
+ <button onClick={() => onNavigate('generate')}
298
+ 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">
299
+ Get Started Free
300
+ </button>
301
+ <button onClick={() => onNavigate('settings')}
302
+ 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">
303
+ Configure LLM
304
+ </button>
305
+ </div>
306
+ </div>
307
+ </section>
308
+ </main>
309
 
310
+ {/* ── Footer ── */}
311
+ <footer className={`pt-16 pb-12 border-t transition-colors duration-300 ${isDark ? 'bg-slate-900 border-slate-800' : 'bg-white border-slate-100'}`}>
312
+ <div className="max-w-7xl mx-auto px-6">
313
+ <div className="grid grid-cols-2 md:grid-cols-5 gap-8 mb-16">
314
+ <div className="col-span-2">
315
+ <div className={`flex items-center gap-2 mb-6 ${isDark ? 'text-white' : 'text-slate-900'}`}>
316
+ <span className="text-xl">πŸ§ͺ</span>
317
+ <span className="font-bold text-base tracking-tight">TestGenius AI</span>
318
+ </div>
319
+ <p className={`text-sm max-w-xs ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>
320
+ AI-powered test case generation for QA teams. Multi-agent iterative refinement inspired by MuTAP research.
321
+ </p>
322
+ </div>
323
+
324
+ {[
325
+ { heading: "Product", links: ["Multi-Agent Pipeline", "Code Analysis", "Mutation Testing", "Security Scanner"] },
326
+ { heading: "Resources", links: ["API Docs", "Research Papers", "LLM Providers", "Changelog"] },
327
+ { heading: "Company", links: ["About", "GitHub", "MIT License", "Contact"] },
328
+ ].map(({ heading, links }) => (
329
+ <div key={heading} className="flex flex-col gap-4">
330
+ <h4 className={`font-semibold text-sm ${isDark ? 'text-white' : 'text-slate-900'}`}>{heading}</h4>
331
+ {links.map((l) => (
332
+ <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>
333
+ ))}
334
+ </div>
335
+ ))}
336
+ </div>
337
+
338
+ <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'}`}>
339
+ <div className={`text-sm ${isDark ? 'text-slate-400' : 'text-slate-500'}`}>
340
+ Β© {new Date().getFullYear()} TestGenius AI. Research-grade test generation.
341
+ </div>
342
+ <div className="flex gap-6">
343
+ <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'}`}>
344
+ <GithubIcon />
345
+ </a>
346
+ <a href="#" className={`transition-colors ${isDark ? 'text-slate-500 hover:text-white' : 'text-slate-400 hover:text-slate-900'}`}>
347
+ <TwitterIcon />
348
+ </a>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ </footer>
353
  </div>
354
  );
355
  }
frontend/tailwind.config.js CHANGED
@@ -1,6 +1,21 @@
1
  /** @type {import('tailwindcss').Config} */
2
  export default {
3
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
4
- theme: { extend: {} },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  plugins: [],
6
  }
 
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: {
9
+ DEFAULT: '#10b981',
10
+ dark: '#059669',
11
+ },
12
+ 'background-light': '#ffffff',
13
+ },
14
+ fontFamily: {
15
+ sans: ['-apple-system', 'BlinkMacSystemFont', 'Inter', 'Segoe UI', 'Roboto', 'sans-serif'],
16
+ mono: ['JetBrains Mono', 'Fira Code', 'Menlo', 'Monaco', 'monospace'],
17
+ },
18
+ },
19
+ },
20
  plugins: [],
21
  }