Skip to content

Commit 09bea0a

Browse files
committed
Applied the search filter by tags and added tags for each project
1 parent 8b0e679 commit 09bea0a

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

script.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const sampleProjects = [
2020
description: 'A responsive weather application with beautiful animations and detailed forecasts. Features location-based weather data and interactive charts.',
2121
repoUrl: 'https://github.com/example/weather-dashboard',
2222
demoUrl: 'https://example.github.io/weather-dashboard/',
23-
difficulty: 'Intermediate',
23+
difficulty: 'intermediate',
2424
upvotes: 28,
2525
hasDemo: true,
2626
hasReadme: true,
@@ -59,7 +59,7 @@ const sampleProjects = [
5959
description: 'A simple and intuitive expense tracker app to monitor daily spending, manage budgets, and gain financial insights.',
6060
repoUrl: 'https://github.com/DineshPabboju/Expense-Tracker-App',
6161
demoUrl: 'https://expense-tracker-app-04.netlify.app/',
62-
difficulty: 'Intermediate',
62+
difficulty: 'intermediate',
6363
upvotes: 21,
6464
hasDemo: true,
6565
hasReadme: false,
@@ -171,6 +171,12 @@ const sampleProjects = [
171171
: ' • <i class="fas fa-exclamation-triangle meta-icon"></i> No README'
172172
}
173173
</div>
174+
175+
<div class="project-tags">
176+
${project.tags.map((item, index)=>`
177+
<span class="tag-badge">${item}</span>
178+
`).join('')}
179+
</div>
174180
175181
<div class="upvote-section">
176182
${project.hasDemo && project.demoUrl

style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,24 @@
461461
color: #667eea;
462462
}
463463

464+
.project-tags {
465+
margin-top: 0.5rem;
466+
margin-bottom: 5px;
467+
display: flex;
468+
flex-wrap: wrap;
469+
gap: 6px;
470+
}
471+
472+
.tag-badge {
473+
background-color: #e0e0e0;
474+
color: #333;
475+
padding: 4px 8px;
476+
border-radius: 12px;
477+
font-size: 12px;
478+
display: inline-block;
479+
white-space: nowrap;
480+
}
481+
464482
.upvote-section {
465483
display: flex;
466484
justify-content: space-between;

0 commit comments

Comments
 (0)