Skip to content

Commit 11a74e9

Browse files
committed
Projects grid
1 parent ab18d5c commit 11a74e9

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

src/components/ProjectsFilter.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
:name="select"
66
:id="select"
77
class="
8-
px-4
9-
sm:px-6
10-
py-2
11-
border-1 border-gray-200
12-
dark:border-secondary-dark
13-
rounded-lg
14-
text-sm
15-
sm:text-md
16-
dark:font-medium
17-
bg-secondary-light
18-
dark:bg-ternary-dark
19-
text-primary-dark
20-
dark:text-ternary-light
21-
"
8+
px-4
9+
sm:px-6
10+
py-2
11+
border-1 border-gray-200
12+
dark:border-secondary-dark
13+
rounded-lg
14+
text-sm
15+
sm:text-md
16+
dark:font-medium
17+
bg-secondary-light
18+
dark:bg-ternary-dark
19+
text-primary-dark
20+
dark:text-ternary-light
21+
"
2222
>
2323
<option value class="text-sm sm:text-md">All Projects</option>
2424
<option
@@ -46,7 +46,7 @@ export default {
4646
'Web Application',
4747
'Mobile Application',
4848
'UI/UX Design',
49-
'Branding',
49+
'Branding & Animations',
5050
],
5151
},
5252
},

src/components/ProjectsGrid.vue

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@
5959
<input
6060
v-model="searchProject"
6161
class="
62-
pl-3
63-
pr-1
64-
sm:px-4
65-
py-2
66-
border-1 border-gray-200
67-
dark:border-secondary-dark
68-
rounded-lg
69-
text-sm
70-
sm:text-md
71-
bg-secondary-light
72-
dark:bg-ternary-dark
73-
text-primary-dark
74-
dark:text-ternary-light
75-
"
62+
pl-3
63+
pr-1
64+
sm:px-4
65+
py-2
66+
border-1 border-gray-200
67+
dark:border-secondary-dark
68+
rounded-lg
69+
text-sm
70+
sm:text-md
71+
bg-secondary-light
72+
dark:bg-ternary-dark
73+
text-primary-dark
74+
dark:text-ternary-light
75+
"
7676
id="name"
7777
name="name"
7878
type="search"
@@ -122,7 +122,7 @@ export default {
122122
},
123123
{
124124
id: 2,
125-
title: 'Pheonix Digital Agenncy',
125+
title: 'Phoenix Digital Agency',
126126
category: 'Mobile Application',
127127
img: require('@/assets/images/mobile-project-2.jpg'),
128128
},
@@ -167,10 +167,10 @@ export default {
167167
methods: {
168168
filterProjectsByCategory() {
169169
return this.projects.filter((item) => {
170-
let category =
170+
let filterProject =
171171
item.category.charAt(0).toUpperCase() +
172172
item.category.slice(1);
173-
return category.includes(this.selectedProject);
173+
return filterProject.includes(this.selectedProject);
174174
});
175175
},
176176
filterProjectsBySearch() {

src/components/ThemeSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
const newTheme = this.theme === 'light' ? 'dark' : 'light';
2727
localStorage.setItem('theme', newTheme);
2828
this.$emit('themeChanged', newTheme);
29-
// this.$router.go();
29+
this.$router.go();
3030
},
3131
},
3232
};

0 commit comments

Comments
 (0)