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 9393 Contact details
9494 </h2 >
9595 <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+ >
119101 <i
120- data-feather =" phone "
102+ : data-feather =" contact.icon "
121103 class =" w-5 text-gray-500 dark:text-gray-400 mr-4"
122104 ></i >
123105 <p
124106 class =" text-lg mb-4 text-ternary-dark dark:text-ternary-light"
125107 >
126- +93 7888 888 88
108+ {{ contact.name }}
127109 </p >
128110 </li >
129111 </ul >
@@ -137,7 +119,25 @@ import feather from 'feather-icons';
137119
138120export default {
139121 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+ };
141141 },
142142 mounted () {
143143 feather .replace ();
You can’t perform that action at this time.
0 commit comments