File tree Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change 93
93
Contact details
94
94
</h2 >
95
95
<ul class =" " >
96
- <li class =" flex" >
97
- <i
98
- data-feather =" map-pin"
99
- class =" w-5 text-gray-500 dark:text-gray-400 mr-4"
100
- ></i >
101
- <p
102
- class =" text-lg mb-4 text-ternary-dark dark:text-ternary-light"
103
- >
104
- Wazir Akbar Khan, Kabul, Afghanistan
105
- </p >
106
- </li >
107
- <li class =" flex" >
108
- <i
109
- data-feather =" mail"
110
- class =" w-5 text-gray-500 dark:text-gray-400 mr-4"
111
- ></i >
112
- <p
113
- class =" text-lg mb-4 text-ternary-dark dark:text-ternary-light"
114
- >
115
- email@example.com
116
- </p >
117
- </li >
118
- <li class =" flex" >
96
+ <li
97
+ class =" flex"
98
+ v-for =" contact in contacts"
99
+ :key =" contact.id"
100
+ >
119
101
<i
120
- data-feather =" phone "
102
+ : data-feather =" contact.icon "
121
103
class =" w-5 text-gray-500 dark:text-gray-400 mr-4"
122
104
></i >
123
105
<p
124
106
class =" text-lg mb-4 text-ternary-dark dark:text-ternary-light"
125
107
>
126
- +93 7888 888 88
108
+ {{ contact.name }}
127
109
</p >
128
110
</li >
129
111
</ul >
@@ -137,7 +119,25 @@ import feather from 'feather-icons';
137
119
138
120
export default {
139
121
data : () => {
140
- return {};
122
+ return {
123
+ contacts: [
124
+ {
125
+ id: 1 ,
126
+ name: ' Wazir Akbar Khan, Kabul, Afghanistan' ,
127
+ icon: ' map-pin' ,
128
+ },
129
+ {
130
+ id: 2 ,
131
+ name: ' email@example.com' ,
132
+ icon: ' mail' ,
133
+ },
134
+ {
135
+ id: 3 ,
136
+ name: ' +93 7888 888 88' ,
137
+ icon: ' phone' ,
138
+ },
139
+ ],
140
+ };
141
141
},
142
142
mounted () {
143
143
feather .replace ();
You can’t perform that action at this time.
0 commit comments