1
1
<script >
2
2
import feather from ' feather-icons' ;
3
3
import Button from ' ./reusable/Button.vue' ;
4
+ import FormInput from ' ./reusable/FormInput.vue' ;
4
5
export default {
5
6
props: [' showModal' , ' modal' , ' categories' ],
6
- components: { Button },
7
+ components: { Button, FormInput },
7
8
data () {
8
9
return {};
9
10
},
@@ -36,13 +37,13 @@ export default {
36
37
class =" modal-wrapper flex items-center z-30"
37
38
>
38
39
<div
39
- class =" modal max-w-md mx-5 xl:max-w-xl lg:max-w-xl md:max-w-xl bg-secondary-light dark:bg-primary-dark max-h-screen shadow-lg flex-row rounded-lg relative"
40
+ class =" modal max-w-md mx-5 md:max-w-xl bg-secondary-light dark:bg-primary-dark max-h-screen shadow-lg flex-row rounded-lg relative"
40
41
>
41
42
<div
42
43
class =" modal-header flex justify-between gap-10 p-5 border-b border-ternary-light dark:border-ternary-dark"
43
44
>
44
45
<h5
45
- class =" text-primary-dark dark:text-primary-light text-xl"
46
+ class =" text-primary-dark dark:text-primary-light text-xl"
46
47
>
47
48
What project are you looking for?
48
49
</h5 >
@@ -55,33 +56,27 @@ export default {
55
56
</div >
56
57
<div class =" modal-body p-5 w-full h-full" >
57
58
<form class =" max-w-xl m-4 text-left" >
58
- <div class =" mt-0" >
59
- <input
60
- class =" w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
61
- id =" name"
62
- name =" name"
63
- type =" text"
64
- required =" "
65
- placeholder =" Name"
66
- aria-label =" Name"
67
- />
68
- </div >
69
- <div class =" mt-6" >
70
- <input
71
- class =" w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
72
- id =" email"
73
- name =" email"
74
- type =" text"
75
- required =" "
76
- placeholder =" Email"
77
- aria-label =" Email"
78
- />
79
- </div >
59
+ <FormInput
60
+ label =" Full Name"
61
+ inputIdentifier =" name"
62
+ class =" mb-2"
63
+ />
64
+ <FormInput
65
+ label =" Email"
66
+ inputIdentifier =" email"
67
+ inputType =" email"
68
+ />
69
+
80
70
<div class =" mt-6" >
71
+ <label
72
+ class =" block mb-2 text-lg text-primary-dark dark:text-primary-light"
73
+ for =" project"
74
+ >Project Type</label
75
+ >
81
76
<select
82
- class =" w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
83
- id =" subject "
84
- name =" subject "
77
+ class =" w-full px-5 py-3 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
78
+ id =" project "
79
+ name =" project "
85
80
type =" text"
86
81
required =" "
87
82
aria-label =" Project Category"
@@ -90,16 +85,22 @@ export default {
90
85
v-for =" category in categories"
91
86
:key =" category.id"
92
87
:value =" category.value"
93
- >{{ category.name }}</option
94
88
>
89
+ {{ category.name }}
90
+ </option >
95
91
</select >
96
92
</div >
97
93
98
94
<div class =" mt-6" >
95
+ <label
96
+ class =" block mb-2 text-lg text-primary-dark dark:text-primary-light"
97
+ for =" details"
98
+ >Details</label
99
+ >
99
100
<textarea
100
101
class =" w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
101
- id =" message "
102
- name =" message "
102
+ id =" details "
103
+ name =" details "
103
104
cols =" 14"
104
105
rows =" 6"
105
106
aria-label =" Details"
@@ -110,15 +111,7 @@ export default {
110
111
<div class =" mt-6 pb-4 sm:pb-1" >
111
112
<Button
112
113
title =" Send Request"
113
- class =" px-4
114
- sm:px-6
115
- py-2
116
- sm:py-2.5
117
- text-white
118
- bg-indigo-500
119
- hover:bg-indigo-600
120
- rounded-md
121
- focus:ring-1 focus:ring-indigo-900 duration-500"
114
+ class =" px-4 sm:px-6 py-2 sm:py-2.5 text-white bg-indigo-500 hover:bg-indigo-600 rounded-md focus:ring-1 focus:ring-indigo-900 duration-500"
122
115
type =" submit"
123
116
aria-label =" Submit Request"
124
117
/>
@@ -130,11 +123,7 @@ export default {
130
123
>
131
124
<Button
132
125
title =" Close"
133
- class =" px-4
134
- sm:px-6
135
- py-2 bg-gray-600 text-primary-light hover:bg-ternary-dark dark:bg-gray-200 dark:text-secondary-dark dark:hover:bg-primary-light
136
- rounded-md
137
- focus:ring-1 focus:ring-indigo-900 duration-500"
126
+ class =" px-4 sm:px-6 py-2 bg-gray-600 text-primary-light hover:bg-ternary-dark dark:bg-gray-200 dark:text-secondary-dark dark:hover:bg-primary-light rounded-md focus:ring-1 focus:ring-indigo-900 duration-500"
138
127
@click =" showModal()"
139
128
aria-label =" Close Modal"
140
129
/>
@@ -149,7 +138,7 @@ export default {
149
138
150
139
<style scoped>
151
140
.modal-body {
152
- max-height : 500 px ;
141
+ max-height : 570 px ;
153
142
}
154
143
.bg-gray-800-opacity {
155
144
background-color : #2d374850 ;
0 commit comments