11import { motion } from 'framer-motion' ;
22import { FiX } from 'react-icons/fi' ;
3+ import Button from './reusable/Button' ;
34
45const selectOptions = [
56 'Web Application' ,
@@ -14,7 +15,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
1415 initial = { { opacity : 0 } }
1516 animate = { { opacity : 1 } }
1617 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"
1819 >
1920 { /* Modal Background */ }
2021 < 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 }) => {
2425 < div className = "modal-wrapper flex items-center z-30" >
2526 < 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" >
2627 < 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 " >
2829 What project are you looking for?
2930 </ h5 >
3031 < button
@@ -43,7 +44,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
4344 >
4445 < div className = "" >
4546 < 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"
4748 id = "name"
4849 name = "name"
4950 type = "text"
@@ -54,7 +55,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
5455 </ div >
5556 < div className = "mt-6" >
5657 < 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"
5859 id = "email"
5960 name = "email"
6061 type = "text"
@@ -65,7 +66,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
6566 </ div >
6667 < div className = "mt-6" >
6768 < 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"
6970 id = "subject"
7071 name = "subject"
7172 type = "text"
@@ -85,7 +86,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
8586
8687 < div className = "mt-6" >
8788 < 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"
8990 id = "message"
9091 name = "message"
9192 cols = "14"
@@ -96,8 +97,8 @@ const HireMeModal = ({ onClose, onRequest }) => {
9697 </ div >
9798
9899 < div className = "mt-6 pb-4 sm:pb-1" >
99- < button
100- onClick = { onRequest }
100+ < span
101+ onClick = { onClose }
101102 type = "submit"
102103 className = "px-4
103104 sm:px-6
@@ -112,16 +113,16 @@ const HireMeModal = ({ onClose, onRequest }) => {
112113 focus:ring-1 focus:ring-indigo-900"
113114 aria-label = "Submit Request"
114115 >
115- Send Request
116- </ button >
116+ < Button title = " Send Request" />
117+ </ span >
117118 </ div >
118119 </ form >
119120 </ div >
120121 < div className = "modal-footer mt-2 sm:mt-0 py-5 px-8 border0-t text-right" >
121- < button
122+ < span
122123 onClick = { onClose }
123124 type = "button"
124- className = " px-4
125+ className = "px-4
125126 sm:px-6
126127 py-2
127128 bg-indigo-400
@@ -133,8 +134,8 @@ const HireMeModal = ({ onClose, onRequest }) => {
133134 focus:ring-1 focus:ring-indigo-900"
134135 aria-label = "Close Modal"
135136 >
136- Close
137- </ button >
137+ < Button title = " Close" />
138+ </ span >
138139 </ div >
139140 </ div >
140141 </ div >
0 commit comments