-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
executable file
·123 lines (108 loc) · 4.16 KB
/
App.tsx
File metadata and controls
executable file
·123 lines (108 loc) · 4.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
121
122
123
import React from 'react';
import { Hero } from './components/Hero';
import { TechStackWidget, ProductionWidget, WorkflowWidget, FeaturesWidget } from './components/DashboardWidgets';
import { LanguageProvider, useLanguage } from './LanguageContext';
import { MatrixBackground } from './components/MatrixBackground';
import { Github, Terminal } from 'lucide-react';
const DashboardHeader = () => {
const { t } = useLanguage();
return (
<header className="dashboard-header justify-between">
<div className="flex items-center gap-3">
<img src="https://fulling.sealosbja.site/icon.svg" alt="Logo" className="w-6 h-6" />
<span className="font-bold tracking-tight text-lg">FULLING</span>
<span className="text-xs bg-primary/10 text-primary px-2 py-0.5 border border-primary/20 ml-2 hidden sm:inline-block">
v2.0.0-alpha
</span>
</div>
<div className="absolute left-1/2 transform -translate-x-1/2 font-bold tracking-tight text-xl hidden md:block text-fg whitespace-nowrap">
{t.hero.title}
</div>
<div className="flex items-center gap-4">
<a
href="https://github.com/fullstackagent/fulling"
target="_blank"
rel="noreferrer"
className="text-dim hover:text-white transition-colors"
>
<Github size={18} />
</a>
<a
href="https://bja.sealos.run/?openapp=system-fulling"
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 bg-primary/10 hover:bg-primary text-primary hover:text-bg border border-primary/30 hover:!border hover:!border-primary px-3 py-1.5 text-xs font-bold uppercase transition-all duration-200 hover:shadow-[0_0_15px_rgba(0,255,65,0.3)]"
>
<Terminal size={14} />
<span className="hidden sm:inline">{t.nav.startCoding.replace('[ ', '').replace(' ]', '')}</span>
</a>
</div>
</header>
);
};
const DashboardFooter = () => {
const { t } = useLanguage();
return (
<footer className="dashboard-footer">
<div className="flex items-center gap-4">
<span>{t.footer.rights}</span>
</div>
<div className="flex items-center gap-4 font-mono text-xs">
<span className="flex items-center gap-1.5">
<span className="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span>
SYSTEM: ONLINE
</span>
<span className="hidden sm:inline text-dim">|</span>
<span className="hidden sm:inline text-dim">LATENCY: 12ms</span>
</div>
</footer>
);
};
const Dashboard = () => {
return (
<div className="dashboard-grid">
{/* Visual Effects Layer */}
<div className="scanline-overlay crt-flicker"></div>
<DashboardHeader />
{/* Left Panel: System Specs */}
<div className="dashboard-panel flex flex-col border-r border-border">
<div className="h-3/5 border-b border-border relative overflow-hidden">
<TechStackWidget />
</div>
<div className="h-2/5 relative overflow-hidden">
<ProductionWidget />
</div>
</div>
{/* Center Panel: Main Terminal */}
<div className="dashboard-panel relative flex flex-col">
<div className="absolute inset-0 z-0">
<MatrixBackground />
</div>
{/* Grid overlay for the center panel */}
<div className="grid-bg opacity-30"></div>
<div className="relative z-10 flex flex-col h-full w-full overflow-y-auto custom-scrollbar">
<div style={{ flex: '1', display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
<Hero compact={true} />
</div>
</div>
</div>
{/* Right Panel: Operations */}
<div className="dashboard-panel flex flex-col border-l border-border">
<div className="h-3/5 border-b border-border relative overflow-hidden">
<WorkflowWidget />
</div>
<div className="h-2/5 relative overflow-hidden">
<FeaturesWidget />
</div>
</div>
<DashboardFooter />
</div>
);
};
export default function App() {
return (
<LanguageProvider>
<Dashboard />
</LanguageProvider>
);
}