Skip to content

Commit 540c47a

Browse files
committed
Add button to contact and hire me forms
1 parent 826bfcf commit 540c47a

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/components/HireMeModal.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { motion } from 'framer-motion';
22
import { FiX } from 'react-icons/fi';
3+
import Button from './reusable/Button';
34

45
const selectOptions = [
56
'Web Application',
@@ -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>

src/components/contact/ContactForm.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Button from '../reusable/Button';
2+
13
const ContactForm = () => {
24
return (
35
<div className="w-full lg:w-1/2">
@@ -80,14 +82,12 @@ const ContactForm = () => {
8082
></textarea>
8183
</div>
8284

83-
<div className="mt-6">
84-
<button
85-
className="px-4 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-md"
85+
<div className="font-general-medium w-40 px-4 py-2.5 text-white text-center font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-lg mt-6">
86+
<Button
87+
title="Send Message"
8688
type="submit"
8789
aria-label="Send Message"
88-
>
89-
Send Message
90-
</button>
90+
/>
9191
</div>
9292
</form>
9393
</div>

0 commit comments

Comments
 (0)