Clean up main page links

This commit is contained in:
Bad Manners 2024-09-16 08:54:49 -03:00
parent f23b3774d4
commit aa14b2856a
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
11 changed files with 193 additions and 66 deletions

View file

@ -6,11 +6,20 @@ type Props = {
class?: string;
fill?: string;
children: any;
"aria-label"?: string;
};
const { width, height, class: className, fill = "currentColor", viewBox } = Astro.props;
const { width, height, class: className, fill = "currentColor", viewBox, "aria-label": ariaLabel } = Astro.props;
---
<svg style={{ width, height, fill }} class={className} viewBox={viewBox} aria-hidden="true">
<svg
style={{ width, height, fill }}
class={className}
viewBox={viewBox}
aria-hidden={ariaLabel ? undefined : "true"}
role={ariaLabel ? "img" : undefined}
aria-label={ariaLabel}
focusable="false"
>
<slot />
</svg>