-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
608 lines (561 loc) · 29.2 KB
/
index.html
File metadata and controls
608 lines (561 loc) · 29.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
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TreeZip - ASCII Tree to ZIP Generator</title>
<meta name="description" content="Convert ASCII tree diagrams into downloadable ZIP file structures instantly">
<script src="lib/react.production.min.js"></script>
<script src="lib/react-dom.production.min.js"></script>
<script src="lib/babel.min.js"></script>
<script src="lib/jszip.min.js"></script>
<script src="lib/TailWind-3.4.17.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="icon" type="image/svg+xml"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='5' rx='2'/%3E%3Cpath d='M4 9v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9'/%3E%3Cpath d='M10 13h4'/%3E%3C/svg%3E" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.gradient-bg {
background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
.glass {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.glow {
box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.float {
animation: float 6s ease-in-out infinite;
}
.tree-line {
border-left: 2px solid #e5e7eb;
padding-left: 1rem;
margin-left: 0.5rem;
}
textarea::-webkit-scrollbar {
width: 8px;
}
textarea::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 10px;
}
textarea::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 10px;
}
textarea::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState } = React;
// Lucide Icons as SVG components
const FolderTree = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path>
<path d="M2 10h20"></path>
</svg>
);
const FileText = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
<line x1="16" y1="13" x2="8" y2="13"></line>
<line x1="16" y1="17" x2="8" y2="17"></line>
<line x1="10" y1="9" x2="8" y2="9"></line>
</svg>
);
const Archive = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<rect x="2" y="4" width="20" height="5" rx="2"></rect>
<path d="M4 9v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9"></path>
<path d="M10 13h4"></path>
</svg>
);
const Sparkles = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"></path>
<path d="M5 3v4"></path>
<path d="M19 17v4"></path>
<path d="M3 5h4"></path>
<path d="M17 19h4"></path>
</svg>
);
const Zap = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
</svg>
);
const Sun = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<circle cx="12" cy="12" r="4"></circle>
<path d="M12 2v2"></path>
<path d="M12 20v2"></path>
<path d="m4.93 4.93 1.41 1.41"></path>
<path d="m17.66 17.66 1.41 1.41"></path>
<path d="M2 12h2"></path>
<path d="M20 12h2"></path>
<path d="m6.34 17.66-1.41 1.41"></path>
<path d="m19.07 4.93-1.41 1.41"></path>
</svg>
);
const Moon = ({ className }) => (
<svg className={className} width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path>
</svg>
);
const App = () => {
const [darkMode, setDarkMode] = useState(false);
const [input, setInput] = useState('');
const [structure, setStructure] = useState(null);
const [isGenerating, setIsGenerating] = useState(false);
const [stats, setStats] = useState({ folders: 0, files: 0 });
const parseTree = (treeText) => {
const lines = treeText.split('\n').filter(line => line.trim());
const root = { name: 'root', type: 'folder', children: [], path: '' };
const stack = [{ node: root, depth: -1 }];
let folderCount = 0;
let fileCount = 0;
lines.forEach(line => {
const cleaned = line.replace(/[│├└─\s]/g, match => {
if (match === ' ') return ' ';
return '';
}).trim();
if (!cleaned) return;
const leadingSpaces = line.search(/[├└│]/) !== -1 ?
line.substring(0, line.search(/[├└]/)).replace(/[^│]/g, ' ').length : 0;
const depth = Math.floor(leadingSpaces / 4);
const isFolder = cleaned.endsWith('/');
const name = isFolder ? cleaned.slice(0, -1) : cleaned;
const type = isFolder ? 'folder' : 'file';
if (isFolder) folderCount++;
else fileCount++;
while (stack.length > 0 && stack[stack.length - 1].depth >= depth) {
stack.pop();
}
const parent = stack[stack.length - 1].node;
const path = parent.path ? `${parent.path}/${name}` : name;
const node = { name, type, children: [], path };
parent.children.push(node);
if (isFolder) {
stack.push({ node, depth });
}
});
setStats({ folders: folderCount, files: fileCount });
return root.children;
};
const generateStructure = () => {
try {
const parsed = parseTree(input);
setStructure(parsed);
} catch (error) {
alert('Error parsing tree structure. Please check your input format.');
}
};
const generateAndDownloadZip = async () => {
if (!structure) {
alert('Please generate structure first!');
return;
}
if (!window.JSZip) {
alert('ZIP library is still loading. Please wait a moment and try again.');
return;
}
setIsGenerating(true);
try {
const zip = new JSZip();
const addToZip = (nodes, currentPath = '') => {
nodes.forEach(node => {
const fullPath = currentPath ? `${currentPath}/${node.name}` : node.name;
if (node.type === 'folder') {
zip.folder(fullPath);
if (node.children.length > 0) {
addToZip(node.children, fullPath);
}
} else {
zip.file(fullPath, '');
}
});
};
addToZip(structure);
const content = await zip.generateAsync({ type: 'blob' });
const url = URL.createObjectURL(content);
const a = document.createElement('a');
a.href = url;
a.download = 'project-structure.zip';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
setIsGenerating(false);
} catch (error) {
console.error('Error generating zip:', error);
alert('Error generating zip file. Please try again.');
setIsGenerating(false);
}
};
const renderTree = (nodes, depth = 0) => {
return nodes.map((node, idx) => (
<div key={idx} style={{ marginLeft: `${depth * 20}px` }} className="py-1 group">
<div className={`flex items-center gap-2 rounded px-2 py-1 transition-all ${
darkMode
? 'hover:bg-purple-900/30'
: 'hover:bg-gradient-to-r hover:from-purple-50 hover:to-transparent'
}`}>
{node.type === 'folder' ? (
<FolderTree className={`w-4 h-4 ${darkMode ? 'text-purple-400' : 'text-purple-600'}`} />
) : (
<FileText className={`w-4 h-4 ${darkMode ? 'text-blue-400' : 'text-blue-500'}`} />
)}
<span className={`${
node.type === 'folder'
? darkMode ? 'font-semibold text-purple-300' : 'font-semibold text-purple-700'
: darkMode ? 'text-gray-300' : 'text-gray-700'
}`}>
{node.name}{node.type === 'folder' ? '/' : ''}
</span>
</div>
{node.children.length > 0 && (
<div className={`tree-line ${darkMode ? 'border-gray-700' : 'border-gray-200'}`}>
{renderTree(node.children, depth + 1)}
</div>
)}
</div>
));
};
return (
<div className={`min-h-screen transition-colors duration-300 ${
darkMode
? 'bg-gradient-to-br from-gray-900 via-purple-900 to-gray-900'
: 'gradient-bg'
}`}>
{/* Floating decoration elements */}
<div className={`fixed top-20 left-10 w-72 h-72 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-pulse ${
darkMode ? 'bg-purple-500' : 'bg-purple-300'
}`}></div>
<div className={`fixed top-40 right-10 w-72 h-72 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-pulse ${
darkMode ? 'bg-blue-500' : 'bg-blue-300'
}`} style={{ animationDelay: '1s' }}></div>
<div className={`fixed bottom-20 left-1/2 w-72 h-72 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-pulse ${
darkMode ? 'bg-pink-500' : 'bg-pink-300'
}`} style={{ animationDelay: '2s' }}></div>
<div className="relative min-h-screen p-4 sm:p-6 lg:p-8">
<div className="max-w-7xl mx-auto">
{/* Dark Mode Toggle Button */}
<div className="absolute top-4 right-4 z-50">
<button
onClick={() => setDarkMode(!darkMode)}
className={`p-3 rounded-full transition-all transform hover:scale-110 active:scale-95 shadow-lg ${
darkMode
? 'bg-gray-800 text-yellow-400 hover:bg-gray-700'
: 'bg-white text-purple-600 hover:bg-purple-50'
}`}
aria-label="Toggle dark mode"
>
{darkMode ? <Sun className="w-6 h-6" /> : <Moon className="w-6 h-6" />}
</button>
</div>
{/* Header */}
<div className="text-center mb-8 sm:mb-12 pt-8">
<div className="inline-block float mb-4">
<div className={`p-4 rounded-2xl shadow-2xl ${
darkMode
? 'bg-gradient-to-r from-purple-600 to-blue-600'
: 'bg-gradient-to-r from-purple-600 to-blue-600'
}`}>
<Archive className="w-12 h-12 text-white" />
</div>
</div>
<h1 className={`text-4xl sm:text-5xl lg:text-6xl font-extrabold mb-3 tracking-tight ${
darkMode ? 'text-white' : 'text-white'
}`}>
Tree<span className="text-yellow-300">Zip</span>
</h1>
<p className={`text-lg sm:text-xl mb-2 font-medium ${
darkMode ? 'text-gray-200' : 'text-white'
}`}>
ASCII Tree → ZIP Structure Generator
</p>
<p className={`text-sm sm:text-base max-w-2xl mx-auto ${
darkMode ? 'text-gray-400' : 'text-white/80'
}`}>
Convert your project structure diagrams into actual file hierarchies instantly
</p>
{/* Stats badges */}
{structure && (
<div className="flex justify-center gap-3 mt-6">
<div className={`rounded-full px-4 py-2 flex items-center gap-2 ${
darkMode
? 'bg-gray-800/80 backdrop-blur-sm border border-gray-700'
: 'glass'
}`}>
<FolderTree className={`w-4 h-4 ${darkMode ? 'text-purple-400' : 'text-purple-600'}`} />
<span className={`text-sm font-semibold ${darkMode ? 'text-gray-200' : 'text-gray-700'}`}>
{stats.folders} folders
</span>
</div>
<div className={`rounded-full px-4 py-2 flex items-center gap-2 ${
darkMode
? 'bg-gray-800/80 backdrop-blur-sm border border-gray-700'
: 'glass'
}`}>
<FileText className={`w-4 h-4 ${darkMode ? 'text-blue-400' : 'text-blue-600'}`} />
<span className={`text-sm font-semibold ${darkMode ? 'text-gray-200' : 'text-gray-700'}`}>
{stats.files} files
</span>
</div>
</div>
)}
</div>
{/* Main Content */}
<div className="grid md:grid-cols-2 gap-6 lg:gap-8">
{/* Input Section */}
<div className={`rounded-3xl shadow-2xl p-6 sm:p-8 transform hover:scale-[1.01] transition-all ${
darkMode
? 'bg-gray-800/80 backdrop-blur-sm border border-gray-700'
: 'glass'
}`}>
<div className="flex items-center gap-3 mb-6">
<div className={`p-2 rounded-xl ${
darkMode
? 'bg-gradient-to-r from-purple-600 to-blue-600'
: 'bg-gradient-to-r from-purple-600 to-blue-600'
}`}>
<Sparkles className="w-5 h-5 text-white" />
</div>
<h2 className={`text-2xl font-bold ${darkMode ? 'text-white' : 'text-gray-800'}`}>
Input ASCII Tree
</h2>
</div>
<textarea
value={input}
onChange={(e) => setInput(e.target.value)}
className={`w-full h-80 sm:h-96 p-4 rounded-2xl font-mono text-sm transition-all resize-none ${
darkMode
? 'bg-gray-900 border-2 border-gray-700 text-gray-200 focus:ring-4 focus:ring-purple-500 focus:border-purple-500 placeholder-gray-500'
: 'border-2 border-purple-200 focus:ring-4 focus:ring-purple-300 focus:border-purple-400 placeholder-gray-400'
}`}
placeholder={`├── public/
│ └── vite.svg
├── src/
│ ├── api/
│ │ ├── client.ts
│ │ ├── auth.ts
│ │ └── profile.ts
│ ├── components/
│ │ ├── ui/
│ │ │ ├── Button.tsx
│ │ │ ├── Input.tsx
│ │ │ ├── Card.tsx
│ │ │ └── Modal.tsx
│ │ └── layout/
│ │ ├── Sidebar.tsx
│ │ └── Topbar.tsx
│ ├── context/
│ │ └── AuthContext.tsx
│ ├── hooks/
│ │ └── useAuth.ts
│ └── pages/
│ ├── auth/
│ │ ├── LoginPage.tsx
│ │ └── RegisterPage.tsx
│ └── DashboardPage.tsx`}
/>
<button
onClick={generateStructure}
className="mt-6 w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white font-bold py-4 px-6 rounded-2xl transition-all transform hover:scale-105 active:scale-95 flex items-center justify-center gap-3 shadow-xl glow"
>
<Zap className="w-5 h-5" />
Generate Structure
</button>
</div>
{/* Output Section */}
<div className={`rounded-3xl shadow-2xl p-6 sm:p-8 transform hover:scale-[1.01] transition-all ${
darkMode
? 'bg-gray-800/80 backdrop-blur-sm border border-gray-700'
: 'glass'
}`}>
<div className="flex items-center gap-3 mb-6">
<div className={`p-2 rounded-xl ${
darkMode
? 'bg-gradient-to-r from-green-600 to-emerald-600'
: 'bg-gradient-to-r from-green-600 to-emerald-600'
}`}>
<FolderTree className="w-5 h-5 text-white" />
</div>
<h2 className={`text-2xl font-bold ${darkMode ? 'text-white' : 'text-gray-800'}`}>
Preview & Download
</h2>
</div>
{structure ? (
<>
<div className={`h-80 sm:h-96 overflow-y-auto rounded-2xl p-4 mb-6 transition-all ${
darkMode
? 'border-2 border-gray-700 bg-gradient-to-br from-gray-900 to-purple-900/30 hover:border-purple-500'
: 'border-2 border-purple-200 bg-gradient-to-br from-white to-purple-50 hover:border-purple-300'
}`}>
{renderTree(structure)}
</div>
<button
onClick={generateAndDownloadZip}
disabled={isGenerating}
className="w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 disabled:from-gray-400 disabled:to-gray-500 text-white font-bold py-4 px-6 rounded-2xl transition-all transform hover:scale-105 active:scale-95 disabled:scale-100 flex items-center justify-center gap-3 shadow-xl glow"
>
{isGenerating ? (
<>
<div className="animate-spin rounded-full h-5 w-5 border-b-2 border-white"></div>
Generating ZIP...
</>
) : (
<>
<Archive className="w-5 h-5" />
Download ZIP File
</>
)}
</button>
<div className={`mt-4 p-4 rounded-2xl ${
darkMode
? 'bg-gradient-to-r from-green-900/30 to-emerald-900/30 border-2 border-green-700'
: 'bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-200'
}`}>
<div className="flex items-start gap-3">
<div className="p-1 bg-green-600 rounded-lg mt-0.5">
<svg className="w-4 h-4 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M5 13l4 4L19 7"></path>
</svg>
</div>
<p className={`text-sm font-medium ${darkMode ? 'text-green-300' : 'text-green-800'}`}>
Ready to download! Click the button above to get your complete project structure as a ZIP file.
</p>
</div>
</div>
</>
) : (
<div className={`h-80 sm:h-96 flex items-center justify-center border-2 border-dashed rounded-2xl ${
darkMode
? 'border-gray-700 bg-gradient-to-br from-gray-900 to-purple-900/30 text-gray-500'
: 'border-purple-200 bg-gradient-to-br from-white to-purple-50 text-gray-400'
}`}>
<div className="text-center p-8">
<div className="inline-block float mb-4">
<FolderTree className="w-16 h-16 mx-auto opacity-30" />
</div>
<p className="text-lg font-medium">Generate structure to see preview</p>
<p className="text-sm mt-2">Paste your tree and click the button →</p>
</div>
</div>
)}
</div>
</div>
{/* How to Use Section */}
<div className={`mt-8 lg:mt-12 rounded-3xl shadow-2xl p-6 sm:p-8 ${
darkMode
? 'bg-gray-800/80 backdrop-blur-sm border border-gray-700'
: 'glass'
}`}>
<h3 className={`text-2xl font-bold mb-6 flex items-center gap-3 ${
darkMode ? 'text-white' : 'text-gray-800'
}`}>
<span className="text-3xl">🚀</span>
How to Use
</h3>
<div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-4">
{[
{ num: '01', title: 'Paste Tree', desc: 'Copy your ASCII tree structure (folders end with /)', color: 'purple' },
{ num: '02', title: 'Generate', desc: 'Click to parse and preview your structure', color: 'blue' },
{ num: '03', title: 'Download', desc: 'Get your ZIP with the complete hierarchy', color: 'green' },
{ num: '04', title: 'Extract & Code', desc: 'Unzip and start building instantly!', color: 'yellow' }
].map((step, idx) => (
<div key={idx} className={`p-4 rounded-2xl transition-all ${
darkMode
? `bg-gradient-to-br from-${step.color}-900/20 to-gray-900/20 border-2 border-${step.color}-800 hover:border-${step.color}-600`
: `bg-gradient-to-br from-${step.color}-50 to-white border-2 border-${step.color}-100 hover:border-${step.color}-300`
}`}>
<div className={`text-2xl font-bold mb-2 ${
darkMode ? `text-${step.color}-400` : `text-${step.color}-600`
}`}>{step.num}</div>
<h4 className={`font-semibold mb-1 ${darkMode ? 'text-white' : 'text-gray-800'}`}>
{step.title}
</h4>
<p className={`text-sm ${darkMode ? 'text-gray-400' : 'text-gray-600'}`}>
{step.desc}
</p>
</div>
))}
</div>
</div>
{/* Footer */}
<div className={`mt-8 text-center text-sm ${
darkMode ? 'text-gray-400' : 'text-white/80'
}`}>
<p>Made with ❤️ for developers who love automation</p>
</div>
</div>
</div>
<style>{`
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.gradient-bg {
background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
.glass {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.glow {
box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.float {
animation: float 6s ease-in-out infinite;
}
.tree-line {
border-left: 2px solid;
padding-left: 1rem;
margin-left: 0.5rem;
}
`}</style>
</div>
);
};
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
</script>
</body>
</html>