improve accessibility of footer email links

This commit is contained in:
Brandon Egger
2023-04-19 01:08:49 -05:00
parent 15070f2232
commit 55d2051934
2 changed files with 16 additions and 10 deletions

View File

@ -66,25 +66,27 @@ const ContactInfo = ({ name, title, email, phone }: ContactInfo) => {
{email ? (
<section className="space-x-2">
<Image
className="inline"
className="inline select-none"
alt="email"
width={20}
height={20}
src="/mail-icon-white.svg"
/>
<h2 className="inline text-sm">{email}</h2>
<a href={`mailto:${email}?`} className="inline select-all text-sm">
{email}
</a>
</section>
) : undefined}
{phone ? (
<section className="space-x-2">
<Image
className="inline"
className="inline select-none"
alt="phone"
width={20}
height={20}
src="/phone-call-icon.svg"
/>
<h2 className="inline text-sm">{phone}</h2>
<h2 className="inline select-all text-sm">{phone}</h2>
</section>
) : undefined}
</section>