-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodenameGeneratorPage.jsx
More file actions
393 lines (376 loc) · 9.74 KB
/
CodenameGeneratorPage.jsx
File metadata and controls
393 lines (376 loc) · 9.74 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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import {
ArrowLeftIcon,
CopyIcon,
ArrowsClockwiseIcon,
ShieldCheckIcon,
} from '@phosphor-icons/react';
import { useToast } from '../../hooks/useToast';
import Seo from '../../components/Seo';
import GenerativeArt from '../../components/GenerativeArt';
import BreadcrumbTitle from '../../components/BreadcrumbTitle';
const prefixes = [
'Operation',
'Project',
'Protocol',
'Directive',
'Initiative',
'Task Force',
'Unit',
'Division',
'Cell',
'Asset',
'Red',
'Blue',
'Green',
'Black',
'White',
'Gold',
'Silver',
'Bronze',
'Neural',
];
const nouns = [
'Nexus',
'Viper',
'Phoenix',
'Shadow',
'Ghost',
'Spectre',
'Wraith',
'Raven',
'Crow',
'Jackal',
'Cobra',
'Hydra',
'Cerberus',
'Aegis',
'Shield',
'Sword',
'Dagger',
'Arrow',
'Spear',
'Javelin',
'Trident',
'Hammer',
'Anvil',
'Crucible',
'Avalanche',
'Blizzard',
'Cyclone',
'Hurricane',
'Tornado',
'Typhoon',
'Earthquake',
'Volcano',
'Tsunami',
'Genesis',
'Exodus',
'Leviathan',
'Behemoth',
'Goliath',
'Titan',
'Colossus',
'Gargantua',
'Prometheus',
'Icarus',
'Daedalus',
'Orpheus',
'Morpheus',
'Nyx',
'Erebus',
'Hades',
'Styx',
'Charon',
'Thanatos',
'Valkyrie',
'Ragnarok',
'Valhalla',
'Asgard',
'Midgard',
'Jotunheim',
'Fenrir',
'Jormungandr',
'Sleipnir',
'Paperclip',
'Viking',
'Survival',
'Overlord',
'Neptune',
'Barbarossa',
'Stalingrad',
'Kursk',
'Midway',
'Normandy',
'Market Garden',
'Watchtower',
'Downfall',
'Unthinkable',
'Crossbow',
'Mincemeat',
'Fortitude',
'Dragon',
'Wyvern',
'Griffin',
'Chimera',
'Manticore',
'Basilisk',
'Kraken',
'Scylla',
'Charybdis',
'Sun',
'Moon',
'Star',
'Comet',
'Nebula',
'Galaxy',
'Quasar',
'Pulsar',
'Supernova',
'Storm',
'Tempest',
'Maelstrom',
'Vortex',
'Singularity',
'Event Horizon',
'Black Hole',
'Nomad',
'Wanderer',
'Ronin',
'Samurai',
'Ninja',
'Shinobi',
'Kunoichi',
'Gladiator',
'Centurion',
'Legionnaire',
'Spartan',
'Hoplite',
'Phalanx',
'Crusader',
'Paladin',
'Templar',
'Inquisitor',
'Exorcist',
'Warlock',
'Sorcerer',
'Mage',
'Wizard',
'Archmage',
'Necromancer',
'Druid',
'Shaman',
'Witch Doctor',
'Oracle',
'Seer',
'Prophet',
'Bard',
'Skald',
'Troubadour',
'Minstrel',
'Thief',
'Rogue',
'Assassin',
'Cutthroat',
'Bandit',
'Outlaw',
'Pirate',
'Corsair',
'Privateer',
'Buccaneer',
'Freebooter',
'Rebel',
'Insurgent',
'Guerrilla',
'Freedom Fighter',
'Revolutionary',
'Anarchist',
'Nihilist',
'Terrorist',
'Extremist',
'Cyborg',
'Android',
'Robot',
'Mech',
'Drone',
'Mutant',
'Chimera',
'Hybrid',
'Abomination',
'Vampire',
'Werewolf',
'Lich',
'Ghoul',
'Zombie',
'Angel',
'Demon',
'Devil',
'Archon',
'Seraph',
'Nephilim',
'God',
'Goddess',
'Deity',
'Avatar',
'Primordial',
'Serpent',
'Owl',
'Hawk',
'Viper',
'Hunter',
'Orchid',
'Fox',
'Mamba',
'Phoenix',
'Wind',
];
const CodenameGeneratorPage = () => {
const [codename, setCodename] = useState('');
const { addToast } = useToast();
useEffect(() => {
generateCodename();
}, []);
const generateCodename = () => {
const prefix = prefixes[Math.floor(Math.random() * prefixes.length)];
const noun = nouns[Math.floor(Math.random() * nouns.length)];
setCodename(`${prefix} ${noun}`);
};
const handleCopy = async () => {
try {
await navigator.clipboard.writeText(codename);
addToast({
title: 'Success',
message: 'Identifier stored in clipboard.',
});
} catch (err) {
addToast({
title: 'Failure',
message: 'Failed to copy name.',
type: 'error',
});
}
};
return (
<div className="min-h-screen bg-[#050505] text-white selection:bg-emerald-500/30 font-sans">
<Seo
title="Codename Gen | Fezcodex"
description="Protocol for generating unique operation identifiers and strategic nomenclature."
keywords={[
'Fezcodex',
'codename generator',
'random name generator',
'project names',
]}
/>
<div className="mx-auto max-w-7xl px-6 py-24 md:px-12">
<header className="mb-24">
<Link
to="/apps"
className="group mb-12 inline-flex items-center gap-2 text-xs font-mono text-gray-500 hover:text-white transition-colors uppercase tracking-[0.3em]"
>
<ArrowLeftIcon
weight="bold"
className="transition-transform group-hover:-translate-x-1"
/>
<span>Applications</span>
</Link>
<div className="flex flex-col md:flex-row md:items-end justify-between gap-12">
<div className="space-y-4">
<BreadcrumbTitle
title="Operation Gen"
slug="cg"
variant="brutalist"
/>
<p className="text-xl text-gray-400 max-w-2xl font-light leading-relaxed">
Strategic identifier protocol. Generate unique nomenclature for
classified operations, system assets, and neural modules.
</p>
</div>
</div>
</header>
<div className="grid grid-cols-1 lg:grid-cols-12 gap-12">
{/* Main Interaction Area */}
<div className="lg:col-span-8">
<div className="relative border border-white/10 bg-white/[0.02] p-12 md:p-24 rounded-sm overflow-hidden group flex flex-col items-center justify-center">
{/* Generative Background */}
<div className="absolute inset-0 opacity-[0.03] pointer-events-none grayscale">
<GenerativeArt seed={codename} className="w-full h-full" />
</div>
<div className="relative z-10 w-full flex flex-col items-center gap-16">
<div className="text-center space-y-4">
<span className="font-mono text-[10px] text-emerald-500 font-bold uppercase tracking-[0.5em]">
{'//'} ASSIGNED_IDENTIFIER
</span>
<div className="text-5xl md:text-8xl font-black tracking-tighter text-white uppercase leading-none border-b-8 border-white pb-4">
{codename}
</div>
</div>
<div className="flex flex-wrap justify-center gap-6">
<button
onClick={generateCodename}
className="group relative inline-flex items-center gap-4 px-12 py-6 bg-white text-black hover:bg-emerald-400 transition-all duration-300 font-mono uppercase tracking-widest text-sm font-black rounded-sm shadow-[0_0_30px_rgba(255,255,255,0.05)]"
>
<ArrowsClockwiseIcon
weight="bold"
size={24}
className="group-hover:rotate-180 transition-transform duration-500"
/>
<span>Map New Alias</span>
</button>
<button
onClick={handleCopy}
disabled={!codename}
className="group relative inline-flex items-center gap-4 px-12 py-6 border border-white/10 text-white hover:bg-white/5 transition-all duration-300 font-mono uppercase tracking-widest text-sm font-bold rounded-sm disabled:opacity-20"
>
<CopyIcon weight="bold" size={24} />
<span>Store Mapping</span>
</button>
</div>
</div>
</div>
</div>
{/* Side Module */}
<div className="lg:col-span-4 space-y-8">
<div className="border border-white/10 bg-white/[0.02] p-8 rounded-sm">
<h3 className="font-mono text-[10px] font-bold text-emerald-500 uppercase tracking-widest mb-8 flex items-center gap-2">
<ShieldCheckIcon weight="fill" />
Assignment_Parameters
</h3>
<div className="space-y-6">
<div className="space-y-2 pb-6 border-b border-white/5">
<span className="font-mono text-[10px] text-gray-600 uppercase">
Context
</span>
<p className="text-white font-black uppercase tracking-tight">
Classified_Operational
</p>
</div>
<div className="space-y-2">
<span className="font-mono text-[10px] text-gray-600 uppercase">
Source
</span>
<p className="text-white font-black uppercase tracking-tight">
Linguistic_Matrix_V2
</p>
</div>
</div>
</div>
<div className="p-8 border border-white/10 bg-white/[0.01] rounded-sm">
<p className="text-[10px] font-mono uppercase tracking-[0.2em] leading-relaxed text-gray-500">
Identifiers are generated through a semantic pairing algorithm.
This ensures distinct nomenclature for tracking and security
purposes.
</p>
</div>
</div>
</div>
<footer className="mt-32 pt-12 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6 text-gray-600 font-mono text-[10px] uppercase tracking-[0.3em]">
<span>Fezcodex_Alias_Engine_v0.6.1</span>
<span className="text-gray-800">ASSIGNMENT_STATUS // CONFIRMED</span>
</footer>
</div>
</div>
);
};
export default CodenameGeneratorPage;