-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
4f7de0b
commit dbd116b
Showing
12 changed files
with
85 additions
and
62 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import { Icon } from '@smui/icon-button'; | ||
import { tooltip } from '@svelte-plugins/tooltips'; | ||
import { Tooltip } from '@svelte-plugins/tooltips'; | ||
export let pageName: string; | ||
export let tooltipContent: string; | ||
export let icon: string; | ||
</script> | ||
|
||
<button | ||
class="m-auto flex items-center cursor-pointer p-3 hover:bg-black-transparent {$page.url.href.includes( | ||
pageName | ||
) | ||
? 'font-medium' | ||
: ''}" | ||
on:click | ||
use:tooltip={{ | ||
content: tooltipContent, | ||
position: 'right', | ||
theme: 'zeno-tooltip' | ||
}} | ||
> | ||
<div class="w-6 h-6 fill-grey"> | ||
<Icon style="outline:none" tag="svg" viewBox="0 0 24 24"> | ||
<path | ||
class={`${$page.url.href.includes(pageName) ? 'fill-primary' : 'fill-grey'}`} | ||
d={icon} | ||
/> | ||
</Icon> | ||
</div> | ||
</button> | ||
<Tooltip content={tooltipContent} theme={'zeno-tooltip'} position="right"> | ||
<button | ||
class="m-auto flex items-center cursor-pointer p-3 hover:bg-black-transparent {$page.url.href.includes( | ||
pageName | ||
) | ||
? 'font-medium' | ||
: ''}" | ||
on:click | ||
> | ||
<div class="w-6 h-6 fill-grey"> | ||
<Icon style="outline:none" tag="svg" viewBox="0 0 24 24"> | ||
<path | ||
class={`${$page.url.href.includes(pageName) ? 'fill-primary' : 'fill-grey'}`} | ||
d={icon} | ||
/> | ||
</Icon> | ||
</div> | ||
</button> | ||
</Tooltip> |
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
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
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