mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 21:29:14 +00:00
transfer to PC
This commit is contained in:
20
src/components/Button.svelte
Normal file
20
src/components/Button.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
export let onClick = () => {}
|
||||
</script>
|
||||
|
||||
<button on:click={onClick} class="btn">
|
||||
<slot />
|
||||
</button>
|
||||
|
||||
<style>
|
||||
.btn {
|
||||
background: var(--button-bg);
|
||||
color: var(--button-text);
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn:hover { border-color: var(--primary); }
|
||||
</style>
|
||||
Reference in New Issue
Block a user