Improve design

This commit is contained in:
prototypa
2023-01-21 20:21:00 -05:00
parent 79283511d9
commit 8e702e6ee5
11 changed files with 53 additions and 320 deletions

View File

@ -1,6 +1,8 @@
---
import { Icon } from 'astro-icon';
import { SITE } from '~/config.mjs';
export interface Props {
label?: string;
class?: string;
@ -17,6 +19,10 @@ const {
} = Astro.props;
---
<button type="button" class={className} aria-label={label} data-aw-toggle-color-scheme>
<Icon name={iconName} class={iconClass} />
</button>
{
!(SITE?.defaultTheme && SITE.defaultTheme.endsWith(':only')) && (
<button type="button" class={className} aria-label={label} data-aw-toggle-color-scheme>
<Icon name={iconName} class={iconClass} />
</button>
)
}