mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-11 17:50:32 +08:00
✨ Add tags for accessibility.
This commit is contained in:
parent
cb503ea279
commit
b9eec5f4a6
@ -1,5 +1,6 @@
|
||||
<svg
|
||||
width="30"
|
||||
name="SVGL Logo"
|
||||
viewBox="0 0 512 512"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@ -71,13 +71,20 @@
|
||||
)}
|
||||
>
|
||||
{#if !link.external}
|
||||
<svelte:component this={link.icon} size={16} strokeWidth={1.5} class="mr-2" />
|
||||
<svelte:component
|
||||
this={link.icon}
|
||||
size={16}
|
||||
strokeWidth={1.5}
|
||||
class="mr-2"
|
||||
name={link.name}
|
||||
/>
|
||||
{/if}
|
||||
<span class={cn('hidden md:block', !link.external && 'block')}>{link.name}</span>
|
||||
{#if link.external}
|
||||
<svelte:component
|
||||
this={link.icon}
|
||||
size={16}
|
||||
name="External link"
|
||||
strokeWidth={1.5}
|
||||
class="ml-1 transition-transform duration-300 group-hover:translate-x-[1px] hidden md:block"
|
||||
/>
|
||||
@ -90,6 +97,7 @@
|
||||
href="https://twitter.com/pheralb_"
|
||||
target="_blank"
|
||||
class="flex items-center space-x-1 hover:opacity-80 transition-opacity"
|
||||
title="Twitter"
|
||||
>
|
||||
<XIcon iconSize={16} />
|
||||
</a>
|
||||
@ -98,8 +106,9 @@
|
||||
href={social.url}
|
||||
target="_blank"
|
||||
class="flex items-center space-x-1 hover:opacity-80 transition-opacity"
|
||||
title={social.name}
|
||||
>
|
||||
<svelte:component this={social.icon} size={20} strokeWidth={1.5} />
|
||||
<svelte:component this={social.icon} size={20} strokeWidth={1.5} name={social.name} />
|
||||
</a>
|
||||
{/each}
|
||||
<Theme />
|
||||
|
@ -6,6 +6,7 @@
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width={iconSize || 16}
|
||||
height={iconSize || 16}
|
||||
name="Twitter"
|
||||
fill="none"
|
||||
viewBox="0 0 1200 1227"
|
||||
><path
|
||||
|
Loading…
x
Reference in New Issue
Block a user