1
1
import { motion } from 'framer-motion' ;
2
2
import { FiX } from 'react-icons/fi' ;
3
+ import Button from './reusable/Button' ;
3
4
4
5
const selectOptions = [
5
6
'Web Application' ,
@@ -14,7 +15,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
14
15
initial = { { opacity : 0 } }
15
16
animate = { { opacity : 1 } }
16
17
exit = { { opacity : 0 } }
17
- className = "fixed inset-0 z-30 transition-all duration-500"
18
+ className = "font-general-medium fixed inset-0 z-30 transition-all duration-500"
18
19
>
19
20
{ /* Modal Background */ }
20
21
< div className = "bg-filter bg-black bg-opacity-50 fixed inset-0 w-full h-full z-20" > </ div >
@@ -24,7 +25,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
24
25
< div className = "modal-wrapper flex items-center z-30" >
25
26
< div className = "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" >
26
27
< div className = "modal-header flex justify-between gap-10 p-5 border-b border-ternary-light dark:border-ternary-dark" >
27
- < h5 className = " text-primary-dark dark:text-primary-light text-2xl " >
28
+ < h5 className = " text-primary-dark dark:text-primary-light text-xl " >
28
29
What project are you looking for?
29
30
</ h5 >
30
31
< button
@@ -43,7 +44,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
43
44
>
44
45
< div className = "" >
45
46
< input
46
- className = "w-full px-5 py-2 border 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"
47
+ className = "w-full px-5 py-2 border dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
47
48
id = "name"
48
49
name = "name"
49
50
type = "text"
@@ -54,7 +55,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
54
55
</ div >
55
56
< div className = "mt-6" >
56
57
< input
57
- className = "w-full px-5 py-2 border 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"
58
+ className = "w-full px-5 py-2 border dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
58
59
id = "email"
59
60
name = "email"
60
61
type = "text"
@@ -65,7 +66,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
65
66
</ div >
66
67
< div className = "mt-6" >
67
68
< select
68
- className = "w-full px-5 py-2 border 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"
69
+ className = "w-full px-5 py-2 border dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
69
70
id = "subject"
70
71
name = "subject"
71
72
type = "text"
@@ -85,7 +86,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
85
86
86
87
< div className = "mt-6" >
87
88
< textarea
88
- className = "w-full px-5 py-2 border 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"
89
+ className = "w-full px-5 py-2 border dark:border-secondary-dark rounded-md text-md bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
89
90
id = "message"
90
91
name = "message"
91
92
cols = "14"
@@ -96,8 +97,8 @@ const HireMeModal = ({ onClose, onRequest }) => {
96
97
</ div >
97
98
98
99
< div className = "mt-6 pb-4 sm:pb-1" >
99
- < button
100
- onClick = { onRequest }
100
+ < span
101
+ onClick = { onClose }
101
102
type = "submit"
102
103
className = "px-4
103
104
sm:px-6
@@ -112,16 +113,16 @@ const HireMeModal = ({ onClose, onRequest }) => {
112
113
focus:ring-1 focus:ring-indigo-900"
113
114
aria-label = "Submit Request"
114
115
>
115
- Send Request
116
- </ button >
116
+ < Button title = " Send Request" />
117
+ </ span >
117
118
</ div >
118
119
</ form >
119
120
</ div >
120
121
< div className = "modal-footer mt-2 sm:mt-0 py-5 px-8 border0-t text-right" >
121
- < button
122
+ < span
122
123
onClick = { onClose }
123
124
type = "button"
124
- className = " px-4
125
+ className = "px-4
125
126
sm:px-6
126
127
py-2
127
128
bg-indigo-400
@@ -133,8 +134,8 @@ const HireMeModal = ({ onClose, onRequest }) => {
133
134
focus:ring-1 focus:ring-indigo-900"
134
135
aria-label = "Close Modal"
135
136
>
136
- Close
137
- </ button >
137
+ < Button title = " Close" />
138
+ </ span >
138
139
</ div >
139
140
</ div >
140
141
</ div >
0 commit comments