Skip to content

Commit

Permalink
refactor: label on contact component (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
yacosta738 authored Feb 23, 2024
1 parent 043c6a6 commit 51e8d8f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/organisms/Contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const t = useTranslations(lang);
</div>
<form id="contact-form" class="mx-auto" method="POST" action={import.meta.env.FORMSPREE}>
<div>
<span class="text-sm font-bold uppercase text-lightest-slate">
<label for="form-name" class="text-sm font-bold uppercase text-lightest-slate">
{t('yourFullName')}
</span>
</label>
<input
id="form-name"
class="focus:shadow-outline mt-2 w-full rounded-lg border-2 border-green-500 bg-transparent p-3 text-green-500 focus:outline-none"
Expand All @@ -41,9 +41,9 @@ const t = useTranslations(lang);
/>
</div>
<div class="mt-8">
<span class="text-sm font-bold uppercase text-lightest-slate">
<label for="form-email" class="text-sm font-bold uppercase text-lightest-slate">
{t('yourEmail')}
</span>
</label>
<input
id="form-email"
class="focus:shadow-outline mt-2 w-full rounded-lg border-2 border-green-500 bg-transparent p-3 text-green-500 focus:outline-none"
Expand All @@ -54,9 +54,9 @@ const t = useTranslations(lang);
/>
</div>
<div class="mt-8">
<span class="text-sm font-bold uppercase text-lightest-slate">
<label for="form-subject" class="text-sm font-bold uppercase text-lightest-slate">
{t('subject')}
</span>
</label>
<input
id="form-subject"
class="focus:shadow-outline mt-2 w-full rounded-lg border-2 border-green-500 bg-transparent p-3 text-green-500 focus:outline-none"
Expand All @@ -68,9 +68,9 @@ const t = useTranslations(lang);
/>
</div>
<div class="mt-8">
<span class="text-sm font-bold uppercase text-lightest-slate">
<label for="form-message" class="text-sm font-bold uppercase text-lightest-slate">
{t('message')}
</span>
</label>
<textarea
id="form-message"
placeholder={t('messagePlaceholder')}
Expand Down

0 comments on commit 51e8d8f

Please sign in to comment.