π¨ Drastic UI Overhaul β CODE-NARRATIVE-AI inspired design
#4
by muthuk2 - opened
- frontend/package.json +4 -5
- frontend/src/App.tsx +37 -64
- frontend/src/index.css +61 -5
- frontend/src/pages/LandingPage.tsx +126 -84
- frontend/tailwind.config.js +12 -1
frontend/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"name": "testgenius-frontend",
|
| 3 |
-
"
|
|
|
|
| 4 |
"type": "module",
|
| 5 |
"scripts": {
|
| 6 |
"dev": "vite",
|
|
@@ -10,9 +11,7 @@
|
|
| 10 |
"dependencies": {
|
| 11 |
"react": "^18.3.0",
|
| 12 |
"react-dom": "^18.3.0",
|
| 13 |
-
"
|
| 14 |
-
"lucide-react": "^0.460.0",
|
| 15 |
-
"@monaco-editor/react": "^4.6.0"
|
| 16 |
},
|
| 17 |
"devDependencies": {
|
| 18 |
"@types/react": "^18.3.0",
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "testgenius-ai-frontend",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "2.0.0",
|
| 5 |
"type": "module",
|
| 6 |
"scripts": {
|
| 7 |
"dev": "vite",
|
|
|
|
| 11 |
"dependencies": {
|
| 12 |
"react": "^18.3.0",
|
| 13 |
"react-dom": "^18.3.0",
|
| 14 |
+
"lucide-react": "^0.460.0"
|
|
|
|
|
|
|
| 15 |
},
|
| 16 |
"devDependencies": {
|
| 17 |
"@types/react": "^18.3.0",
|
frontend/src/App.tsx
CHANGED
|
@@ -5,67 +5,28 @@ import { AnalyzePage } from './pages/AnalyzePage';
|
|
| 5 |
import { HistoryPage } from './pages/HistoryPage';
|
| 6 |
import { SettingsPage } from './pages/SettingsPage';
|
| 7 |
|
| 8 |
-
// βββ ERROR BOUNDARY βββ
|
| 9 |
-
function ErrorBoundary({ children }: { children: React.ReactNode }) {
|
| 10 |
-
const [error, setError] = useState<Error | null>(null);
|
| 11 |
-
|
| 12 |
-
useEffect(() => {
|
| 13 |
-
const handler = (event: ErrorEvent) => {
|
| 14 |
-
setError(new Error(event.message));
|
| 15 |
-
event.preventDefault();
|
| 16 |
-
};
|
| 17 |
-
window.addEventListener('error', handler);
|
| 18 |
-
return () => window.removeEventListener('error', handler);
|
| 19 |
-
}, []);
|
| 20 |
-
|
| 21 |
-
if (error) {
|
| 22 |
-
return (
|
| 23 |
-
<div className="min-h-screen bg-[#0a0a0f] flex items-center justify-center">
|
| 24 |
-
<div className="bg-red-500/10 border border-red-500/20 rounded-xl p-8 max-w-md text-center">
|
| 25 |
-
<div className="text-3xl mb-4">β οΈ</div>
|
| 26 |
-
<h2 className="text-lg font-bold text-white mb-2">Something went wrong</h2>
|
| 27 |
-
<p className="text-sm text-red-300 mb-4">{error.message}</p>
|
| 28 |
-
<button onClick={() => { setError(null); window.location.hash = ''; }}
|
| 29 |
-
className="px-4 py-2 bg-red-500/20 hover:bg-red-500/30 border border-red-500/30 rounded-lg text-sm text-white transition">
|
| 30 |
-
Try Again
|
| 31 |
-
</button>
|
| 32 |
-
</div>
|
| 33 |
-
</div>
|
| 34 |
-
);
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
return <>{children}</>;
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
-
// βββ HASH ROUTER βββ
|
| 41 |
type Page = 'landing' | 'generate' | 'analyze' | 'history' | 'settings';
|
| 42 |
|
| 43 |
function useHashRouter(): [Page, (p: Page) => void] {
|
| 44 |
const getPage = (): Page => {
|
| 45 |
const hash = window.location.hash.slice(1) || 'landing';
|
| 46 |
-
if (['landing', 'generate', 'analyze', 'history', 'settings'].includes(hash))
|
| 47 |
-
return hash as Page;
|
| 48 |
-
}
|
| 49 |
return 'landing';
|
| 50 |
};
|
| 51 |
-
|
| 52 |
-
const [page, setPageState] = useState<Page>(getPage());
|
| 53 |
-
|
| 54 |
useEffect(() => {
|
| 55 |
-
const handler = () =>
|
| 56 |
window.addEventListener('hashchange', handler);
|
| 57 |
return () => window.removeEventListener('hashchange', handler);
|
| 58 |
}, []);
|
| 59 |
-
|
| 60 |
const navigate = (p: Page) => {
|
| 61 |
window.location.hash = p === 'landing' ? '' : p;
|
| 62 |
-
|
|
|
|
| 63 |
};
|
| 64 |
-
|
| 65 |
return [page, navigate];
|
| 66 |
}
|
| 67 |
|
| 68 |
-
// βββ NAVIGATION BAR βββ
|
| 69 |
function Navbar({ page, onNavigate }: { page: Page; onNavigate: (p: Page) => void }) {
|
| 70 |
if (page === 'landing') return null;
|
| 71 |
|
|
@@ -79,19 +40,19 @@ function Navbar({ page, onNavigate }: { page: Page; onNavigate: (p: Page) => voi
|
|
| 79 |
return (
|
| 80 |
<nav className="sticky top-0 z-50 bg-[#0a0a0f]/80 backdrop-blur-xl border-b border-white/[0.04]">
|
| 81 |
<div className="max-w-[1400px] mx-auto px-6 py-3 flex items-center justify-between">
|
| 82 |
-
<button onClick={() => onNavigate('landing')} className="flex items-center gap-2">
|
| 83 |
-
<div className="w-
|
| 84 |
-
<span className="font-bold text-sm">TestGenius<span className="text-emerald-400">.ai</span></span>
|
| 85 |
</button>
|
| 86 |
<div className="flex gap-1">
|
| 87 |
{links.map(l => (
|
| 88 |
<button key={l.id} onClick={() => onNavigate(l.id)}
|
| 89 |
-
className={`px-3 py-
|
| 90 |
page === l.id
|
| 91 |
-
? 'bg-emerald-500/10 text-emerald-300 border border-emerald-500/20'
|
| 92 |
-
: 'text-gray-500 hover:text-gray-300 border border-transparent'
|
| 93 |
}`}>
|
| 94 |
-
<span className="mr-1">{l.icon}</span>{l.label}
|
| 95 |
</button>
|
| 96 |
))}
|
| 97 |
</div>
|
|
@@ -100,32 +61,44 @@ function Navbar({ page, onNavigate }: { page: Page; onNavigate: (p: Page) => voi
|
|
| 100 |
);
|
| 101 |
}
|
| 102 |
|
| 103 |
-
|
| 104 |
-
export function LoadingSkeleton() {
|
| 105 |
return (
|
| 106 |
-
<div className="
|
| 107 |
-
<div className="
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</div>
|
| 112 |
);
|
| 113 |
}
|
| 114 |
|
| 115 |
-
// βββ MAIN APP βββ
|
| 116 |
export default function App() {
|
| 117 |
const [page, navigate] = useHashRouter();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
return (
|
| 120 |
-
<
|
| 121 |
-
<
|
| 122 |
-
|
| 123 |
{page === 'landing' && <LandingPage onNavigate={navigate} />}
|
| 124 |
{page === 'generate' && <GeneratePage />}
|
| 125 |
{page === 'analyze' && <AnalyzePage />}
|
| 126 |
{page === 'history' && <HistoryPage />}
|
| 127 |
{page === 'settings' && <SettingsPage />}
|
| 128 |
-
</
|
| 129 |
-
</
|
| 130 |
);
|
| 131 |
}
|
|
|
|
| 5 |
import { HistoryPage } from './pages/HistoryPage';
|
| 6 |
import { SettingsPage } from './pages/SettingsPage';
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
type Page = 'landing' | 'generate' | 'analyze' | 'history' | 'settings';
|
| 9 |
|
| 10 |
function useHashRouter(): [Page, (p: Page) => void] {
|
| 11 |
const getPage = (): Page => {
|
| 12 |
const hash = window.location.hash.slice(1) || 'landing';
|
| 13 |
+
if (['landing', 'generate', 'analyze', 'history', 'settings'].includes(hash)) return hash as Page;
|
|
|
|
|
|
|
| 14 |
return 'landing';
|
| 15 |
};
|
| 16 |
+
const [page, setPage] = useState<Page>(getPage());
|
|
|
|
|
|
|
| 17 |
useEffect(() => {
|
| 18 |
+
const handler = () => setPage(getPage());
|
| 19 |
window.addEventListener('hashchange', handler);
|
| 20 |
return () => window.removeEventListener('hashchange', handler);
|
| 21 |
}, []);
|
|
|
|
| 22 |
const navigate = (p: Page) => {
|
| 23 |
window.location.hash = p === 'landing' ? '' : p;
|
| 24 |
+
setPage(p);
|
| 25 |
+
window.scrollTo(0, 0);
|
| 26 |
};
|
|
|
|
| 27 |
return [page, navigate];
|
| 28 |
}
|
| 29 |
|
|
|
|
| 30 |
function Navbar({ page, onNavigate }: { page: Page; onNavigate: (p: Page) => void }) {
|
| 31 |
if (page === 'landing') return null;
|
| 32 |
|
|
|
|
| 40 |
return (
|
| 41 |
<nav className="sticky top-0 z-50 bg-[#0a0a0f]/80 backdrop-blur-xl border-b border-white/[0.04]">
|
| 42 |
<div className="max-w-[1400px] mx-auto px-6 py-3 flex items-center justify-between">
|
| 43 |
+
<button onClick={() => onNavigate('landing')} className="flex items-center gap-2.5 hover:opacity-80 transition">
|
| 44 |
+
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-emerald-500 to-cyan-500 flex items-center justify-center text-xs font-black shadow-md shadow-emerald-500/20">T</div>
|
| 45 |
+
<span className="font-bold text-sm tracking-tight">TestGenius<span className="text-emerald-400">.ai</span></span>
|
| 46 |
</button>
|
| 47 |
<div className="flex gap-1">
|
| 48 |
{links.map(l => (
|
| 49 |
<button key={l.id} onClick={() => onNavigate(l.id)}
|
| 50 |
+
className={`px-3.5 py-2 rounded-lg text-xs font-medium transition-all ${
|
| 51 |
page === l.id
|
| 52 |
+
? 'bg-emerald-500/10 text-emerald-300 border border-emerald-500/20 shadow-sm shadow-emerald-500/5'
|
| 53 |
+
: 'text-gray-500 hover:text-gray-300 border border-transparent hover:border-white/[0.06]'
|
| 54 |
}`}>
|
| 55 |
+
<span className="mr-1.5">{l.icon}</span>{l.label}
|
| 56 |
</button>
|
| 57 |
))}
|
| 58 |
</div>
|
|
|
|
| 61 |
);
|
| 62 |
}
|
| 63 |
|
| 64 |
+
function ErrorFallback({ error, onReset }: { error: string; onReset: () => void }) {
|
|
|
|
| 65 |
return (
|
| 66 |
+
<div className="min-h-screen bg-[#0a0a0f] flex items-center justify-center p-8">
|
| 67 |
+
<div className="bg-red-500/5 border border-red-500/20 rounded-2xl p-10 max-w-md text-center">
|
| 68 |
+
<div className="text-4xl mb-5">β οΈ</div>
|
| 69 |
+
<h2 className="text-lg font-bold text-white mb-2">Something went wrong</h2>
|
| 70 |
+
<p className="text-sm text-red-300/80 mb-6">{error}</p>
|
| 71 |
+
<button onClick={onReset}
|
| 72 |
+
className="px-6 py-2.5 bg-white/[0.05] hover:bg-white/[0.08] border border-white/[0.08] rounded-xl text-sm font-medium transition">
|
| 73 |
+
Try Again
|
| 74 |
+
</button>
|
| 75 |
+
</div>
|
| 76 |
</div>
|
| 77 |
);
|
| 78 |
}
|
| 79 |
|
|
|
|
| 80 |
export default function App() {
|
| 81 |
const [page, navigate] = useHashRouter();
|
| 82 |
+
const [error, setError] = useState<string | null>(null);
|
| 83 |
+
|
| 84 |
+
useEffect(() => {
|
| 85 |
+
const handler = (e: ErrorEvent) => { setError(e.message); e.preventDefault(); };
|
| 86 |
+
window.addEventListener('error', handler);
|
| 87 |
+
return () => window.removeEventListener('error', handler);
|
| 88 |
+
}, []);
|
| 89 |
+
|
| 90 |
+
if (error) return <ErrorFallback error={error} onReset={() => { setError(null); navigate('landing'); }} />;
|
| 91 |
|
| 92 |
return (
|
| 93 |
+
<div className="min-h-screen bg-[#0a0a0f] text-white">
|
| 94 |
+
<Navbar page={page} onNavigate={navigate} />
|
| 95 |
+
<main className="animate-fade-in">
|
| 96 |
{page === 'landing' && <LandingPage onNavigate={navigate} />}
|
| 97 |
{page === 'generate' && <GeneratePage />}
|
| 98 |
{page === 'analyze' && <AnalyzePage />}
|
| 99 |
{page === 'history' && <HistoryPage />}
|
| 100 |
{page === 'settings' && <SettingsPage />}
|
| 101 |
+
</main>
|
| 102 |
+
</div>
|
| 103 |
);
|
| 104 |
}
|
frontend/src/index.css
CHANGED
|
@@ -2,13 +2,69 @@
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
body {
|
| 6 |
background: #0a0a0f;
|
| 7 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
| 5 |
+
* {
|
| 6 |
+
margin: 0;
|
| 7 |
+
padding: 0;
|
| 8 |
+
box-sizing: border-box;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
html {
|
| 12 |
+
scroll-behavior: smooth;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
body {
|
| 16 |
background: #0a0a0f;
|
| 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-track {
|
| 34 |
+
background: transparent;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
::-webkit-scrollbar-thumb {
|
| 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%;
|
| 69 |
+
animation: shimmer 2s infinite;
|
| 70 |
+
}
|
frontend/src/pages/LandingPage.tsx
CHANGED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
-
import
|
| 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 |
-
|
|
|
|
| 15 |
|
| 16 |
const particles: { x: number; y: number; vx: number; vy: number; r: number; a: number }[] = [];
|
| 17 |
-
for (let i = 0; i <
|
| 18 |
-
particles.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, vx: (Math.random() - 0.5) * 0.
|
| 19 |
}
|
| 20 |
|
| 21 |
let animId: number;
|
|
@@ -28,161 +28,203 @@ export function LandingPage({ onNavigate }: Props) {
|
|
| 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 <
|
| 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.
|
| 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
|
| 57 |
-
<div className="absolute top-[
|
| 58 |
-
<div className="absolute bottom-[
|
| 59 |
-
<div className="absolute top-[
|
| 60 |
|
| 61 |
{/* Header */}
|
| 62 |
-
<header className="relative z-10 max-w-[1400px] mx-auto px-
|
| 63 |
-
<div className="flex items-center gap-
|
| 64 |
-
<div className="w-
|
| 65 |
-
<
|
|
|
|
|
|
|
|
|
|
| 66 |
</div>
|
| 67 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
Launch App β
|
| 69 |
</button>
|
| 70 |
</header>
|
| 71 |
|
| 72 |
-
{/* Hero */}
|
| 73 |
-
<section className="relative z-10 max-w-[1400px] mx-auto px-
|
| 74 |
{/* Badge */}
|
| 75 |
-
<div className="inline-flex items-center gap-2 px-
|
| 76 |
<span className="w-2 h-2 bg-emerald-500 rounded-full animate-pulse" />
|
| 77 |
-
<span className="text-emerald-300 text-
|
| 78 |
</div>
|
| 79 |
|
| 80 |
-
<h1 className="text-
|
| 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-
|
| 86 |
5 AI agents analyze your code, generate tests, validate quality, and
|
| 87 |
-
<span className="text-emerald-300 font-
|
| 88 |
-
using mutation testing feedback
|
| 89 |
</p>
|
| 90 |
|
| 91 |
-
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center mb-
|
| 92 |
<button onClick={() => onNavigate('generate')}
|
| 93 |
-
className="group relative px-
|
| 94 |
<span className="relative z-10">β‘ Start Generating Tests</span>
|
| 95 |
-
<div className="absolute inset-0 rounded-
|
| 96 |
</button>
|
| 97 |
<button onClick={() => onNavigate('analyze')}
|
| 98 |
-
className="px-
|
| 99 |
π¬ Analyze Code First
|
| 100 |
</button>
|
| 101 |
</div>
|
| 102 |
|
| 103 |
{/* Stats */}
|
| 104 |
-
<div className="
|
| 105 |
{[
|
| 106 |
-
{ value: '5', label: 'AI Agents'
|
| 107 |
-
{ value: '
|
| 108 |
-
{ value: '
|
| 109 |
-
{ value: '
|
| 110 |
-
{ value: 'β', label: 'LLM Providers', color: 'rose' },
|
| 111 |
].map((s, i) => (
|
| 112 |
-
<div key={i} className="
|
| 113 |
-
<div className="
|
| 114 |
-
<div className="
|
| 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
|
| 124 |
-
<section className="relative z-10 max-w-
|
| 125 |
-
<
|
| 126 |
-
|
|
|
|
|
|
|
| 127 |
|
| 128 |
-
<div className="grid md:grid-cols-5 gap-3">
|
| 129 |
{[
|
| 130 |
-
{ num: '1', title: 'Analyze', desc: 'AST complexity + behavior extraction', icon: 'π¬',
|
| 131 |
-
{ num: '2', title: 'Generate', desc: 'Context-rich LLM test generation', icon: 'β‘',
|
| 132 |
-
{ num: '3', title: 'Validate', desc: '
|
| 133 |
-
{ num: '4', title: 'Refine', desc: 'Mutation-guided improvement loop', icon: 'π',
|
| 134 |
-
{ num: '5', title: 'Map', desc: '
|
| 135 |
].map((step, i) => (
|
| 136 |
-
<div key={i} className={`relative p-
|
| 137 |
-
{i < 4 && <div className="hidden md:block absolute -right-2 top-1/2 -translate-y-1/2 text-gray-600 text-
|
| 138 |
-
<div className="text-
|
| 139 |
-
<div className="text-
|
| 140 |
-
<div className="text-sm font-
|
| 141 |
<div className="text-[11px] text-gray-400 leading-relaxed">{step.desc}</div>
|
| 142 |
</div>
|
| 143 |
))}
|
| 144 |
</div>
|
| 145 |
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
π Agents 2-4 iterate until quality β₯ Grade B
|
| 150 |
</div>
|
| 151 |
</div>
|
| 152 |
</section>
|
| 153 |
|
| 154 |
-
{/*
|
| 155 |
-
<section className="relative z-10 max-w-
|
| 156 |
-
<
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
{[
|
| 159 |
-
{ icon: 'π', title: 'Iterative Refinement', desc: '
|
| 160 |
-
{ icon: 'π', title: 'Behavior Coverage', desc: '
|
| 161 |
-
{ icon: 'π§¬', title: 'Mutation Testing', desc: '
|
| 162 |
-
{ icon: 'π§ ', title: 'Complexity Analysis', desc: '
|
| 163 |
-
{ icon: 'π', title: 'Gap Detection', desc: 'Untested error paths & branches', tag: '
|
| 164 |
{ icon: 'π', title: 'Quality Scoring', desc: 'Grade A-D on 5 dimensions', tag: 'Novel' },
|
| 165 |
-
{ icon: 'π', title: 'Security Scanner', desc: 'OWASP injection
|
| 166 |
{ icon: 'π€', title: 'Multi-Agent', desc: '5 specialized agents collaborate', tag: '2024' },
|
| 167 |
].map((f, i) => (
|
| 168 |
-
<div key={i} className="group p-
|
| 169 |
-
<div className="flex items-start justify-between mb-
|
| 170 |
-
<span className="text-
|
| 171 |
-
<span className="text-[9px] px-
|
| 172 |
</div>
|
| 173 |
-
<h3 className="text-
|
| 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
|
| 182 |
-
<
|
|
|
|
|
|
|
|
|
|
| 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; }
|
|
|
|
| 1 |
+
import { 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 |
useEffect(() => {
|
| 9 |
const canvas = canvasRef.current;
|
| 10 |
if (!canvas) return;
|
| 11 |
const ctx = canvas.getContext('2d')!;
|
| 12 |
+
const resize = () => { canvas.width = window.innerWidth; canvas.height = window.innerHeight; };
|
| 13 |
+
resize();
|
| 14 |
+
window.addEventListener('resize', resize);
|
| 15 |
|
| 16 |
const particles: { x: number; y: number; vx: number; vy: number; r: number; a: number }[] = [];
|
| 17 |
+
for (let i = 0; i < 80; i++) {
|
| 18 |
+
particles.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, vx: (Math.random() - 0.5) * 0.2, vy: (Math.random() - 0.5) * 0.2, r: Math.random() * 1.5 + 0.5, a: Math.random() * 0.3 + 0.1 });
|
| 19 |
}
|
| 20 |
|
| 21 |
let animId: number;
|
|
|
|
| 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="relative min-h-screen overflow-hidden bg-[#0a0a0f]">
|
|
|
|
| 52 |
<canvas ref={canvasRef} className="absolute inset-0 pointer-events-none" />
|
| 53 |
|
| 54 |
+
{/* Gradient Orbs */}
|
| 55 |
+
<div className="absolute top-[15%] left-[5%] w-[600px] h-[600px] rounded-full bg-emerald-500/[0.03] blur-[150px]" />
|
| 56 |
+
<div className="absolute bottom-[5%] right-[10%] w-[500px] h-[500px] rounded-full bg-cyan-500/[0.025] blur-[120px]" />
|
| 57 |
+
<div className="absolute top-[50%] left-[40%] w-[400px] h-[400px] rounded-full bg-violet-500/[0.02] blur-[100px]" />
|
| 58 |
|
| 59 |
{/* Header */}
|
| 60 |
+
<header className="relative z-10 max-w-[1400px] mx-auto px-8 py-6 flex items-center justify-between">
|
| 61 |
+
<div className="flex items-center gap-3">
|
| 62 |
+
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-emerald-500 to-cyan-500 flex items-center justify-center text-base font-black shadow-lg shadow-emerald-500/30">T</div>
|
| 63 |
+
<div>
|
| 64 |
+
<span className="font-bold text-lg tracking-tight">TestGenius</span>
|
| 65 |
+
<span className="text-emerald-400 font-bold text-lg">.ai</span>
|
| 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 |
+
{/* Hero Section */}
|
| 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 |
+
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center mb-20">
|
| 98 |
<button onClick={() => onNavigate('generate')}
|
| 99 |
+
className="group relative px-10 py-4 bg-gradient-to-r from-emerald-600 to-cyan-600 rounded-full font-bold text-base transition-all hover:shadow-2xl hover:shadow-emerald-500/30 hover:scale-[1.03] active:scale-[0.98]">
|
| 100 |
<span className="relative z-10">β‘ Start Generating Tests</span>
|
| 101 |
+
<div className="absolute inset-0 rounded-full bg-gradient-to-r from-emerald-400 to-cyan-400 opacity-0 group-hover:opacity-20 transition-opacity blur-xl" />
|
| 102 |
</button>
|
| 103 |
<button onClick={() => onNavigate('analyze')}
|
| 104 |
+
className="px-10 py-4 border border-white/[0.08] hover:border-emerald-500/30 rounded-full font-medium text-base text-gray-300 hover:text-white transition-all hover:bg-white/[0.03]">
|
| 105 |
π¬ Analyze Code First
|
| 106 |
</button>
|
| 107 |
</div>
|
| 108 |
|
| 109 |
{/* Stats */}
|
| 110 |
+
<div className="flex justify-center gap-16 mb-8">
|
| 111 |
{[
|
| 112 |
+
{ value: '5', label: 'AI Agents' },
|
| 113 |
+
{ value: '85%+', label: 'Quality Target' },
|
| 114 |
+
{ value: '<4s', label: 'Generation Time' },
|
| 115 |
+
{ value: 'β', label: 'LLM Providers' },
|
|
|
|
| 116 |
].map((s, i) => (
|
| 117 |
+
<div key={i} className="text-center">
|
| 118 |
+
<div className="text-3xl font-black text-white">{s.value}</div>
|
| 119 |
+
<div className="text-xs text-gray-500 mt-1 uppercase tracking-wider font-medium">{s.label}</div>
|
|
|
|
|
|
|
|
|
|
| 120 |
</div>
|
| 121 |
))}
|
| 122 |
</div>
|
| 123 |
</section>
|
| 124 |
|
| 125 |
+
{/* Pipeline Section */}
|
| 126 |
+
<section id="pipeline" className="relative z-10 max-w-6xl mx-auto px-8 pb-24">
|
| 127 |
+
<div className="text-center mb-12">
|
| 128 |
+
<h2 className="text-3xl font-bold text-white mb-3">The 5-Agent Pipeline</h2>
|
| 129 |
+
<p className="text-gray-500">Not single-shot. Iterative. Research-grade.</p>
|
| 130 |
+
</div>
|
| 131 |
|
| 132 |
+
<div className="grid grid-cols-1 md:grid-cols-5 gap-3">
|
| 133 |
{[
|
| 134 |
+
{ num: '1', title: 'Analyze', desc: 'AST complexity + behavior extraction', icon: 'π¬', gradient: 'from-blue-500/20 to-indigo-500/20', border: 'border-blue-500/15' },
|
| 135 |
+
{ num: '2', title: 'Generate', desc: 'Context-rich LLM test generation', icon: 'β‘', gradient: 'from-emerald-500/20 to-green-500/20', border: 'border-emerald-500/15' },
|
| 136 |
+
{ num: '3', title: 'Validate', desc: 'Syntax check + quality scoring', icon: 'β
', gradient: 'from-amber-500/20 to-yellow-500/20', border: 'border-amber-500/15' },
|
| 137 |
+
{ num: '4', title: 'Refine', desc: 'Mutation-guided improvement loop', icon: 'π', gradient: 'from-purple-500/20 to-pink-500/20', border: 'border-purple-500/15' },
|
| 138 |
+
{ num: '5', title: 'Map', desc: 'Semantic behavior coverage', icon: 'π', gradient: 'from-cyan-500/20 to-teal-500/20', border: 'border-cyan-500/15' },
|
| 139 |
].map((step, i) => (
|
| 140 |
+
<div key={i} className={`relative p-5 rounded-2xl border ${step.border} bg-gradient-to-b ${step.gradient} backdrop-blur-sm transition-all hover:scale-[1.04] hover:shadow-xl`}>
|
| 141 |
+
{i < 4 && <div className="hidden md:block absolute -right-2 top-1/2 -translate-y-1/2 text-gray-600 text-sm z-20 font-mono">β</div>}
|
| 142 |
+
<div className="text-3xl mb-3">{step.icon}</div>
|
| 143 |
+
<div className="text-[10px] font-bold text-white/30 uppercase tracking-widest mb-1">Agent {step.num}</div>
|
| 144 |
+
<div className="text-sm font-bold text-white mb-1">{step.title}</div>
|
| 145 |
<div className="text-[11px] text-gray-400 leading-relaxed">{step.desc}</div>
|
| 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 |
</div>
|
| 155 |
</section>
|
| 156 |
|
| 157 |
+
{/* Features Grid */}
|
| 158 |
+
<section id="features" className="relative z-10 max-w-6xl mx-auto px-8 pb-24">
|
| 159 |
+
<div className="text-center mb-12">
|
| 160 |
+
<h2 className="text-3xl font-bold text-white mb-3">8 Research-Backed Novelties</h2>
|
| 161 |
+
<p className="text-gray-500">Every feature backed by published research.</p>
|
| 162 |
+
</div>
|
| 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 |
</div>
|
| 185 |
</section>
|
| 186 |
|
| 187 |
+
{/* Research Section */}
|
| 188 |
+
<section id="research" className="relative z-10 max-w-4xl mx-auto px-8 pb-24">
|
| 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 |
+
</div>
|
| 208 |
+
</section>
|
| 209 |
+
|
| 210 |
+
{/* CTA Footer */}
|
| 211 |
+
<section className="relative z-10 max-w-4xl mx-auto px-8 pb-20 text-center">
|
| 212 |
+
<h2 className="text-2xl font-bold text-white mb-4">Ready to generate better tests?</h2>
|
| 213 |
+
<p className="text-gray-500 mb-8">Paste your code. Get production-ready tests in seconds.</p>
|
| 214 |
+
<button onClick={() => onNavigate('generate')}
|
| 215 |
+
className="px-10 py-4 bg-gradient-to-r from-emerald-600 to-cyan-600 rounded-full font-bold text-base hover:shadow-2xl hover:shadow-emerald-500/30 hover:scale-[1.02] transition-all">
|
| 216 |
+
π Launch TestGenius
|
| 217 |
+
</button>
|
| 218 |
+
</section>
|
| 219 |
+
|
| 220 |
{/* Footer */}
|
| 221 |
+
<footer className="relative z-10 border-t border-white/[0.03] py-8">
|
| 222 |
+
<div className="max-w-[1400px] mx-auto px-8 flex items-center justify-between">
|
| 223 |
+
<p className="text-xs text-gray-600">TestGenius AI β Research-grade test generation for QA teams.</p>
|
| 224 |
+
<p className="text-xs text-gray-600">Built with FastAPI + React + Any LLM</p>
|
| 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; }
|
frontend/tailwind.config.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
| 1 |
/** @type {import('tailwindcss').Config} */
|
| 2 |
export default {
|
| 3 |
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
| 4 |
-
theme: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
plugins: [],
|
| 6 |
}
|
|
|
|
| 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', 'Segoe UI', 'Inter', 'Roboto', 'sans-serif'],
|
| 8 |
+
mono: ['JetBrains Mono', 'Fira Code', 'Menlo', 'Monaco', 'monospace'],
|
| 9 |
+
},
|
| 10 |
+
animation: {
|
| 11 |
+
'fade-in': 'fadeIn 0.3s ease-out',
|
| 12 |
+
'shimmer': 'shimmer 2s infinite',
|
| 13 |
+
},
|
| 14 |
+
},
|
| 15 |
+
},
|
| 16 |
plugins: [],
|
| 17 |
}
|