web/src/components/form/Button.astro
36 lines · 696 bytes
1---
2
3const {
4 text,
5 url,
6 className,
7} = Astro.props;
8
9---
10
11<div class={`button ${className || ''}`}>
12 <a href={url}>{text}<slot /></a>
13</div>
14
15<style lang="scss">
16 .button {
17 font-family: "Lekton", sans-serif;
18 text-align: center;
19 border: 1px solid var(--foreground);
20 box-shadow: 3px 3px 0 var(--foreground);
21 background: var(--accent);
22 border-radius: 18px;
23 padding: 0.5rem 1rem;
24 transition: all 0.2s ease-in-out;
25 &:hover {
26 box-shadow: 4px 4px 0 var(--foreground);
27 }
28 a {
29 text-decoration: none;
30 color: var(--accent-fg);;
31 font-size: 1.2rem;
32 font-family: "Lekton", sans-serif;
33 font-weight: bold;
34 }
35 }
36</style>