-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBrufezPanelsPage.jsx
More file actions
238 lines (225 loc) · 9.3 KB
/
BrufezPanelsPage.jsx
File metadata and controls
238 lines (225 loc) · 9.3 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
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import { motion, AnimatePresence } from 'framer-motion';
import {
ArrowLeftIcon,
CaretRightIcon,
CircleIcon,
HexagonIcon,
SquareIcon,
TriangleIcon,
FlaskIcon,
} from '@phosphor-icons/react';
import Seo from '../components/Seo';
import BreadcrumbTitle from '../components/BreadcrumbTitle';
import GenerativeArt from '../components/GenerativeArt';
const panelData = [
{
id: '01',
title: 'STRUCTURAL_GRID',
description:
'The primary organizational unit of Brufez. Hard boundaries, 1px lines, and absolute positioning protocols.',
icon: SquareIcon,
artSeed: 'grid_system',
},
{
id: '02',
title: 'NEURAL_ART',
description:
'Generative mathematics acting as an organic counter-balance to the rigid structural grid.',
icon: HexagonIcon,
artSeed: 'math_art',
},
{
id: '03',
title: 'STATUS_SYNC',
description:
'High-frequency telemetry and state communication via chromatic shifts and pulse animations.',
icon: CircleIcon,
artSeed: 'telemetry',
},
{
id: '04',
title: 'BINARY_INPUT',
description:
'Raw terminal-inspired control interfaces. Dropdowns, sliders, and buttons with immediate systemic feedback.',
icon: TriangleIcon,
artSeed: 'control_io',
},
];
const BrufezPanelsPage = () => {
const [activeItem, setActiveCommand] = useState(panelData[0]);
return (
<div className="flex min-h-screen bg-[#050505] text-white overflow-hidden relative selection:bg-emerald-500/30">
<Seo
title="Brufez | Two-Panel Layout"
description="Demonstration of the Brufez dual-panel architecture for information-dense interfaces."
keywords={[
'Brufez',
'design system',
'layout',
'two-panel',
'brutalist',
]}
/>
{/* LEFT PANEL: The Index */}
<div className="w-full xl:pr-[50vw] relative z-10 flex flex-col min-h-screen py-24 px-6 md:pl-20 overflow-y-auto overflow-x-hidden no-scrollbar transition-all duration-300">
<header className="mb-20">
<Link
to="/design/brufez"
className="mb-8 inline-flex items-center gap-2 text-xs font-mono text-gray-500 hover:text-white transition-colors uppercase tracking-widest"
>
<ArrowLeftIcon weight="bold" />
<span>Back_to_Spec</span>
</Link>
<BreadcrumbTitle
title="Layout_Panels"
breadcrumbs={['fc', 'brufez', 'view']}
variant="brutalist"
/>
<p className="text-gray-400 font-mono text-[10px] uppercase tracking-[0.2em] mt-4">
{'//'} DUAL_COLUMN_ARCHITECTURE_PROTOCOL
</p>
</header>
<div className="flex flex-col pb-32 gap-4">
<h2 className="font-mono text-[10px] text-emerald-500 uppercase tracking-[0.4em] mb-4 border-b border-white/10 pb-4">
CORE_ARCHITECTURE_NODES
</h2>
{panelData.map((item) => (
<button
key={item.id}
onMouseEnter={() => setActiveCommand(item)}
onClick={() => setActiveCommand(item)}
className="relative pl-8 py-6 group cursor-pointer text-left border border-white/5 bg-white/[0.01] hover:bg-white/[0.03] transition-all"
>
{/* Active Indicator */}
<div
className={`absolute left-0 top-0 bottom-0 w-1 transition-all duration-300 ${
activeItem?.id === item.id
? 'bg-emerald-500 h-full'
: 'bg-transparent h-0 group-hover:h-full group-hover:bg-white/20'
}`}
/>
<div className="flex items-center justify-between pr-8">
<div className="flex items-center gap-6">
<span
className={`font-mono text-xs transition-colors ${activeItem?.id === item.id ? 'text-emerald-500' : 'text-gray-700'}`}
>
{item.id}
</span>
<h3
className={`text-2xl font-black tracking-tighter uppercase transition-all duration-300 ${
activeItem?.id === item.id
? 'text-white translate-x-2'
: 'text-gray-500 group-hover:text-gray-300'
}`}
>
{item.title}
</h3>
</div>
<div
className={`transition-all duration-300 ${activeItem?.id === item.id ? 'opacity-100 translate-x-0' : 'opacity-0 -translate-x-4'}`}
>
<CaretRightIcon
weight="bold"
className="text-emerald-500"
size={24}
/>
</div>
</div>
</button>
))}
</div>
<div className="mt-auto pt-20 border-t border-white/10 text-gray-800 font-mono text-[9px] uppercase tracking-[0.5em]">
VIEW_ID: Brufez_v1.0.4 // NODE_ALPHA
</div>
</div>
{/* RIGHT PANEL: The Stage (Desktop Only) */}
<div className="hidden xl:flex fixed right-0 top-0 h-screen w-1/2 bg-[#050505] overflow-hidden border-l border-white/10 z-20 flex-col">
<div className="flex-1 relative overflow-hidden">
<AnimatePresence mode="wait">
{activeItem && (
<motion.div
key={activeItem.id}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.4 }}
className="absolute inset-0 flex flex-col justify-end p-20"
>
{/* Background Art */}
<div className="absolute inset-0 z-0 overflow-hidden">
<GenerativeArt
seed={activeItem.artSeed}
className="w-full h-full opacity-40 scale-150 filter grayscale"
/>
<div className="absolute inset-0 bg-gradient-to-t from-[#050505] via-transparent to-[#050505]/40" />
{/* Subtle Noise */}
<div
className="absolute inset-0 opacity-[0.03] pointer-events-none"
style={{
backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E")`,
}}
/>
</div>
<div className="relative z-10 space-y-12">
<div className="flex items-center gap-4">
<div className="p-4 border border-emerald-500/20 bg-emerald-500/10">
<activeItem.icon
size={48}
weight="fill"
className="text-emerald-500"
/>
</div>
<div className="h-px flex-grow bg-white/10" />
</div>
<div className="space-y-6">
<h2 className="text-7xl font-black text-white uppercase tracking-tighter leading-none m-0">
{activeItem.title}
</h2>
<p className="text-xl text-gray-400 font-light leading-relaxed max-w-xl">
{activeItem.description}
</p>
</div>
<div className="pt-8 border-t border-white/5 flex gap-12 font-mono">
<div className="flex flex-col gap-1">
<span className="text-[10px] text-gray-600 uppercase tracking-widest">
Comp_Type
</span>
<span className="text-xs font-bold text-white">
LAYOUT_CORE
</span>
</div>
<div className="flex flex-col gap-1">
<span className="text-[10px] text-gray-600 uppercase tracking-widest">
Art_Seed
</span>
<span className="text-xs font-bold text-emerald-500 uppercase">
{activeItem.artSeed}
</span>
</div>
</div>
</div>
</motion.div>
)}
</AnimatePresence>
</div>
{/* Panel Footer */}
<div className="p-12 border-t border-white/10 bg-black/50 backdrop-blur-md z-30 flex items-center justify-between">
<div className="flex items-center gap-4">
<FlaskIcon size={24} weight="fill" className="text-emerald-500" />
<span className="font-mono text-[10px] uppercase tracking-[0.4em] text-gray-500">
Brufez_Stage_Subroutine
</span>
</div>
<div className="flex gap-4">
<div className="w-2 h-2 bg-emerald-500 animate-pulse" />
<div className="w-2 h-2 bg-white/10" />
<div className="w-2 h-2 bg-white/10" />
</div>
</div>
</div>
</div>
);
};
export default BrufezPanelsPage;