Skip to content

Commit efb6760

Browse files
committed
Modal rounded corners and close icon
1 parent 08e579b commit efb6760

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/components/HireMeModal.vue

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class="modal-wrapper flex items-center z-30"
1818
>
1919
<div
20-
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-xl relative"
20+
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"
2121
>
2222
<div
2323
class="modal-header flex justify-between gap-10 p-5 border-b border-ternary-light dark:border-ternary-dark"
@@ -31,14 +31,14 @@
3131
class="px-4 font-bold text-primary-dark dark:text-primary-light"
3232
@click="showModal()"
3333
>
34-
X
34+
<i data-feather="x"></i>
3535
</button>
3636
</div>
3737
<div class="modal-body p-5 w-full h-full">
3838
<form class="max-w-xl m-4 text-left">
39-
<div class="">
39+
<div class="mt-0">
4040
<input
41-
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-lg text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
41+
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
4242
id="name"
4343
name="name"
4444
type="text"
@@ -49,7 +49,7 @@
4949
</div>
5050
<div class="mt-6">
5151
<input
52-
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-lg text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
52+
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
5353
id="email"
5454
name="email"
5555
type="text"
@@ -60,7 +60,7 @@
6060
</div>
6161
<div class="mt-6">
6262
<select
63-
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-lg text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
63+
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
6464
id="subject"
6565
name="subject"
6666
type="text"
@@ -78,7 +78,7 @@
7878

7979
<div class="mt-6">
8080
<textarea
81-
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-lg text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
81+
class="w-full px-5 py-2 border-1 border-gray-200 dark:border-secondary-dark rounded-md text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
8282
id="message"
8383
name="message"
8484
cols="14"
@@ -100,7 +100,6 @@
100100
bg-indigo-500
101101
hover:bg-indigo-600
102102
rounded-md
103-
sm:rounded-lg
104103
focus:ring-1 focus:ring-indigo-900"
105104
type="submit"
106105
aria-label="Submit Request"
@@ -116,14 +115,10 @@
116115
<button
117116
class=" px-4
118117
sm:px-6
119-
py-2
120-
bg-indigo-400
121-
hover:bg-indigo-500
118+
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
122119
rounded-md
123-
sm:rounded-lg
124120
font-normal
125121
sm:font-bold
126-
text-primary-light
127122
focus:ring-1 focus:ring-indigo-900"
128123
@click="showModal()"
129124
aria-label="Close Modal"
@@ -140,11 +135,18 @@
140135
</template>
141136

142137
<script>
138+
import feather from 'feather-icons';
143139
export default {
144140
props: ['showModal', 'modal', 'categories'],
145141
data() {
146142
return {};
147143
},
144+
mounted() {
145+
feather.replace();
146+
},
147+
updated() {
148+
feather.replace();
149+
},
148150
methods: {},
149151
};
150152
</script>

0 commit comments

Comments
 (0)