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|
|
1 |
+
|
2 |
+
|
3 |
+
<!DOCTYPE html>
|
4 |
+
<html lang="en">
|
5 |
+
<head>
|
6 |
+
<meta charset="UTF-8">
|
7 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
+
<title>Dynamic Profile</title>
|
9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
11 |
+
<style>
|
12 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
13 |
+
|
14 |
+
* {
|
15 |
+
margin: 0;
|
16 |
+
padding: 0;
|
17 |
+
box-sizing: border-box;
|
18 |
+
font-family: 'Poppins', sans-serif;
|
19 |
+
}
|
20 |
+
|
21 |
+
body {
|
22 |
+
background: linear-gradient(135deg, #1a1a2e, #16213e);
|
23 |
+
color: #fff;
|
24 |
+
overflow-x: hidden;
|
25 |
+
}
|
26 |
+
|
27 |
+
.gradient-text {
|
28 |
+
background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
|
29 |
+
-webkit-background-clip: text;
|
30 |
+
background-clip: text;
|
31 |
+
color: transparent;
|
32 |
+
}
|
33 |
+
|
34 |
+
.card {
|
35 |
+
background: rgba(255, 255, 255, 0.05);
|
36 |
+
backdrop-filter: blur(10px);
|
37 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
38 |
+
border-radius: 20px;
|
39 |
+
transition: all 0.4s ease;
|
40 |
+
}
|
41 |
+
|
42 |
+
.card:hover {
|
43 |
+
transform: translateY(-10px);
|
44 |
+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
|
45 |
+
}
|
46 |
+
|
47 |
+
.progress-bar {
|
48 |
+
height: 8px;
|
49 |
+
border-radius: 4px;
|
50 |
+
background: rgba(255, 255, 255, 0.1);
|
51 |
+
overflow: hidden;
|
52 |
+
}
|
53 |
+
|
54 |
+
.progress-fill {
|
55 |
+
height: 100%;
|
56 |
+
border-radius: 4px;
|
57 |
+
background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
|
58 |
+
animation: progress-animation 1.5s ease-out forwards;
|
59 |
+
transform-origin: left;
|
60 |
+
transform: scaleX(0);
|
61 |
+
}
|
62 |
+
|
63 |
+
@keyframes progress-animation {
|
64 |
+
to { transform: scaleX(1); }
|
65 |
+
}
|
66 |
+
|
67 |
+
.floating {
|
68 |
+
animation: float 3s ease-in-out infinite;
|
69 |
+
}
|
70 |
+
|
71 |
+
@keyframes float {
|
72 |
+
0% { transform: translateY(0px); }
|
73 |
+
50% { transform: translateY(-15px); }
|
74 |
+
100% { transform: translateY(0px); }
|
75 |
+
}
|
76 |
+
|
77 |
+
.blob {
|
78 |
+
position: absolute;
|
79 |
+
border-radius: 50%;
|
80 |
+
filter: blur(60px);
|
81 |
+
z-index: -1;
|
82 |
+
opacity: 0.5;
|
83 |
+
}
|
84 |
+
|
85 |
+
.typewriter {
|
86 |
+
overflow: hidden;
|
87 |
+
border-right: 2px solid #4ecdc4;
|
88 |
+
white-space: nowrap;
|
89 |
+
margin: 0 auto;
|
90 |
+
animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
|
91 |
+
}
|
92 |
+
|
93 |
+
@keyframes typing {
|
94 |
+
from { width: 0 }
|
95 |
+
to { width: 100% }
|
96 |
+
}
|
97 |
+
|
98 |
+
@keyframes blink-caret {
|
99 |
+
from, to { border-color: transparent }
|
100 |
+
50% { border-color: #4ecdc4 }
|
101 |
+
}
|
102 |
+
</style>
|
103 |
+
</head>
|
104 |
+
<body class="min-h-screen">
|
105 |
+
<!-- Background Blobs -->
|
106 |
+
<div class="blob bg-purple-600" style="width: 300px; height: 300px; top: 20%; left: 10%;"></div>
|
107 |
+
<div class="blob bg-blue-500" style="width: 250px; height: 250px; bottom: 10%; right: 15%;"></div>
|
108 |
+
|
109 |
+
<!-- Header -->
|
110 |
+
<header class="fixed top-0 left-0 w-full z-50 bg-opacity-10 bg-black backdrop-blur-lg border-b border-white/10">
|
111 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
112 |
+
<div class="text-2xl font-bold">
|
113 |
+
<span class="gradient-text">duongkum999</span>
|
114 |
+
</div>
|
115 |
+
<nav class="hidden md:flex space-x-8">
|
116 |
+
<a href="#home" class="text-white hover:text-gray-300 transition">Home</a>
|
117 |
+
<a href="#about" class="text-white hover:text-gray-300 transition">About</a>
|
118 |
+
<a href="#skills" class="text-white hover:text-gray-300 transition">Skills</a>
|
119 |
+
<a href="#projects" class="text-white hover:text-gray-300 transition">Projects</a>
|
120 |
+
</nav>
|
121 |
+
<button class="md:hidden text-white text-2xl" id="menu-toggle">
|
122 |
+
<i class="fas fa-bars"></i>
|
123 |
+
</button>
|
124 |
+
</div>
|
125 |
+
<!-- Mobile Menu -->
|
126 |
+
<div id="mobile-menu" class="hidden md:hidden bg-[#16213e] w-full">
|
127 |
+
<div class="container mx-auto px-4 py-4 flex flex-col space-y-4">
|
128 |
+
<a href="#home" class="text-white hover:text-gray-300 transition">Home</a>
|
129 |
+
<a href="#about" class="text-white hover:text-gray-300 transition">About</a>
|
130 |
+
<a href="#skills" class="text-white hover:text-gray-300 transition">Skills</a>
|
131 |
+
<a href="#projects" class="text-white hover:text-gray-300 transition">Projects</a>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
</header>
|
135 |
+
|
136 |
+
<!-- Hero Section -->
|
137 |
+
<section id="home" class="min-h-screen flex items-center justify-center pt-20">
|
138 |
+
<div class="container mx-auto px-4 py-16 flex flex-col md:flex-row items-center">
|
139 |
+
<div class="md:w-1/2 mb-10 md:mb-0 text-center md:text-left">
|
140 |
+
<p class="text-gray-300 mb-4 tracking-wider">Hello, I'm</p>
|
141 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6">
|
142 |
+
<span class="gradient-text typewriter">Dun</span>
|
143 |
+
</h1>
|
144 |
+
<h2 class="text-2xl md:text-3xl text-gray-300 mb-8">
|
145 |
+
<span id="typed-text" class="font-light"></span>
|
146 |
+
</h2>
|
147 |
+
<div class="flex flex-wrap gap-4 justify-center md:justify-start">
|
148 |
+
<a href="#projects" class="px-8 py-3 bg-gradient-to-r from-pink-500 to-purple-600 rounded-full text-white font-medium hover:opacity-90 transition transform hover:scale-105">
|
149 |
+
My Work
|
150 |
+
</a>
|
151 |
+
</div>
|
152 |
+
<div class="mt-12 flex space-x-6 justify-center md:justify-start">
|
153 |
+
<a href="#" class="text-2xl text-white hover:text-pink-500 transition">
|
154 |
+
<i class="fab fa-github"></i>
|
155 |
+
</a>
|
156 |
+
<a href="#" class="text-2xl text-white hover:text-pink-500 transition">
|
157 |
+
<i class="fab fa-linkedin"></i>
|
158 |
+
</a>
|
159 |
+
<a href="#" class="text-2xl text-white hover:text-pink-500 transition">
|
160 |
+
<i class="fab fa-twitter"></i>
|
161 |
+
</a>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
<div class="md:w-1/2 relative">
|
165 |
+
<div class="w-64 h-64 md:w-80 md:h-80 mx-auto relative">
|
166 |
+
<div class="absolute inset-0 bg-gradient-to-br from-pink-500 to-purple-600 rounded-full opacity-20 animate-pulse"></div>
|
167 |
+
<img src="https://api.dicebear.com/6.x/avataaars/svg?seed=Alex&backgroundColor=b6e3f4" alt="Profile" class="absolute inset-10 w-44 h-44 md:w-60 md:h-60 mx-auto floating">
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</section>
|
172 |
+
|
173 |
+
<!-- About Section -->
|
174 |
+
<section id="about" class="py-20">
|
175 |
+
<div class="container mx-auto px-4">
|
176 |
+
<div class="text-center mb-16">
|
177 |
+
<h2 class="text-4xl font-bold mb-4">About <span class="gradient-text">Me</span></h2>
|
178 |
+
<div class="w-24 h-1 bg-gradient-to-r from-pink-500 to-purple-600 mx-auto"></div>
|
179 |
+
</div>
|
180 |
+
<div class="flex flex-col md:flex-row items-center gap-10">
|
181 |
+
<div class="md:w-1/2">
|
182 |
+
<div class="card p-6 h-full">
|
183 |
+
<h3 class="text-2xl font-semibold mb-4">Who am I?</h3>
|
184 |
+
<p class="text-gray-300 mb-4">
|
185 |
+
I'm a passionate frontend developer with -1 years of experience creating beautiful and functional web applications. I specialize in modern JavaScript frameworks and have a keen eye for design.
|
186 |
+
</p>
|
187 |
+
<div class="grid grid-cols-2 gap-4 mt-6">
|
188 |
+
<div>
|
189 |
+
<p class="text-gray-400 mb-1">Name:</p>
|
190 |
+
<p class="font-medium">Nguyễn Đăng DƯơng</p>
|
191 |
+
</div>
|
192 |
+
<div>
|
193 |
+
<p class="text-gray-400 mb-1">Email:</p>
|
194 |
+
<p class="font-medium">lab70018@gmail.com</p>
|
195 |
+
</div>
|
196 |
+
<div>
|
197 |
+
<p class="text-gray-400 mb-1">From:</p>
|
198 |
+
<p class="font-medium">Lạng Sơn, VN</p>
|
199 |
+
</div>
|
200 |
+
<div>
|
201 |
+
<p class="text-gray-400 mb-1">Experience:</p>
|
202 |
+
<p class="font-medium">-1 Years</p>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<div class="md:w-1/2">
|
208 |
+
<div class="grid grid-cols-2 gap-6">
|
209 |
+
<div class="card p-6 text-center transform transition hover:scale-105">
|
210 |
+
<div class="text-4xl text-pink-500 mb-4">
|
211 |
+
<i class="fas fa-code"></i>
|
212 |
+
</div>
|
213 |
+
<h4 class="text-xl font-semibold mb-2">Web Development</h4>
|
214 |
+
</div>
|
215 |
+
<div class="card p-6 text-center transform transition hover:scale-105">
|
216 |
+
<div class="text-4xl text-blue-500 mb-4">
|
217 |
+
<i class="fas fa-paint-brush"></i>
|
218 |
+
</div>
|
219 |
+
<h4 class="text-xl font-semibold mb-2">UI/UX Design</h4>
|
220 |
+
</div>
|
221 |
+
<div class="card p-6 text-center transform transition hover:scale-105">
|
222 |
+
<div class="text-4xl text-purple-500 mb-4">
|
223 |
+
<i class="fas fa-mobile-alt"></i>
|
224 |
+
</div>
|
225 |
+
<h4 class="text-xl font-semibold mb-2">Responsive Design</h4>
|
226 |
+
</div>
|
227 |
+
<div class="card p-6 text-center transform transition hover:scale-105">
|
228 |
+
<div class="text-4xl text-green-500 mb-4">
|
229 |
+
<i class="fas fa-rocket"></i>
|
230 |
+
</div>
|
231 |
+
<h4 class="text-xl font-semibold mb-2">Performance</h4>
|
232 |
+
</div>
|
233 |
+
</div>
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
+
</section>
|
238 |
+
|
239 |
+
<!-- Skills Section -->
|
240 |
+
<section id="skills" class="py-20 bg-black/20">
|
241 |
+
<div class="container mx-auto px-4">
|
242 |
+
<div class="text-center mb-16">
|
243 |
+
<h2 class="text-4xl font-bold mb-4">My <span class="gradient-text">Skills</span></h2>
|
244 |
+
<div class="w-24 h-1 bg-gradient-to-r from-pink-500 to-purple-600 mx-auto"></div>
|
245 |
+
</div>
|
246 |
+
<div class="card p-8 max-w-3xl mx-auto">
|
247 |
+
<div class="space-y-6">
|
248 |
+
<div>
|
249 |
+
<div class="flex justify-between mb-2">
|
250 |
+
<span class="font-medium">HTML/CSS</span>
|
251 |
+
<span>95%</span>
|
252 |
+
</div>
|
253 |
+
<div class="progress-bar">
|
254 |
+
<div class="progress-fill" style="width: 95%"></div>
|
255 |
+
</div>
|
256 |
+
</div>
|
257 |
+
<div>
|
258 |
+
<div class="flex justify-between mb-2">
|
259 |
+
<span class="font-medium">JavaScript</span>
|
260 |
+
<span>90%</span>
|
261 |
+
</div>
|
262 |
+
<div class="progress-bar">
|
263 |
+
<div class="progress-fill" style="width: 90%"></div>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
<div>
|
267 |
+
<div class="flex justify-between mb-2">
|
268 |
+
<span class="font-medium">React</span>
|
269 |
+
<span>85%</span>
|
270 |
+
</div>
|
271 |
+
<div class="progress-bar">
|
272 |
+
<div class="progress-fill" style="width: 85%"></div>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
<div>
|
276 |
+
<div class="flex justify-between mb-2">
|
277 |
+
<span class="font-medium">Vue.js</span>
|
278 |
+
<span>80%</span>
|
279 |
+
</div>
|
280 |
+
<div class="progress-bar">
|
281 |
+
<div class="progress-fill" style="width: 80%"></div>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
<div>
|
285 |
+
<div class="flex justify-between mb-2">
|
286 |
+
<span class="font-medium">Node.js</span>
|
287 |
+
<span>75%</span>
|
288 |
+
</div>
|
289 |
+
<div class="progress-bar">
|
290 |
+
<div class="progress-fill" style="width: 75%"></div>
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
</div>
|
296 |
+
</section>
|
297 |
+
|
298 |
+
<!-- Projects Section -->
|
299 |
+
<section id="projects" class="py-20">
|
300 |
+
<div class="container mx-auto px-4">
|
301 |
+
<div class="text-center mb-16">
|
302 |
+
<h2 class="text-4xl font-bold mb-4">My <span class="gradient-text">Projects</span></h2>
|
303 |
+
<div class="w-24 h-1 bg-gradient-to-r from-pink-500 to-purple-600 mx-auto"></div>
|
304 |
+
</div>
|
305 |
+
|
306 |
+
<div class="flex justify-center mb-10">
|
307 |
+
<div class="inline-flex bg-white/5 rounded-full p-1">
|
308 |
+
<button class="project-filter px-6 py-2 rounded-full bg-gradient-to-r from-pink-500 to-purple-600 text-white" data-filter="all">All</button>
|
309 |
+
<button class="project-filter px-6 py-2 rounded-full text-white" data-filter="web">Web</button>
|
310 |
+
<button class="project-filter px-6 py-2 rounded-full text-white" data-filter="app">App</button>
|
311 |
+
</div>
|
312 |
+
</div>
|
313 |
+
|
314 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 project-container">
|
315 |
+
<div class="card overflow-hidden project-item" data-category="web">
|
316 |
+
<div class="relative h-64">
|
317 |
+
<div class="absolute inset-0 bg-gradient-to-br from-blue-500 to-purple-600"></div>
|
318 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
319 |
+
<i class="fas fa-globe text-6xl text-white/50"></i>
|
320 |
+
</div>
|
321 |
+
<div class="absolute inset-0 bg-black/70 opacity-0 hover:opacity-100 transition-opacity flex items-center justify-center">
|
322 |
+
<div class="text-center p-4">
|
323 |
+
<h4 class="text-xl font-semibold mb-2">E-commerce Website</h4>
|
324 |
+
<a href="#" class="px-4 py-2 bg-white text-purple-600 rounded-full font-medium hover:bg-opacity-90 transition">View</a>
|
325 |
+
</div>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
|
330 |
+
<div class="card overflow-hidden project-item" data-category="app">
|
331 |
+
<div class="relative h-64">
|
332 |
+
<div class="absolute inset-0 bg-gradient-to-br from-pink-500 to-red-600"></div>
|
333 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
334 |
+
<i class="fas fa-mobile-alt text-6xl text-white/50"></i>
|
335 |
+
</div>
|
336 |
+
<div class="absolute inset-0 bg-black/70 opacity-0 hover:opacity-100 transition-opacity flex items-center justify-center">
|
337 |
+
<div class="text-center p-4">
|
338 |
+
<h4 class="text-xl font-semibold mb-2">Fitness App</h4>
|
339 |
+
<a href="#" class="px-4 py-2 bg-white text-pink-600 rounded-full font-medium hover:bg-opacity-90 transition">View</a>
|
340 |
+
</div>
|
341 |
+
</div>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
|
345 |
+
<div class="card overflow-hidden project-item" data-category="web">
|
346 |
+
<div class="relative h-64">
|
347 |
+
<div class="absolute inset-0 bg-gradient-to-br from-green-500 to-teal-600"></div>
|
348 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
349 |
+
<i class="fas fa-paint-brush text-6xl text-white/50"></i>
|
350 |
+
</div>
|
351 |
+
<div class="absolute inset-0 bg-black/70 opacity-0 hover:opacity-100 transition-opacity flex items-center justify-center">
|
352 |
+
<div class="text-center p-4">
|
353 |
+
<h4 class="text-xl font-semibold mb-2">Brand Identity</h4>
|
354 |
+
<a href="#" class="px-4 py-2 bg-white text-green-600 rounded-full font-medium hover:bg-opacity-90 transition">View</a>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
</div>
|
359 |
+
</div>
|
360 |
+
</div>
|
361 |
+
</section>
|
362 |
+
|
363 |
+
<!-- Footer -->
|
364 |
+
<footer class="py-8 bg-black/40 border-t border-white/10">
|
365 |
+
<div class="container mx-auto px-4">
|
366 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
367 |
+
<div class="text-2xl font-bold mb-4 md:mb-0">
|
368 |
+
<span class="gradient-text">Duongkum999</span>
|
369 |
+
</div>
|
370 |
+
<div class="flex space-x-6">
|
371 |
+
<a href="#" class="text-xl text-white hover:text-pink-500 transition">
|
372 |
+
<i class="fab fa-github"></i>
|
373 |
+
</a>
|
374 |
+
<a href="#" class="text-xl text-white hover:text-pink-500 transition">
|
375 |
+
<i class="fab fa-linkedin"></i>
|
376 |
+
</a>
|
377 |
+
<a href="#" class="text-xl text-white hover:text-pink-500 transition">
|
378 |
+
<i class="fab fa-twitter"></i>
|
379 |
+
</a>
|
380 |
+
</div>
|
381 |
+
</div>
|
382 |
+
<div class="text-center mt-6">
|
383 |
+
<p class="text-gray-400">© 2023 Duongkum999. All rights reserved.</p>
|
384 |
+
</div>
|
385 |
+
</div>
|
386 |
+
</footer>
|
387 |
+
|
388 |
+
<script>
|
389 |
+
// Mobile Menu Toggle
|
390 |
+
const menuToggle = document.getElementById('menu-toggle');
|
391 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
392 |
+
|
393 |
+
menuToggle.addEventListener('click', () => {
|
394 |
+
mobileMenu.classList.toggle('hidden');
|
395 |
+
});
|
396 |
+
|
397 |
+
// Typing Effect
|
398 |
+
const typedTextElement = document.getElementById('typed-text');
|
399 |
+
const phrases = ['Frontend Developer', 'UI/UX Designer', 'Web Enthusiast'];
|
400 |
+
let phraseIndex = 0;
|
401 |
+
let charIndex = 0;
|
402 |
+
let isDeleting = false;
|
403 |
+
|
404 |
+
function typeEffect() {
|
405 |
+
const currentPhrase = phrases[phraseIndex];
|
406 |
+
|
407 |
+
if (isDeleting) {
|
408 |
+
typedTextElement.textContent = currentPhrase.substring(0, charIndex - 1);
|
409 |
+
charIndex--;
|
410 |
+
} else {
|
411 |
+
typedTextElement.textContent = currentPhrase.substring(0, charIndex + 1);
|
412 |
+
charIndex++;
|
413 |
+
}
|
414 |
+
|
415 |
+
if (!isDeleting && charIndex === currentPhrase.length) {
|
416 |
+
isDeleting = true;
|
417 |
+
setTimeout(typeEffect, 1500);
|
418 |
+
} else if (isDeleting && charIndex === 0) {
|
419 |
+
isDeleting = false;
|
420 |
+
phraseIndex = (phraseIndex + 1) % phrases.length;
|
421 |
+
setTimeout(typeEffect, 500);
|
422 |
+
} else {
|
423 |
+
setTimeout(typeEffect, isDeleting ? 50 : 100);
|
424 |
+
}
|
425 |
+
}
|
426 |
+
|
427 |
+
setTimeout(typeEffect, 1000);
|
428 |
+
|
429 |
+
// Smooth Scrolling
|
430 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
431 |
+
anchor.addEventListener('click', function(e) {
|
432 |
+
e.preventDefault();
|
433 |
+
|
434 |
+
const targetId = this.getAttribute('href');
|
435 |
+
const targetElement = document.querySelector(targetId);
|
436 |
+
|
437 |
+
window.scrollTo({
|
438 |
+
top: targetElement.offsetTop - 80,
|
439 |
+
behavior: 'smooth'
|
440 |
+
});
|
441 |
+
|
442 |
+
// Close mobile menu if open
|
443 |
+
if (!mobileMenu.classList.contains('hidden')) {
|
444 |
+
mobileMenu.classList.add('hidden');
|
445 |
+
}
|
446 |
+
});
|
447 |
+
});
|
448 |
+
|
449 |
+
// Project Filtering
|
450 |
+
const filterButtons = document.querySelectorAll('.project-filter');
|
451 |
+
const projectItems = document.querySelectorAll('.project-item');
|
452 |
+
|
453 |
+
filterButtons.forEach(button => {
|
454 |
+
button.addEventListener('click', () => {
|
455 |
+
// Remove active class from all buttons
|
456 |
+
filterButtons.forEach(btn => {
|
457 |
+
btn.classList.remove('bg-gradient-to-r', 'from-pink-500', 'to-purple-600');
|
458 |
+
});
|
459 |
+
|
460 |
+
// Add active class to clicked button
|
461 |
+
button.classList.add('bg-gradient-to-r', 'from-pink-500', 'to-purple-600');
|
462 |
+
|
463 |
+
const filterValue = button.getAttribute('data-filter');
|
464 |
+
|
465 |
+
projectItems.forEach(item => {
|
466 |
+
if (filterValue === 'all' || item.getAttribute('data-category') === filterValue) {
|
467 |
+
item.style.display = 'block';
|
468 |
+
} else {
|
469 |
+
item.style.display = 'none';
|
470 |
+
}
|
471 |
+
});
|
472 |
+
});
|
473 |
+
});
|
474 |
+
|
475 |
+
// Initialize animations when elements come into view
|
476 |
+
const animateOnScroll = () => {
|
477 |
+
const elements = document.querySelectorAll('.progress-fill');
|
478 |
+
|
479 |
+
elements.forEach(element => {
|
480 |
+
const elementPosition = element.getBoundingClientRect().top;
|
481 |
+
const screenPosition = window.innerHeight / 1.2;
|
482 |
+
|
483 |
+
if (elementPosition < screenPosition) {
|
484 |
+
element.style.transform = 'scaleX(1)';
|
485 |
+
}
|
486 |
+
});
|
487 |
+
};
|
488 |
+
|
489 |
+
window.addEventListener('scroll', animateOnScroll);
|
490 |
+
window.addEventListener('load', animateOnScroll);
|
491 |
+
</script>
|
492 |
+
|
493 |
+
</html>
|