|
| 1 | +import React from 'react'; |
| 2 | +import { motion } from 'framer-motion'; |
| 3 | +import { aboutData } from './aboutData'; |
| 4 | +import { |
| 5 | + Cpu, |
| 6 | + HardDrives, |
| 7 | + Circuitry, |
| 8 | + ShareNetwork, |
| 9 | + Lightning, |
| 10 | +} from '@phosphor-icons/react'; |
| 11 | + |
| 12 | +const BlueprintGrid = () => ( |
| 13 | + <div className="absolute inset-0 z-0 pointer-events-none opacity-30"> |
| 14 | + <div |
| 15 | + className="w-full h-full" |
| 16 | + style={{ |
| 17 | + backgroundImage: ` |
| 18 | + linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), |
| 19 | + linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px) |
| 20 | + `, |
| 21 | + backgroundSize: '40px 40px' |
| 22 | + }} |
| 23 | + /> |
| 24 | + <div |
| 25 | + className="absolute inset-0 w-full h-full" |
| 26 | + style={{ |
| 27 | + backgroundImage: ` |
| 28 | + linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), |
| 29 | + linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) |
| 30 | + `, |
| 31 | + backgroundSize: '10px 10px' |
| 32 | + }} |
| 33 | + /> |
| 34 | + </div> |
| 35 | +); |
| 36 | + |
| 37 | +const SchematicBox = ({ title, children, className = '', icon: Icon, delay = 0 }) => ( |
| 38 | + <motion.div |
| 39 | + initial={{ opacity: 0, scale: 0.95 }} |
| 40 | + animate={{ opacity: 1, scale: 1 }} |
| 41 | + transition={{ duration: 0.5, delay }} |
| 42 | + className={`relative border-2 border-white/80 bg-[#002b5c]/50 backdrop-blur-sm p-4 ${className}`} |
| 43 | + > |
| 44 | + {/* Technical Markers */} |
| 45 | + <div className="absolute -top-1 -left-1 w-2 h-2 bg-white" /> |
| 46 | + <div className="absolute -top-1 -right-1 w-2 h-2 bg-white" /> |
| 47 | + <div className="absolute -bottom-1 -left-1 w-2 h-2 bg-white" /> |
| 48 | + <div className="absolute -bottom-1 -right-1 w-2 h-2 bg-white" /> |
| 49 | + |
| 50 | + {/* Connector Nodes (Decorative) */} |
| 51 | + <div className="absolute top-1/2 -left-3 w-4 h-4 rounded-full border-2 border-white bg-[#002b5c]" /> |
| 52 | + <div className="absolute top-1/2 -right-3 w-4 h-4 rounded-full border-2 border-white bg-[#002b5c]" /> |
| 53 | + |
| 54 | + {/* Header */} |
| 55 | + <div className="flex items-center gap-2 border-b border-white/30 pb-2 mb-3"> |
| 56 | + {Icon && <Icon size={20} className="text-cyan-300" />} |
| 57 | + <h3 className="font-mono text-sm uppercase tracking-widest text-cyan-300 font-bold"> |
| 58 | + {title} |
| 59 | + </h3> |
| 60 | + <div className="flex-grow h-px bg-white/30 ml-2" /> |
| 61 | + <span className="text-[10px] text-white/50 font-mono">FIG.{Math.floor(Math.random() * 99)}</span> |
| 62 | + </div> |
| 63 | + |
| 64 | + {children} |
| 65 | + </motion.div> |
| 66 | +); |
| 67 | + |
| 68 | +const ConnectorLine = ({ className }) => ( |
| 69 | + <div className={`absolute bg-white/50 z-0 ${className}`} /> |
| 70 | +); |
| 71 | + |
| 72 | +const SystemArchitecture = () => { |
| 73 | + return ( |
| 74 | + <div className="relative min-h-screen bg-[#001e40] text-white overflow-hidden p-8 pt-24 font-mono selection:bg-cyan-500 selection:text-black"> |
| 75 | + <BlueprintGrid /> |
| 76 | + |
| 77 | + {/* Decorative Blueprint Header */} |
| 78 | + <div className="absolute bottom-8 right-8 border-2 border-white p-4 max-w-sm hidden md:block opacity-70"> |
| 79 | + <div className="text-xs uppercase grid grid-cols-[80px_1fr] gap-y-1"> |
| 80 | + <span className="text-white/60">Project:</span> |
| 81 | + <span className="font-bold">FEZ.ARCH.V1</span> |
| 82 | + <span className="text-white/60">Architect:</span> |
| 83 | + <span className="font-bold">{aboutData.profile.name}</span> |
| 84 | + <span className="text-white/60">Date:</span> |
| 85 | + <span>{new Date().toLocaleDateString()}</span> |
| 86 | + <span className="text-white/60">Scale:</span> |
| 87 | + <span>1:100</span> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + |
| 91 | + <div className="relative z-10 max-w-6xl mx-auto h-full grid grid-cols-1 md:grid-cols-12 gap-8 md:gap-y-16 items-start"> |
| 92 | + |
| 93 | + {/* Central Processing Unit (Profile) */} |
| 94 | + <div className="col-span-1 md:col-span-4 md:col-start-5 relative"> |
| 95 | + <SchematicBox title="Core Processor" icon={Cpu} className="z-10 bg-[#001e40]"> |
| 96 | + <div className="flex flex-col items-center text-center p-4"> |
| 97 | + <div className="w-24 h-24 border-2 border-dashed border-cyan-400 rounded-full flex items-center justify-center mb-4 relative"> |
| 98 | + <div className="absolute inset-0 animate-spin-slow border-t-2 border-cyan-400 rounded-full opacity-50"></div> |
| 99 | + <span className="text-4xl">⚡</span> |
| 100 | + </div> |
| 101 | + <h1 className="text-xl font-bold uppercase mb-1">{aboutData.profile.name}</h1> |
| 102 | + <p className="text-xs text-cyan-200 tracking-wider mb-4">{aboutData.profile.role}</p> |
| 103 | + <div className="w-full bg-white/10 p-2 text-[10px] text-left"> |
| 104 | + <p>> SYS.INIT...</p> |
| 105 | + <p>> LOADING DRIVERS...</p> |
| 106 | + <p>> {aboutData.profile.tagline}</p> |
| 107 | + </div> |
| 108 | + </div> |
| 109 | + </SchematicBox> |
| 110 | + {/* Vertical Connector Down */} |
| 111 | + <ConnectorLine className="h-16 w-0.5 left-1/2 -bottom-16 hidden md:block" /> |
| 112 | + </div> |
| 113 | + |
| 114 | + {/* Experience Modules (Left Wing) */} |
| 115 | + <div className="col-span-1 md:col-span-4 relative"> |
| 116 | + <ConnectorLine className="h-0.5 w-16 -right-8 top-12 hidden md:block" /> |
| 117 | + <SchematicBox title="Memory Banks (Exp)" icon={HardDrives} delay={0.2}> |
| 118 | + <div className="space-y-4"> |
| 119 | + {aboutData.experience.map((exp, i) => ( |
| 120 | + <div key={i} className="relative pl-4 border-l border-white/20"> |
| 121 | + <div className="absolute left-[-5px] top-1.5 w-2 h-2 bg-cyan-400 rounded-full" /> |
| 122 | + <div className="flex justify-between items-baseline mb-1"> |
| 123 | + <span className="font-bold text-sm">{exp.company}</span> |
| 124 | + <span className="text-[10px] bg-white/10 px-1">{exp.period}</span> |
| 125 | + </div> |
| 126 | + <div className="text-xs text-cyan-200 mb-1">{exp.role}</div> |
| 127 | + <p className="text-[10px] text-white/70 leading-relaxed">{exp.desc}</p> |
| 128 | + </div> |
| 129 | + ))} |
| 130 | + </div> |
| 131 | + </SchematicBox> |
| 132 | + </div> |
| 133 | + |
| 134 | + {/* Skills Modules (Right Wing) */} |
| 135 | + <div className="col-span-1 md:col-span-4 relative"> |
| 136 | + <ConnectorLine className="h-0.5 w-16 -left-8 top-12 hidden md:block" /> |
| 137 | + <SchematicBox title="I/O Interfaces (Skills)" icon={Circuitry} delay={0.3}> |
| 138 | + <div className="grid grid-cols-2 gap-3"> |
| 139 | + {aboutData.skills.map((skill, i) => ( |
| 140 | + <div key={i} className="bg-white/5 border border-white/10 p-2 flex flex-col justify-between h-20 relative overflow-hidden group"> |
| 141 | + <div className="absolute top-0 right-0 p-1 opacity-20 group-hover:opacity-100 transition-opacity"> |
| 142 | + {skill.icon && <skill.icon size={16} />} |
| 143 | + </div> |
| 144 | + <span className="text-xs font-bold z-10">{skill.name}</span> |
| 145 | + <div className="w-full bg-black/50 h-1.5 mt-2"> |
| 146 | + <div className="bg-cyan-400 h-full" style={{ width: `${skill.level}%` }} /> |
| 147 | + </div> |
| 148 | + <span className="text-[9px] text-right mt-1 font-mono">{skill.level}% EFFICIENCY</span> |
| 149 | + </div> |
| 150 | + ))} |
| 151 | + </div> |
| 152 | + </SchematicBox> |
| 153 | + </div> |
| 154 | + |
| 155 | + {/* Stats / Traits (Bottom) */} |
| 156 | + <div className="col-span-1 md:col-span-8 md:col-start-3 relative mt-8"> |
| 157 | + <SchematicBox title="Auxiliary Systems" icon={ShareNetwork} delay={0.4}> |
| 158 | + <div className="grid grid-cols-1 md:grid-cols-3 gap-6"> |
| 159 | + {/* Superpower */} |
| 160 | + <div className="border border-white/20 p-3 relative"> |
| 161 | + <div className="absolute -top-3 left-4 bg-[#002b5c] px-2 text-xs text-cyan-300">SPECIAL_ABILITY</div> |
| 162 | + <div className="flex items-center gap-3 mb-2"> |
| 163 | + <Lightning size={24} className="text-yellow-400" /> |
| 164 | + <div className="font-bold text-sm">{aboutData.traits.superpower.title}</div> |
| 165 | + </div> |
| 166 | + <p className="text-[10px] text-white/70">{aboutData.traits.superpower.desc}</p> |
| 167 | + </div> |
| 168 | + |
| 169 | + {/* Hobby */} |
| 170 | + <div className="border border-white/20 p-3 relative"> |
| 171 | + <div className="absolute -top-3 left-4 bg-[#002b5c] px-2 text-xs text-cyan-300">AUDIO_DRIVER</div> |
| 172 | + <div className="font-bold text-sm mb-2">{aboutData.traits.hobby.title}</div> |
| 173 | + <p className="text-[10px] text-white/70">{aboutData.traits.hobby.desc}</p> |
| 174 | + </div> |
| 175 | + |
| 176 | + {/* Stats */} |
| 177 | + <div className="grid grid-cols-2 gap-2"> |
| 178 | + {aboutData.stats.map((stat, i) => ( |
| 179 | + <div key={i} className="bg-cyan-900/30 p-2 text-center border border-cyan-500/30"> |
| 180 | + <div className="text-[10px] text-cyan-200">{stat.label}</div> |
| 181 | + <div className="text-lg font-bold">{stat.value}</div> |
| 182 | + </div> |
| 183 | + ))} |
| 184 | + </div> |
| 185 | + </div> |
| 186 | + </SchematicBox> |
| 187 | + </div> |
| 188 | + |
| 189 | + </div> |
| 190 | + </div> |
| 191 | + ); |
| 192 | +}; |
| 193 | + |
| 194 | +export default SystemArchitecture; |
0 commit comments