-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
68 lines (59 loc) · 3.13 KB
/
App.tsx
File metadata and controls
68 lines (59 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React, { useState } from 'react';
import Header from './components/Header';
import GuideSection from './components/GuideSection';
import Generator from './components/Generator';
import References from './components/References';
import MobileWarning from './components/MobileWarning';
import { Linkedin } from 'lucide-react';
const App: React.FC = () => {
const [activeTab, setActiveTab] = useState<'guide' | 'generator' | 'references'>('guide');
const handleTabChange = (tab: 'guide' | 'generator' | 'references') => {
setActiveTab(tab);
window.scrollTo({ top: 0, behavior: 'smooth' });
};
return (
<div className="min-h-screen bg-[#0B1120] text-slate-200 font-sans selection:bg-primary/30 flex flex-col relative overflow-x-hidden">
<div className="fixed inset-0 z-0 pointer-events-none">
<div className="absolute top-[-10%] left-[-10%] w-[40%] h-[40%] bg-primary/10 rounded-full blur-[120px]" />
<div className="absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] bg-accent/10 rounded-full blur-[120px]" />
</div>
<MobileWarning />
<Header activeTab={activeTab} setActiveTab={handleTabChange} />
<main className="flex-grow relative z-10">
<div className={`${activeTab === 'guide' ? 'animate-fade-in' : 'hidden'}`}>
<GuideSection />
<div className="text-center pb-24 pt-12">
<button
onClick={() => handleTabChange('generator')}
className="group relative inline-flex h-12 items-center justify-center overflow-hidden rounded-md bg-primary px-8 font-medium text-white transition-all duration-300 hover:bg-blue-600 hover:scale-105"
>
<span className="mr-2 relative z-10">Start Generating Rules</span>
</button>
</div>
</div>
<div className={`${activeTab === 'generator' ? 'animate-fade-in py-8' : 'hidden'}`}>
<Generator />
</div>
<div className={`${activeTab === 'references' ? 'animate-fade-in' : 'hidden'}`}>
<References />
</div>
</main>
<footer className="border-t border-slate-800/50 bg-[#0B1120]/80 backdrop-blur-xl py-12 relative z-10">
<div className="max-w-7xl mx-auto px-6 flex flex-col md:flex-row justify-between items-center gap-6">
<div className="text-center md:text-left">
<p className="font-bold text-lg text-white tracking-tight">UniGen</p>
<p className="text-slate-500 text-sm mt-1">Master the AI IDE workflow.</p>
</div>
<div className="flex items-center gap-6">
<a href="https://www.linkedin.com/in/amit-rintzler-94444535" target="_blank" rel="noopener noreferrer" className="flex items-center gap-2 text-slate-400 hover:text-white group">
<Linkedin className="w-5 h-5 group-hover:text-[#0A66C2] transition-colors" />
<span className="text-sm font-medium">Created by Amit Rintzler</span>
</a>
</div>
<div className="text-slate-600 text-xs">© {new Date().getFullYear()} All rights reserved.</div>
</div>
</footer>
</div>
);
};
export default App;