-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniele Ciminieri
committed
Oct 14, 2024
1 parent
532c6c0
commit 515b60a
Showing
9 changed files
with
272 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script> | ||
const { text, color, onClick, classes } = $props(); | ||
</script> | ||
|
||
<button class="{classes || ''} btn btn-blur rounded-pill px-3 py-1" onclick={onClick}>{text}</button | ||
> | ||
|
||
<style> | ||
.btn-blur { | ||
background-color: transparent; | ||
color: white; | ||
box-shadow: | ||
inset 0px 0px 2px 2px var(--btn-color), | ||
0px 0px 2px 2px var(--btn-color); | ||
border: 1px solid var(--btn-color); | ||
transition: all 0.3s ease; | ||
} | ||
.btn-blur:hover { | ||
background-color: var(--btn-color); | ||
} | ||
.btn-blur:active, | ||
.btn-blur:focus { | ||
border: 1px solid var(--btn-color); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script> | ||
const { icon, disabled, onClick, classes } = $props(); | ||
</script> | ||
|
||
<button | ||
class="{classes || | ||
''} btn btn-blur rounded-circle d-flex justify-content-center align-items-center" | ||
style="width: 35px; height: 35px;" | ||
{disabled} | ||
onclick={onClick} | ||
> | ||
<i class={icon}></i> | ||
</button> | ||
|
||
<style> | ||
.btn-blur { | ||
background-color: transparent; | ||
color: white; | ||
box-shadow: | ||
inset 0px 0px 2px 2px var(--btn-color), | ||
0px 0px 2px 2px var(--btn-color); | ||
border: 1px solid var(--btn-color); | ||
transition: all 0.3s ease; | ||
} | ||
.btn-blur:hover { | ||
background-color: var(--btn-color); | ||
} | ||
.btn-blur:active, | ||
.btn-blur:focus { | ||
border: 1px solid var(--btn-color); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.