File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
<img
4
4
:src =" client.img"
5
5
: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 "
7
7
/>
8
8
</div >
9
9
</template >
Original file line number Diff line number Diff line change @@ -151,10 +151,10 @@ export default {
151
151
img: require (' @/assets/images/web-project-1.jpg' ),
152
152
},
153
153
],
154
- // publicPath: process.env.BASE_URL,
155
154
};
156
155
},
157
156
computed: {
157
+ // Get the filtered projects
158
158
filteredProjects () {
159
159
if (this .selectedProject ) {
160
160
return this .filterProjectsByCategory ();
@@ -165,14 +165,16 @@ export default {
165
165
},
166
166
},
167
167
methods: {
168
+ // Filter projects by category
168
169
filterProjectsByCategory () {
169
170
return this .projects .filter ((item ) => {
170
- let filterProject =
171
+ let category =
171
172
item .category .charAt (0 ).toUpperCase () +
172
173
item .category .slice (1 );
173
- return filterProject .includes (this .selectedProject );
174
+ return category .includes (this .selectedProject );
174
175
});
175
176
},
177
+ // Filter projects by title search
176
178
filterProjectsBySearch () {
177
179
let project = new RegExp (this .searchProject , ' i' );
178
180
return this .projects .filter ((el ) => el .title .match (project));
You can’t perform that action at this time.
0 commit comments