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 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 >
Original file line number Diff line number Diff 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));
You can’t perform that action at this time.
0 commit comments