-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
332 lines (301 loc) · 11.4 KB
/
index.html
File metadata and controls
332 lines (301 loc) · 11.4 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Web Projects Portfolio — ASAD2204</title>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- Animated Background -->
<div class="bg-animation">
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
<div class="shape shape-3"></div>
</div>
<!-- Hero Section -->
<header class="hero">
<div class="container">
<div class="hero-content">
<div class="hero-badge">✨ Web Development Portfolio</div>
<h1 class="hero-title">
<span class="gradient-text">ASAD2204</span><br/>
Web Projects Showcase
</h1>
<p class="hero-subtitle">
A curated collection of interactive web applications and creative projects.<br/>
Click any project card to explore the live demo.
</p>
<div class="hero-stats">
<div class="stat">
<div class="stat-number" id="project-count">17</div>
<div class="stat-label">Projects</div>
</div>
<div class="stat">
<div class="stat-number">100%</div>
<div class="stat-label">Open Source</div>
</div>
<div class="stat">
<div class="stat-number">∞</div>
<div class="stat-label">Creativity</div>
</div>
</div>
</div>
</div>
</header>
<!-- Search Section -->
<section class="search-section">
<div class="container">
<div class="search-wrapper">
<svg class="search-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
<input id="search" type="text" placeholder="Search projects by name..." />
</div>
</div>
</section>
<!-- Projects Grid -->
<main class="container">
<section id="projects" class="projects-grid"></section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3>ASAD2204</h3>
<p>Building creative web experiences</p>
</div>
<div class="footer-section">
<h4>Links</h4>
<a href="https://github.com/ASAD2204/Web-Projects" target="_blank" rel="noopener noreferrer">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
GitHub Repository
</a>
<a href="https://asad2204.github.io/Web-Projects/" target="_blank" rel="noopener noreferrer">
🌐 Live Portfolio
</a>
</div>
<div class="footer-section">
<h4>Tech Stack</h4>
<div class="tech-tags">
<span class="tech-tag">HTML5</span>
<span class="tech-tag">CSS3</span>
<span class="tech-tag">JavaScript</span>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 ASAD2204 • Deployed on GitHub Pages</p>
</div>
</div>
</footer>
<script>
// Project data with icons and descriptions
const projectsData = [
{
name: "AnnoyingCookieConset",
icon: "🍪",
description: "Cookie consent popup implementation",
category: "UI Component"
},
{
name: "Basic Caculator",
icon: "🔢",
description: "Simple calculator with basic operations",
category: "Utility"
},
{
name: "BasketBallScoreCounter",
icon: "🏀",
description: "Interactive basketball score tracker",
category: "Game"
},
{
name: "BirthdayGiftSite",
icon: "🎁",
description: "Birthday gift landing page",
category: "Landing Page"
},
{
name: "BlackJackGame",
icon: "🃏",
description: "Classic BlackJack card game",
category: "Game"
},
{
name: "BookArticle",
icon: "📚",
description: "Book article showcase page",
category: "Content"
},
{
name: "Co-workingSpaceSite",
icon: "💼",
description: "Co-working space website",
category: "Landing Page"
},
{
name: "CountryVisit",
icon: "🌍",
description: "Country visit tracker",
category: "Utility"
},
{
name: "DailyDribble",
icon: "🎨",
description: "Design showcase page",
category: "Portfolio"
},
{
name: "FacebookSignupPage",
icon: "📱",
description: "Facebook signup page clone",
category: "Clone"
},
{
name: "LeadTracker_Browser",
icon: "🔖",
description: "Browser extension for lead tracking",
category: "Extension"
},
{
name: "Matric_Imperial _UnitConvertor",
icon: "📏",
description: "Metric to Imperial unit converter",
category: "Utility"
},
{
name: "NFT Website",
icon: "🖼️",
description: "NFT showcase website",
category: "Landing Page"
},
{
name: "Oldagram-InstagramLike",
icon: "📸",
description: "Instagram-like photo feed",
category: "Clone"
},
{
name: "PassengerCounter",
icon: "👥",
description: "Passenger counting application",
category: "Utility"
},
{
name: "RandomPasswordGenerator",
icon: "🔐",
description: "Secure password generator",
category: "Security"
},
{
name: "facebookSignupPage(old)",
icon: "📱",
description: "Facebook signup (legacy version)",
category: "Clone"
}
];
const basePagesUrl = 'https://asad2204.github.io/Web-Projects/';
function makeCard(project) {
const card = document.createElement('article');
card.className = 'project-card';
// Create clickable link wrapper
const cardLink = document.createElement('a');
cardLink.href = basePagesUrl + encodeURIComponent(project.name);
cardLink.className = 'card-link';
cardLink.target = '_blank';
cardLink.rel = 'noopener noreferrer';
const iconWrapper = document.createElement('div');
iconWrapper.className = 'project-icon';
iconWrapper.textContent = project.icon;
const content = document.createElement('div');
content.className = 'project-content';
const category = document.createElement('span');
category.className = 'project-category';
category.textContent = project.category;
const title = document.createElement('h3');
title.className = 'project-title';
title.textContent = project.name;
const description = document.createElement('p');
description.className = 'project-description';
description.textContent = project.description;
const footer = document.createElement('div');
footer.className = 'project-footer';
const viewBtn = document.createElement('span');
viewBtn.className = 'view-project';
viewBtn.innerHTML = 'View Project <span class="arrow">→</span>';
const repoLink = document.createElement('a');
repoLink.href = 'https://github.com/ASAD2204/Web-Projects/tree/main/' + encodeURIComponent(project.name);
repoLink.target = '_blank';
repoLink.rel = 'noopener noreferrer';
repoLink.className = 'repo-link';
repoLink.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>';
repoLink.onclick = (e) => e.stopPropagation();
footer.appendChild(viewBtn);
footer.appendChild(repoLink);
content.appendChild(category);
content.appendChild(title);
content.appendChild(description);
cardLink.appendChild(iconWrapper);
cardLink.appendChild(content);
cardLink.appendChild(footer);
card.appendChild(cardLink);
return card;
}
function render(list) {
const container = document.getElementById('projects');
container.innerHTML = '';
if (list.length === 0) {
container.innerHTML = '<div class="no-results"><p>🔍 No projects found matching your search.</p></div>';
return;
}
list.forEach(project => {
const card = makeCard(project);
container.appendChild(card);
// Trigger animation
setTimeout(() => card.classList.add('visible'), 50);
});
}
// Initial render
render(projectsData);
// Update project count
document.getElementById('project-count').textContent = projectsData.length;
// Search functionality
document.getElementById('search').addEventListener('input', (e) => {
const query = e.target.value.toLowerCase().trim();
if (!query) {
render(projectsData);
return;
}
const filtered = projectsData.filter(project =>
project.name.toLowerCase().includes(query) ||
project.description.toLowerCase().includes(query) ||
project.category.toLowerCase().includes(query)
);
render(filtered);
});
// Add scroll animation
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, observerOptions);
document.querySelectorAll('.project-card').forEach(card => {
observer.observe(card);
});
</script>
</body>
</html>