Skip to content

Commit 2ca66ae

Browse files
committed
Dynamic projects
1 parent 97912c6 commit 2ca66ae

File tree

3 files changed

+56
-8
lines changed

3 files changed

+56
-8
lines changed

src/assets/images/dev.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/project/ProjectsGrid.vue

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,31 @@
1414

1515
<div class="grid grid-cols-1 sm:grid-cols-3 mt-16 sm:gap-10">
1616
<router-link
17+
v-for="project in projects"
18+
:key="project.id"
1719
to="/projects/single-project"
1820
class="rounded-3xl shadow-lg hover:shadow-xl cursor-pointer mb-10 sm:mb-0 bg-secondary-light dark:bg-ternary-dark"
1921
>
2022
<div>
2123
<img
22-
src="../../assets/images/web-project-2.jpg"
23-
alt=""
24+
:src="project.img"
25+
:alt="project.title"
2426
class="rounded-t-3xl border-none"
2527
/>
2628
</div>
2729
<div class="text-center px-4 py-6">
2830
<p
2931
class="text-2xl text-ternary-dark dark:text-ternary-light font-semibold mb-2"
3032
>
31-
Google Health Platform
33+
{{ project.title }}
3234
</p>
3335
<span
3436
class="text-lg text-ternary-dark dark:text-ternary-light"
35-
>Wen Application</span
37+
>{{ project.category }}</span
3638
>
3739
</div>
3840
</router-link>
39-
<router-link
41+
<!-- <router-link
4042
to="/projects/single-project"
4143
class="rounded-3xl shadow-lg hover:shadow-xl cursor-pointer mb-10 sm:mb-0 bg-secondary-light dark:bg-ternary-dark"
4244
>
@@ -150,7 +152,7 @@
150152
>Web Application</span
151153
>
152154
</div>
153-
</router-link>
155+
</router-link> -->
154156
</div>
155157
<div class="mt-10 sm:mt-20 flex justify-center">
156158
<button
@@ -169,6 +171,49 @@ import feather from 'feather-icons';
169171
170172
export default {
171173
name: 'Projects',
174+
data() {
175+
return {
176+
projects: [
177+
{
178+
id: 1,
179+
title: 'Google Health Platform',
180+
category: 'Wen Application',
181+
img: require('../../assets/images/web-project-2.jpg'),
182+
},
183+
{
184+
id: 2,
185+
title: 'Pheonix Digital Agenncy',
186+
category: 'Mobile Application',
187+
img: require('../../assets/images/mobile-project-2.jpg'),
188+
},
189+
{
190+
id: 3,
191+
title: 'Project Management UI',
192+
category: 'UI / Frontend',
193+
img: require('../../assets/images/ui-project-1.jpg'),
194+
},
195+
{
196+
id: 4,
197+
title: 'Cloud Storage Platform',
198+
category: 'UI / Frontend',
199+
img: require('../../assets/images/ui-project-2.jpg'),
200+
},
201+
{
202+
id: 5,
203+
title: 'Kabul Social App',
204+
category: 'Mobile Application',
205+
img: require('../../assets/images/mobile-project-1.jpg'),
206+
},
207+
{
208+
id: 6,
209+
title: 'Apple Design System',
210+
category: 'Web Application',
211+
img: require('../../assets/images/web-project-1.jpg'),
212+
},
213+
],
214+
// publicPath: process.env.BASE_URL,
215+
};
216+
},
172217
mounted() {
173218
feather.replace();
174219
},

src/components/shared/Header.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
>
197197
<option
198198
v-for="category in categories"
199-
:key="category"
199+
:key="category.id"
200200
:value="category.value"
201201
>{{ category.name }}</option
202202
>
@@ -259,18 +259,22 @@ export default {
259259
modal: false,
260260
categories: [
261261
{
262+
id: 1,
262263
value: 'web',
263264
name: 'Web Application',
264265
},
265266
{
267+
id: 2,
266268
value: 'mobile',
267269
name: 'Mobile Applicaiton',
268270
},
269271
{
272+
id: 3,
270273
value: 'ui-ux',
271274
name: 'UI/UX Design',
272275
},
273276
{
277+
id: 4,
274278
value: 'branding',
275279
name: 'Branding',
276280
},

0 commit comments

Comments
 (0)