feat: create Button component
This commit is contained in:
parent
637f6e8b73
commit
b5d1d771c6
21
src/components/Button.astro
Normal file
21
src/components/Button.astro
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<button><slot /></button>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
button {
|
||||||
|
background-color: transparent;
|
||||||
|
color: white;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
transition-duration: 0.3s;
|
||||||
|
border: 2px solid white;
|
||||||
|
transition-property: color, background-color;
|
||||||
|
font-weight: bold;
|
||||||
|
transition-timing-function: ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: black;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user