Skip to content

Commit 0eb0949

Browse files
committed
Contact details and contact form refactoring
1 parent 892abe5 commit 0eb0949

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/contact/ContactDetails.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ const contacts = [
2020

2121
const ContactDetails = () => {
2222
return (
23-
<div className="font-general-regular w-full lg:w-1/2">
23+
<div className="w-full lg:w-1/2">
2424
<div className="text-left max-w-xl px-6">
25-
<h2 className="text-2xl text-primary-dark dark:text-primary-light font-semibold mt-12 mb-8">
25+
<h2 className="font-general-medium text-2xl text-primary-dark dark:text-primary-light mt-12 mb-8">
2626
Contact details
2727
</h2>
28-
<ul>
28+
<ul className="font-general-regular">
2929
{contacts.map((contact) => (
3030
<li className="flex " key={contact.id}>
31-
<i className="text-2xl text-gray-500 dark:text-gray-400 mr-4 mt-1">
31+
<i className="text-2xl text-gray-500 dark:text-gray-400 mr-4">
3232
{contact.icon}
3333
</i>
3434
<span className="text-lg mb-4 text-ternary-dark dark:text-ternary-light">

src/components/contact/ContactForm.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ContactForm = () => {
2121
Full Name
2222
</label>
2323
<input
24-
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
24+
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md"
2525
id="name"
2626
name="name"
2727
type="text"
@@ -38,7 +38,7 @@ const ContactForm = () => {
3838
Email
3939
</label>
4040
<input
41-
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
41+
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md"
4242
id="email"
4343
name="email"
4444
type="text"
@@ -55,7 +55,7 @@ const ContactForm = () => {
5555
Subject
5656
</label>
5757
<input
58-
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
58+
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md"
5959
id="subject"
6060
name="subject"
6161
type="text"
@@ -73,7 +73,7 @@ const ContactForm = () => {
7373
Message
7474
</label>
7575
<textarea
76-
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
76+
className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md"
7777
id="message"
7878
name="message"
7979
cols="14"
@@ -82,7 +82,7 @@ const ContactForm = () => {
8282
></textarea>
8383
</div>
8484

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">
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 duration-500">
8686
<Button
8787
title="Send Message"
8888
type="submit"

0 commit comments

Comments
 (0)