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