-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemArchitecture.jsx
More file actions
268 lines (256 loc) · 10.2 KB
/
SystemArchitecture.jsx
File metadata and controls
268 lines (256 loc) · 10.2 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
import React from 'react';
import { motion } from 'framer-motion';
import { useAboutData } from '../../hooks/useAboutData';
import {
CpuIcon,
HardDrivesIcon,
CircuitryIcon,
ShareNetworkIcon,
} from '@phosphor-icons/react';
const BlueprintGrid = () => (
<div className="fixed inset-0 z-0 pointer-events-none opacity-30">
<div
className="w-full h-full"
style={{
backgroundImage: `
linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px)
`,
backgroundSize: '40px 40px',
}}
/>
<div
className="absolute inset-0 w-full h-full"
style={{
backgroundImage: `
linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px)
`,
backgroundSize: '10px 10px',
}}
/>
</div>
);
const SchematicBox = ({
title,
children,
className = '',
icon: Icon,
delay = 0,
noBorder = false,
}) => (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.5, delay }}
className={`bg-[#002b5c]/80 backdrop-blur-sm p-4 relative ${!noBorder ? 'border border-cyan-500/30' : ''} ${className}`}
>
{/* Header */}
<div className="flex items-center gap-2 border-b border-cyan-500/30 pb-2 mb-3">
{Icon && <Icon size={16} className="text-cyan-300" />}
<h3 className="font-mono text-[10px] uppercase tracking-widest text-cyan-300 font-bold">
{title}
</h3>
<div className="flex-grow h-px bg-cyan-500/30 ml-2" />
</div>
{children}
</motion.div>
);
const SystemArchitecture = () => {
const aboutData = useAboutData();
return (
<div className="relative min-h-screen bg-[#001e40] text-white p-4 pt-24 font-mono selection:bg-cyan-500 selection:text-black pb-32">
<BlueprintGrid />
<div className="relative z-10 max-w-5xl mx-auto flex flex-col gap-0 border-2 border-cyan-500/50 p-1 bg-[#001830]/50 shadow-[0_0_30px_rgba(0,255,255,0.1)]">
{/* Top Section: Processor */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-1 mb-1">
<SchematicBox
title="CPU_CORE"
icon={CpuIcon}
className="col-span-1 md:col-span-12 flex flex-col md:flex-row items-center gap-6"
>
<div className="shrink-0 relative">
<div className="w-20 h-20 border border-cyan-400 flex items-center justify-center bg-[#001e40]">
<CpuIcon size={48} className="text-cyan-400 animate-pulse" />
</div>
{/* Connection Lines */}
<div className="absolute top-1/2 -right-6 w-6 h-px bg-cyan-500 md:block hidden" />
<div className="absolute top-1/2 -left-6 w-6 h-px bg-cyan-500 md:block hidden" />
</div>
<div className="flex-grow w-full">
<div className="flex justify-between items-end border-b border-cyan-500/30 mb-2">
<h1 className="text-2xl font-bold uppercase text-white">
{aboutData.profile.name}
</h1>
<span className="text-xs text-cyan-400">
{aboutData.profile.role}
</span>
</div>
<div className="grid grid-cols-3 gap-2 text-[10px] text-cyan-200/80">
<div>> STATUS: ONLINE</div>
<div>> LOC: {aboutData.profile.location}</div>
<div>
> UPTIME:{' '}
{aboutData.stats.find((s) => s.label === 'Experience')?.value}
</div>
</div>
<p className="mt-2 text-xs text-white/80 border-l-2 border-cyan-500 pl-2">
{aboutData.profile.tagline}
</p>
</div>
</SchematicBox>
</div>
{/* Middle Section: Memory & I/O */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-1 mb-1">
{/* Left: Experience */}
<SchematicBox
title="MEMORY_BANKS (EXP)"
icon={HardDrivesIcon}
delay={0.2}
className="h-full"
>
<div className="space-y-0">
{aboutData.experience.map((exp, i) => (
<div
key={i}
className="group relative pl-4 py-3 border-l border-cyan-500/20 hover:bg-white/5 transition-colors"
>
<div className="absolute left-[-3px] top-4 w-1.5 h-1.5 bg-cyan-900 border border-cyan-500 group-hover:bg-cyan-400 transition-colors" />
<div className="flex justify-between items-start mb-1">
<span className="font-bold text-xs text-white">
{exp.company}
</span>
<span className="text-[9px] bg-cyan-900/50 px-1 border border-cyan-500/30 text-cyan-300">
{exp.period}
</span>
</div>
<div className="text-[10px] text-cyan-400 mb-1">
{exp.role}
</div>
<p className="text-[10px] text-white/60 leading-relaxed">
{exp.desc}
</p>
</div>
))}
</div>
</SchematicBox>
{/* Right: Skills */}
<SchematicBox
title="I/O_BUS (SKILLS)"
icon={CircuitryIcon}
delay={0.3}
className="h-full"
>
<div className="grid grid-cols-2 gap-2 h-full content-start">
{aboutData.skills.map((skill, i) => (
<div
key={i}
className="bg-[#001020] border border-cyan-500/20 p-2 flex flex-col justify-center relative overflow-hidden group"
>
{/* Background Bar */}
<div className="absolute bottom-0 left-0 h-1 bg-cyan-900/50 w-full">
<div
className="h-full bg-cyan-500/50"
style={{ width: `${skill.level}%` }}
/>
</div>
<div className="flex justify-between items-center z-10">
<span className="text-[10px] font-bold text-cyan-100">
{skill.name}
</span>
<span className="text-[9px] text-cyan-500/80">
{skill.level}%
</span>
</div>
</div>
))}
</div>
</SchematicBox>
</div>
{/* Bottom Section: Auxiliary */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-1">
<SchematicBox
title="AUX_MODULES"
icon={ShareNetworkIcon}
delay={0.4}
className="col-span-1 md:col-span-12"
>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
{/* Dynamic Traits Modules */}
{Object.entries(aboutData.traits).map(([key, trait]) => (
<div
key={key}
className="flex items-start gap-3 bg-cyan-900/10 p-2 border border-cyan-500/10 relative overflow-hidden group"
>
{/* Corner marker */}
<div className="absolute top-0 right-0 w-2 h-2 border-t border-r border-cyan-500/30" />
<div className="mt-1 shrink-0">
{trait.icon && (
<trait.icon
size={20}
className={
key === 'kryptonite'
? 'text-red-400'
: 'text-cyan-300'
}
/>
)}
</div>
<div>
<div className="text-[9px] font-bold text-cyan-500 uppercase mb-0.5 tracking-wider">
{key}
</div>
<div className="text-xs font-bold text-white mb-1 leading-tight">
{trait.title}
</div>
<div className="text-[9px] text-white/50 leading-tight line-clamp-3 group-hover:line-clamp-none transition-all bg-[#001e40]/50">
{trait.desc}
</div>
</div>
</div>
))}
{/* Stats Module */}
<div className="grid grid-cols-2 gap-2 content-start">
{aboutData.stats.map((stat, i) => (
<div
key={i}
className="bg-cyan-900/30 p-2 text-center border border-cyan-500/30 flex flex-col justify-center h-full"
>
<div className="text-[9px] text-cyan-200 uppercase">
{stat.label}
</div>
<div className="text-lg font-bold text-white">
{stat.value}
</div>
</div>
))}
</div>
{/* Links Module */}
<div className="grid grid-cols-2 gap-2 content-start">
{aboutData.profile.links &&
aboutData.profile.links.map((link, i) => (
<a
key={i}
href={link.url}
target="_blank"
rel="noreferrer"
className="flex flex-col items-center justify-center gap-1 bg-[#001e40] border border-cyan-500/30 p-2 hover:bg-cyan-500/20 transition-colors group h-full"
>
<link.icon
size={20}
className="text-cyan-400 group-hover:text-white"
/>
<span className="text-[9px] text-cyan-200 group-hover:text-white uppercase tracking-wider">
{link.label}
</span>
</a>
))}
</div>
</div>
</SchematicBox>
</div>
</div>
</div>
);
};
export default SystemArchitecture;