Skip to content

Commit 97912c6

Browse files
committed
Dynamic projects category in hire me modal
1 parent a45aa77 commit 97912c6

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

src/components/shared/Header.vue

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,11 @@
194194
required=""
195195
aria-label="Subject"
196196
>
197-
<option selected disabled
198-
>Select Project Type</option
199-
>
200-
<option value="web"
201-
>Web Application</option
202-
>
203-
<option value="mobile"
204-
>Mobile Applicaiton</option
205-
>
206-
<option value="design"
207-
>UI/UX Design</option
208-
>
209-
<option value="graphic"
210-
>Branding</option
197+
<option
198+
v-for="category in categories"
199+
:key="category"
200+
:value="category.value"
201+
>{{ category.name }}</option
211202
>
212203
</select>
213204
</div>
@@ -237,7 +228,7 @@
237228
class="modal-footer py-3 px-5 border0-t text-right"
238229
>
239230
<button
240-
class="px-6 py-2 bg-indigo-400 rounded-lg font-bold text-primary-light"
231+
class="px-6 py-2 bg-indigo-400 hover:bg-indigo-500 rounded-lg font-bold text-primary-light"
241232
@click="showModal()"
242233
>
243234
Close
@@ -266,6 +257,24 @@ export default {
266257
isOpen: false,
267258
theme: '',
268259
modal: false,
260+
categories: [
261+
{
262+
value: 'web',
263+
name: 'Web Application',
264+
},
265+
{
266+
value: 'mobile',
267+
name: 'Mobile Applicaiton',
268+
},
269+
{
270+
value: 'ui-ux',
271+
name: 'UI/UX Design',
272+
},
273+
{
274+
value: 'branding',
275+
name: 'Branding',
276+
},
277+
],
269278
};
270279
},
271280

0 commit comments

Comments
 (0)