Skip to content

Commit 752d882

Browse files
committed
About clients
1 parent 11a74e9 commit 752d882

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/AboutClientSingle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img
44
:src="client.img"
55
:alt="client.title"
6-
class="w-64 py-5 px-10 border border-ternary-light dark:border-ternary-dark shadow-sm rounded-xl mb-8 cursor-pointer"
6+
class="w-64 py-5 px-10 border border-ternary-light dark:border-ternary-dark shadow-sm rounded-xl mb-8 cursor-pointer dark:bg-secondary-light"
77
/>
88
</div>
99
</template>

src/components/ProjectsGrid.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ export default {
151151
img: require('@/assets/images/web-project-1.jpg'),
152152
},
153153
],
154-
// publicPath: process.env.BASE_URL,
155154
};
156155
},
157156
computed: {
157+
// Get the filtered projects
158158
filteredProjects() {
159159
if (this.selectedProject) {
160160
return this.filterProjectsByCategory();
@@ -165,14 +165,16 @@ export default {
165165
},
166166
},
167167
methods: {
168+
// Filter projects by category
168169
filterProjectsByCategory() {
169170
return this.projects.filter((item) => {
170-
let filterProject =
171+
let category =
171172
item.category.charAt(0).toUpperCase() +
172173
item.category.slice(1);
173-
return filterProject.includes(this.selectedProject);
174+
return category.includes(this.selectedProject);
174175
});
175176
},
177+
// Filter projects by title search
176178
filterProjectsBySearch() {
177179
let project = new RegExp(this.searchProject, 'i');
178180
return this.projects.filter((el) => el.title.match(project));

0 commit comments

Comments
 (0)