Skip to content

Commit

Permalink
update: add title attributes to navbar and social media links for bet…
Browse files Browse the repository at this point in the history
…ter accessibility
  • Loading branch information
Tsuzat committed Dec 27, 2024
1 parent a7e18b9 commit 8b261d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/custom/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</script>

<nav class="flex w-full items-center justify-between py-2">
<a href="/" class="inline-flex items-center gap-4 text-xl font-bold">
<a href="/" class="inline-flex items-center gap-4 text-xl font-bold" title="Home">
<Lottie animationData={lottieLogo} class="size-12" />
<span class="hidden text-muted-foreground sm:block">TSUZAT</span>
</a>
Expand All @@ -24,6 +24,7 @@
class:current={page.url.pathname.startsWith(`/${link}`)}
href="/{link}"
class="hidden capitalize sm:block"
title="/{link}"
>
{link}
</a>
Expand All @@ -40,6 +41,7 @@
onclick={() => {
goto(`/${link}`);
}}
title="/{link}"
class={cn(page.url.pathname.startsWith(`/${link}`) && 'underline', 'capitalize')}
>
{link}
Expand Down
5 changes: 5 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
target="_blank"
rel="noreferrer noopener"
class="text-[#a100ff] underline transition-all duration-500 hover:drop-shadow-[0_0_1rem_#a100ff]"
title="Accenture Hover Card"
>
@Accenture
</HoverCard.Trigger>
Expand All @@ -73,6 +74,7 @@
href="https://github.com/Tsuzat"
target="_blank"
class="flex items-center transition-all duration-500 hover:text-foreground hover:drop-shadow-[0_0_1rem_#000000] dark:hover:drop-shadow-[0_0_1rem_#FFFFFF]"
title="Github Link"
>
<Github class="mr-2 size-5" />
<span class="hidden sm:block">Github</span>
Expand All @@ -81,6 +83,7 @@
href="https://www.linkedin.com/in/alok-singh-tsuzat"
target="_blank"
class="flex items-center transition-all duration-500 hover:text-[#0077b5] hover:drop-shadow-[0_0_1rem_#0077b5]"
title="Linkedin Link"
>
<Linkedin class="mr-2 size-5 text-[#0077b5]" />
<span class="hidden sm:block">LinkedIn</span>
Expand All @@ -89,6 +92,7 @@
href="mailto:[email protected] "
target="_blank"
class="flex items-center transition-all duration-500 hover:text-[#ea4335] hover:drop-shadow-[0_0_1rem_#ea4335]"
title="Email"
>
<Email class="mr-2 size-5 text-[#ea4335]" />
<span class="hidden sm:block">Email</span>
Expand All @@ -97,6 +101,7 @@
href="https://x.com/TheTsuzat"
target="_blank"
class="flex items-center transition-all duration-500 hover:text-foreground hover:drop-shadow-[0_0_1rem_#000000] dark:hover:drop-shadow-[0_0_1rem_#FFFFFF]"
title="Twitter/X"
>
<Twitter class="mr-2 size-5" />
<span class="hidden sm:block">X/Twitter</span>
Expand Down

0 comments on commit 8b261d5

Please sign in to comment.