Skip to content

Commit 9c56003

Browse files
committed
Single project accessibility and dynamic data
1 parent 570950d commit 9c56003

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

src/components/project/SingleProjectInfo.vue

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,21 @@
1111
About Client
1212
</p>
1313
<ul class="leading-loose">
14-
<li class="text-ternary-dark dark:text-ternary-light">
15-
<span>Name: </span>
16-
Kabul Company Ltd
17-
</li>
18-
<li class="text-ternary-dark dark:text-ternary-light">
19-
<span>Services: </span>
20-
UI Design & Frontend Development
21-
</li>
22-
<li class="text-ternary-dark dark:text-ternary-light">
23-
<span>Website: </span>
24-
<a href="#" class="hover:underline"
25-
>https://company.com</a
14+
<li
15+
v-for="info in companyInfos"
16+
:key="info"
17+
class="text-ternary-dark dark:text-ternary-light"
18+
>
19+
<span>{{ info.title }}: </span>
20+
<span
21+
:class="
22+
info.title == 'Website' || info.title == 'Phone'
23+
? 'hover:underline cursor-pointer'
24+
: ''
25+
"
26+
>{{ info.details }}</span
2627
>
2728
</li>
28-
<li class="text-ternary-dark dark:text-ternary-light">
29-
<span>Phone: </span>
30-
555 8888 888
31-
</li>
3229
</ul>
3330
</div>
3431
<!-- Single project client details end -->
@@ -110,6 +107,28 @@ import feather from 'feather-icons';
110107
export default {
111108
data() {
112109
return {
110+
companyInfos: [
111+
{
112+
id: 1,
113+
title: 'Name',
114+
details: 'Company Ltd',
115+
},
116+
{
117+
id: 2,
118+
title: 'Services',
119+
details: 'UI Design & Frontend Development',
120+
},
121+
{
122+
id: 3,
123+
title: 'Website',
124+
details: 'https://company.com',
125+
},
126+
{
127+
id: 4,
128+
title: 'Phone',
129+
details: '555 8888 888',
130+
},
131+
],
113132
technlogies: [
114133
{
115134
title: 'Tools & Technologies',

0 commit comments

Comments
 (0)