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