-
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.
Fix : Add file to fix the goto function Error
- #8
- Loading branch information
carboxaminoo
committed
Mar 6, 2024
1 parent
fb53c79
commit 719f362
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
<script> | ||
import { goto } from '$app/navigation'; | ||
export let styleVariant = "outlined"; | ||
let className = ""; | ||
export { className as class }; | ||
export let style; | ||
const variantsClassName = "style-variant-" + styleVariant; | ||
export let name = "Do something"; | ||
export let type = "button"; | ||
export let targetPath = "/"; | ||
</script> | ||
|
||
<button | ||
type = {type} | ||
on:click={goto(targetPath)} | ||
style="{'background: var(--neutral-10, #486284);border-radius: 50px; border-style: solid; border-color: var(--neutral-10, #486284); border-width: 1px; padding: 12px 20px 12px 20px; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: center; position: relative; overflow: hidden;' + style}" | ||
> | ||
<div | ||
style=" | ||
color: var(--neutral-0, #ffffff); | ||
text-align: left; | ||
font-family: var(--body-small-font-family, 'DmSans-Regular', sans-serif); | ||
font-size: var(--body-small-font-size, 24px); | ||
line-height: var(--body-small-line-height, 24px); | ||
font-weight: var(--body-small-font-weight, 400); | ||
position: relative; | ||
" | ||
> | ||
{name} | ||
</div> | ||
</button> |