czak89 commited on
Commit
4cf0004
·
verified ·
1 Parent(s): 4859842

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +494 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Web Developer
3
- emoji: 🐠
4
- colorFrom: purple
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: web-developer
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,494 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Interactive Capabilities Showcase</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ :root {
11
+ --primary: #6c5ce7;
12
+ --secondary: #a29bfe;
13
+ --dark: #2d3436;
14
+ --light: #f5f6fa;
15
+ --accent: #fd79a8;
16
+ --success: #00b894;
17
+ }
18
+
19
+ * {
20
+ margin: 0;
21
+ padding: 0;
22
+ box-sizing: border-box;
23
+ }
24
+
25
+ body {
26
+ font-family: 'Poppins', sans-serif;
27
+ background-color: var(--light);
28
+ color: var(--dark);
29
+ line-height: 1.6;
30
+ overflow-x: hidden;
31
+ }
32
+
33
+ .container {
34
+ max-width: 1200px;
35
+ margin: 0 auto;
36
+ padding: 2rem;
37
+ }
38
+
39
+ header {
40
+ text-align: center;
41
+ margin-bottom: 3rem;
42
+ position: relative;
43
+ }
44
+
45
+ h1 {
46
+ font-size: 3rem;
47
+ margin-bottom: 1rem;
48
+ background: linear-gradient(45deg, var(--primary), var(--accent));
49
+ -webkit-background-clip: text;
50
+ background-clip: text;
51
+ color: transparent;
52
+ position: relative;
53
+ display: inline-block;
54
+ }
55
+
56
+ h1::after {
57
+ content: '';
58
+ position: absolute;
59
+ bottom: -10px;
60
+ left: 50%;
61
+ transform: translateX(-50%);
62
+ width: 100px;
63
+ height: 4px;
64
+ background: linear-gradient(90deg, var(--primary), var(--accent));
65
+ border-radius: 2px;
66
+ }
67
+
68
+ .tagline {
69
+ font-size: 1.2rem;
70
+ color: var(--dark);
71
+ opacity: 0.8;
72
+ max-width: 700px;
73
+ margin: 0 auto;
74
+ }
75
+
76
+ .capabilities-grid {
77
+ display: grid;
78
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
79
+ gap: 2rem;
80
+ margin-top: 3rem;
81
+ }
82
+
83
+ .capability-card {
84
+ background: white;
85
+ border-radius: 15px;
86
+ overflow: hidden;
87
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
88
+ transition: all 0.3s ease;
89
+ cursor: pointer;
90
+ position: relative;
91
+ z-index: 1;
92
+ }
93
+
94
+ .capability-card:hover {
95
+ transform: translateY(-10px);
96
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
97
+ }
98
+
99
+ .card-header {
100
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
101
+ color: white;
102
+ padding: 1.5rem;
103
+ display: flex;
104
+ align-items: center;
105
+ }
106
+
107
+ .card-icon {
108
+ font-size: 2rem;
109
+ margin-right: 1rem;
110
+ width: 50px;
111
+ height: 50px;
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ border-radius: 50%;
116
+ background-color: rgba(255, 255, 255, 0.2);
117
+ }
118
+
119
+ .card-title {
120
+ font-size: 1.3rem;
121
+ font-weight: 600;
122
+ }
123
+
124
+ .card-body {
125
+ padding: 1.5rem;
126
+ }
127
+
128
+ .card-description {
129
+ margin-bottom: 1.5rem;
130
+ color: #555;
131
+ }
132
+
133
+ .examples-list {
134
+ list-style: none;
135
+ }
136
+
137
+ .examples-list li {
138
+ padding: 0.5rem 0;
139
+ position: relative;
140
+ padding-left: 1.5rem;
141
+ }
142
+
143
+ .examples-list li::before {
144
+ content: '\f00c';
145
+ font-family: 'Font Awesome 6 Free';
146
+ font-weight: 900;
147
+ position: absolute;
148
+ left: 0;
149
+ top: 0.5rem;
150
+ color: var(--success);
151
+ }
152
+
153
+ .interactive-demo {
154
+ margin-top: 4rem;
155
+ text-align: center;
156
+ }
157
+
158
+ .demo-container {
159
+ background: white;
160
+ border-radius: 15px;
161
+ padding: 2rem;
162
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
163
+ margin-top: 1.5rem;
164
+ }
165
+
166
+ .code-editor {
167
+ background: #2d3436;
168
+ color: white;
169
+ border-radius: 10px;
170
+ padding: 1rem;
171
+ font-family: monospace;
172
+ text-align: left;
173
+ margin: 1rem 0;
174
+ position: relative;
175
+ overflow: hidden;
176
+ }
177
+
178
+ .code-toolbar {
179
+ position: absolute;
180
+ top: 10px;
181
+ right: 10px;
182
+ display: flex;
183
+ }
184
+
185
+ .code-btn {
186
+ width: 12px;
187
+ height: 12px;
188
+ border-radius: 50%;
189
+ margin-left: 6px;
190
+ }
191
+
192
+ .red { background: #ff5f56; }
193
+ .yellow { background: #ffbd2e; }
194
+ .green { background: #27c93f; }
195
+
196
+ .preview-container {
197
+ margin: 2rem 0;
198
+ }
199
+
200
+ .toggle-buttons {
201
+ display: flex;
202
+ justify-content: center;
203
+ margin-bottom: 1rem;
204
+ }
205
+
206
+ .toggle-btn {
207
+ padding: 0.5rem 1.5rem;
208
+ background: white;
209
+ border: none;
210
+ border-radius: 30px;
211
+ margin: 0 0.5rem;
212
+ cursor: pointer;
213
+ font-weight: 600;
214
+ transition: all 0.3s ease;
215
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
216
+ }
217
+
218
+ .toggle-btn.active {
219
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
220
+ color: white;
221
+ box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
222
+ }
223
+
224
+ .toggle-btn:hover:not(.active) {
225
+ background: #f1f1f1;
226
+ }
227
+
228
+ footer {
229
+ text-align: center;
230
+ margin-top: 4rem;
231
+ padding: 2rem 0;
232
+ border-top: 1px solid #eee;
233
+ color: #777;
234
+ }
235
+
236
+ @media (max-width: 768px) {
237
+ h1 {
238
+ font-size: 2rem;
239
+ }
240
+
241
+ .tagline {
242
+ font-size: 1rem;
243
+ }
244
+
245
+ .capabilities-grid {
246
+ grid-template-columns: 1fr;
247
+ }
248
+ }
249
+ </style>
250
+ </head>
251
+ <body>
252
+ <div class="container">
253
+ <header>
254
+ <h1>What I Can Do</h1>
255
+ <p class="tagline">Here's a showcase of my capabilities using just HTML, CSS, and JavaScript - with some modern UI flair!</p>
256
+ </header>
257
+
258
+ <div class="capabilities-grid">
259
+ <div class="capability-card">
260
+ <div class="card-header">
261
+ <div class="card-icon">
262
+ <i class="fas fa-paint-brush"></i>
263
+ </div>
264
+ <h3 class="card-title">Creative Design</h3>
265
+ </div>
266
+ <div class="card-body">
267
+ <p class="card-description">Crafting visually appealing, responsive interfaces with modern design principles and animations.</p>
268
+ <ul class="examples-list">
269
+ <li>Interactive UI Components</li>
270
+ <li>Custom Animations</li>
271
+ <li>Responsive Layouts</li>
272
+ <li>Theming Systems</li>
273
+ <li>Visual Effects</li>
274
+ </ul>
275
+ </div>
276
+ </div>
277
+
278
+ <div class="capability-card">
279
+ <div class="card-header">
280
+ <div class="card-icon">
281
+ <i class="fas fa-code"></i>
282
+ </div>
283
+ <h3 class="card-title">Frontend Development</h3>
284
+ </div>
285
+ <div class="card-body">
286
+ <p class="card-description">Building functional, interactive web experiences with clean, maintainable code.</p>
287
+ <ul class="examples-list">
288
+ <li>DOM Manipulation</li>
289
+ <li>Event Handling</li>
290
+ <li>Form Validation</li>
291
+ <li>API Integrations</li>
292
+ <li>Dynamic Content</li>
293
+ </ul>
294
+ </div>
295
+ </div>
296
+
297
+ <div class="capability-card">
298
+ <div class="card-header">
299
+ <div class="card-icon">
300
+ <i class="fas fa-mobile-alt"></i>
301
+ </div>
302
+ <h3 class="card-title">Mobile-First Approach</h3>
303
+ </div>
304
+ <div class="card-body">
305
+ <p class="card-description">Prioritizing mobile experience with responsive designs that adapt to any screen size.</p>
306
+ <ul class="examples-list">
307
+ <li>Flexible Grids</li>
308
+ <li>Media Queries</li>
309
+ <li>Touch Interactions</li>
310
+ <li>Viewport Optimization</li>
311
+ <li>Performance Tuning</li>
312
+ </ul>
313
+ </div>
314
+ </div>
315
+ </div>
316
+
317
+ <div class="interactive-demo">
318
+ <h2>Try It Out</h2>
319
+ <p>See a live example of interactive capabilities:</p>
320
+
321
+ <div class="demo-container">
322
+ <div class="toggle-buttons">
323
+ <button class="toggle-btn active" data-content="css">CSS Magic</button>
324
+ <button class="toggle-btn" data-content="js">JavaScript Power</button>
325
+ <button class="toggle-btn" data-content="ui">UI Components</button>
326
+ </div>
327
+
328
+ <div class="preview-container">
329
+ <div class="code-editor">
330
+ <div class="code-toolbar">
331
+ <span class="code-btn red"></span>
332
+ <span class="code-btn yellow"></span>
333
+ <span class="code-btn green"></span>
334
+ </div>
335
+ <div id="code-display">
336
+ <pre><code id="code-content">/* Hover over the cards to see animations */
337
+ .capability-card {
338
+ transition: all 0.3s ease;
339
+ }
340
+
341
+ .capability-card:hover {
342
+ transform: translateY(-10px);
343
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
344
+ }</code></pre>
345
+ </div>
346
+ </div>
347
+
348
+ <div id="demo-visual">
349
+ <div class="visual-container" style="text-align: center; padding: 2rem;">
350
+ <div style="display: inline-block; width: 100px; height: 100px; background: linear-gradient(135deg, #6c5ce7, #a29bfe); border-radius: 15px; transition: all 0.5s ease;"></div>
351
+ <p style="margin-top: 1rem;">Hover over the colored box to see CSS transitions</p>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </div>
358
+
359
+ <footer>
360
+ <p>Built with <i class="fas fa-heart" style="color: var(--accent);"></i> using just HTML, CSS, and JavaScript</p>
361
+ </footer>
362
+
363
+ <script>
364
+ document.addEventListener('DOMContentLoaded', function() {
365
+ // Toggle buttons functionality
366
+ const toggleBtns = document.querySelectorAll('.toggle-btn');
367
+ const codeContent = document.getElementById('code-content');
368
+ const demoVisual = document.getElementById('demo-visual');
369
+
370
+ // Demo content for each button
371
+ const demoContents = {
372
+ css: {
373
+ code: `/* Hover over the cards to see animations */
374
+ .capability-card {
375
+ transition: all 0.3s ease;
376
+ }
377
+
378
+ .capability-card:hover {
379
+ transform: translateY(-10px);
380
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
381
+ }`,
382
+ visual: `<div class="visual-container" style="text-align: center; padding: 2rem;">
383
+ <div style="display: inline-block; width: 100px; height: 100px; background: linear-gradient(135deg, #6c5ce7, #a29bfe); border-radius: 15px; transition: all 0.5s ease;"></div>
384
+ <p style="margin-top: 1rem;">Hover over the colored box to see CSS transitions</p>
385
+ </div>`
386
+ },
387
+ js: {
388
+ code: `// Color changing animation
389
+ const box = document.querySelector('.color-box');
390
+ let hue = 0;
391
+
392
+ function changeColor() {
393
+ hue = (hue + 1) % 360;
394
+ box.style.backgroundColor = \`hsl(\${hue}, 80%, 60%)\`;
395
+ requestAnimationFrame(changeColor);
396
+ }
397
+
398
+ changeColor();`,
399
+ visual: `<div class="visual-container" style="text-align: center; padding: 2rem;">
400
+ <div class="color-box" style="display: inline-block; width: 100px; height: 100px; border-radius: 15px;"></div>
401
+ <p style="margin-top: 1rem;">Watch the JavaScript-driven color animation</p>
402
+ </div>`
403
+ },
404
+ ui: {
405
+ code: `// Modal component
406
+ function openModal() {
407
+ document.getElementById('modal').classList.add('active');
408
+ }
409
+
410
+ function closeModal() {
411
+ document.getElementById('modal').classList.remove('active');
412
+ }`,
413
+ visual: `<div class="visual-container" style="text-align: center; padding: 2rem;">
414
+ <button onclick="showDemoModal()" style="padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; border: none; border-radius: 30px; cursor: pointer; font-weight: 600;">Open Modal</button>
415
+ <p style="margin-top: 1rem;">Click the button to see a modal component</p>
416
+ </div>`
417
+ }
418
+ };
419
+
420
+ // Add click events to toggle buttons
421
+ toggleBtns.forEach(btn => {
422
+ btn.addEventListener('click', function() {
423
+ // Remove active class from all buttons
424
+ toggleBtns.forEach(b => b.classList.remove('active'));
425
+ // Add active class to clicked button
426
+ this.classList.add('active');
427
+
428
+ // Get the content type
429
+ const contentType = this.getAttribute('data-content');
430
+
431
+ // Update the displayed content
432
+ codeContent.textContent = demoContents[contentType].code;
433
+ demoVisual.innerHTML = demoContents[contentType].visual;
434
+
435
+ // If JS content is selected, run the animation
436
+ if (contentType === 'js') {
437
+ startColorAnimation();
438
+ }
439
+ });
440
+ });
441
+
442
+ // Color animation function for JS demo
443
+ function startColorAnimation() {
444
+ const box = demoVisual.querySelector('.color-box');
445
+ if (box) {
446
+ let hue = 0;
447
+
448
+ function changeColor() {
449
+ hue = (hue + 1) % 360;
450
+ box.style.backgroundColor = `hsl(${hue}, 80%, 60%)`;
451
+ requestAnimationFrame(changeColor);
452
+ }
453
+
454
+ changeColor();
455
+ }
456
+ }
457
+
458
+ // Modal demo function for UI demo
459
+ window.showDemoModal = function() {
460
+ const modalHTML = `
461
+ <div id="demo-modal" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000;">
462
+ <div style="background: white; padding: 2rem; border-radius: 15px; max-width: 400px; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative;">
463
+ <button onclick="closeDemoModal()" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.5rem; cursor: pointer;">&times;</button>
464
+ <h3 style="margin-bottom: 1rem;">Modal Title</h3>
465
+ <p>This is a custom modal dialog created with pure JavaScript!</p>
466
+ </div>
467
+ </div>
468
+ `;
469
+
470
+ const modalContainer = document.createElement('div');
471
+ modalContainer.innerHTML = modalHTML;
472
+ document.body.appendChild(modalContainer);
473
+
474
+ window.closeDemoModal = function() {
475
+ document.body.removeChild(modalContainer);
476
+ }
477
+ }
478
+
479
+ // Add hover effect to the CSS demo box
480
+ demoVisual.addEventListener('mouseover', function(e) {
481
+ if (e.target.matches('.visual-container div')) {
482
+ e.target.style.transform = 'scale(1.2) rotate(10deg)';
483
+ }
484
+ });
485
+
486
+ demoVisual.addEventListener('mouseout', function(e) {
487
+ if (e.target.matches('.visual-container div')) {
488
+ e.target.style.transform = '';
489
+ }
490
+ });
491
+ });
492
+ </script>
493
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <a href="https://enzostvs-deepsite.hf.space" style="color: #fff;" target="_blank" >DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>
494
+ </html>