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
|
<svg
|
||||||
width="30"
|
width="30"
|
||||||
|
name="SVGL Logo"
|
||||||
viewBox="0 0 512 512"
|
viewBox="0 0 512 512"
|
||||||
fill="none"
|
fill="none"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
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}
|
{#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}
|
{/if}
|
||||||
<span class={cn('hidden md:block', !link.external && 'block')}>{link.name}</span>
|
<span class={cn('hidden md:block', !link.external && 'block')}>{link.name}</span>
|
||||||
{#if link.external}
|
{#if link.external}
|
||||||
<svelte:component
|
<svelte:component
|
||||||
this={link.icon}
|
this={link.icon}
|
||||||
size={16}
|
size={16}
|
||||||
|
name="External link"
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
class="ml-1 transition-transform duration-300 group-hover:translate-x-[1px] hidden md:block"
|
class="ml-1 transition-transform duration-300 group-hover:translate-x-[1px] hidden md:block"
|
||||||
/>
|
/>
|
||||||
@ -90,6 +97,7 @@
|
|||||||
href="https://twitter.com/pheralb_"
|
href="https://twitter.com/pheralb_"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="flex items-center space-x-1 hover:opacity-80 transition-opacity"
|
class="flex items-center space-x-1 hover:opacity-80 transition-opacity"
|
||||||
|
title="Twitter"
|
||||||
>
|
>
|
||||||
<XIcon iconSize={16} />
|
<XIcon iconSize={16} />
|
||||||
</a>
|
</a>
|
||||||
@ -98,8 +106,9 @@
|
|||||||
href={social.url}
|
href={social.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="flex items-center space-x-1 hover:opacity-80 transition-opacity"
|
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>
|
</a>
|
||||||
{/each}
|
{/each}
|
||||||
<Theme />
|
<Theme />
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width={iconSize || 16}
|
width={iconSize || 16}
|
||||||
height={iconSize || 16}
|
height={iconSize || 16}
|
||||||
|
name="Twitter"
|
||||||
fill="none"
|
fill="none"
|
||||||
viewBox="0 0 1200 1227"
|
viewBox="0 0 1200 1227"
|
||||||
><path
|
><path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user