Skip to content

Commit 7e29f95

Browse files
committed
Contact form and contact details fonts refactoring
1 parent bacf3e9 commit 7e29f95

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/components/contact/ContactDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
>
88
Contact details
99
</h2>
10-
<ul class="font-general-medium">
10+
<ul class="font-general-regular">
1111
<li class="flex" v-for="contact in contacts" :key="contact.id">
1212
<i
1313
:data-feather="contact.icon"

src/components/contact/ContactForm.vue

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<template>
22
<!-- Contact form -->
33
<div class="w-full md:w-1/2">
4-
<div class="leading-loose">
5-
<form
6-
class="max-w-xl m-4 p-6 sm:p-10 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left"
4+
<div
5+
class="leading-loose max-w-xl m-4 p-7 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left"
6+
>
7+
<p
8+
class="font-general-medium text-primary-dark dark:text-primary-light text-2xl mb-8"
79
>
8-
<p
9-
class="font-general-medium text-primary-dark dark:text-primary-light text-2xl mb-8"
10-
>
11-
Contact Form
12-
</p>
13-
<div class="font-general-medium">
10+
Contact Form
11+
</p>
12+
<form action="#" class="font-general-regular space-y-7">
13+
<div>
1414
<label
1515
class="block text-lg text-primary-dark dark:text-primary-light mb-2"
1616
for="name"
1717
>Full Name</label
1818
>
1919
<input
20-
class="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"
20+
class="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"
2121
id="name"
2222
name="name"
2323
type="text"
@@ -26,14 +26,14 @@
2626
aria-label="Name"
2727
/>
2828
</div>
29-
<div class="mt-6 font-general-medium">
29+
<div>
3030
<label
3131
class="block text-lg text-primary-dark dark:text-primary-light mb-2"
3232
for="email"
3333
>Email</label
3434
>
3535
<input
36-
class="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"
36+
class="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"
3737
id="email"
3838
name="email"
3939
type="text"
@@ -42,14 +42,14 @@
4242
aria-label="Email"
4343
/>
4444
</div>
45-
<div class="mt-6 font-general-medium">
45+
<div>
4646
<label
4747
class="block text-lg text-primary-dark dark:text-primary-light mb-2"
4848
for="subject"
4949
>Subject</label
5050
>
5151
<input
52-
class="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"
52+
class="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"
5353
id="subject"
5454
name="subject"
5555
type="text"
@@ -59,14 +59,14 @@
5959
/>
6060
</div>
6161

62-
<div class="mt-6 font-general-medium">
62+
<div>
6363
<label
6464
class="block text-lg text-primary-dark dark:text-primary-light mb-2"
6565
for="message"
6666
>Message</label
6767
>
6868
<textarea
69-
class="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"
69+
class="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"
7070
id="message"
7171
name="message"
7272
cols="14"
@@ -75,10 +75,10 @@
7575
></textarea>
7676
</div>
7777

78-
<div class="mt-6">
78+
<div>
7979
<Button
8080
title="Send Message"
81-
class="font-general-medium 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-lg"
81+
class="px-4 py-2.5 text-white tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-lg"
8282
type="submit"
8383
aria-label="Send Message"
8484
/>

0 commit comments

Comments
 (0)