diff --git a/src/components/Button.astro b/src/components/Button.astro new file mode 100644 index 0000000..d30ad63 --- /dev/null +++ b/src/components/Button.astro @@ -0,0 +1,63 @@ +--- +interface Props { + href?: string; // no href = disabled + variant?: 'primary' | 'secondary' | 'menu'; +} + +const { href, variant = 'primary', ...rest } = Astro.props; + +const classes: string[] = []; +if (!href) classes.push('disabled'); +if (variant !== 'secondary') classes.push('primary'); +if (variant === 'menu') classes.push('menu'); +--- + + + + + + diff --git a/src/graphics/redirect_arrow.svg b/src/graphics/redirect_arrow.svg new file mode 100644 index 0000000..9c41ec4 --- /dev/null +++ b/src/graphics/redirect_arrow.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/graphics/stopwatch.svg b/src/graphics/stopwatch.svg new file mode 100644 index 0000000..43fc9dc --- /dev/null +++ b/src/graphics/stopwatch.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/styles/_global.scss b/src/styles/_global.scss index a30b5bb..d94ff43 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -66,22 +66,5 @@ a { button { background: none; border: none; - border-radius: 8px; - display: flex; - gap: 0.5rem; - font-size: 1.25rem; cursor: pointer; } - -button.primary, -button.menu { - background: colors.$primary; -} - -button.secondary { - background: colors.$secondary; -} - -button.menu { - font-family: fonts.$mono; -}