-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
17 changed files
with
133 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script lang="ts"> | ||
type Props = { | ||
title: string; | ||
}; | ||
let { title }: Props = $props(); | ||
</script> | ||
|
||
<div class="text-xs transition-all duration-200"> | ||
<p class="hidden px-6 py-4 uppercase group-hover:sm:block md:block">{title}</p> | ||
<hr class="mx-4 mb-[31px] mt-8 block group-hover:sm:hidden md:hidden" /> | ||
</div> |
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,31 @@ | ||
<script lang="ts"> | ||
import Icon from '$lib/components/Icon/Icon.svelte'; | ||
import type { IconProps } from '$lib/types.js'; | ||
import { tv } from 'tailwind-variants'; | ||
type Props = { | ||
title: string; | ||
active?: boolean; | ||
href: string; | ||
} & IconProps; | ||
let { href, title, active = false, ...iconProps }: Props = $props(); | ||
const styles = tv({ | ||
base: 'hover:bg-neutral hover:text-primary flex w-full place-items-center gap-4 rounded-r-full py-3 transition-[padding] delay-100 duration-100 pl-5 group-hover:sm:px-5 md:px-5', | ||
variants: { | ||
active: { | ||
true: 'bg-primary/10 text-primary', | ||
false: '', | ||
}, | ||
}, | ||
}); | ||
</script> | ||
|
||
<a {href} draggable="false" aria-current={active ? 'page' : undefined} class={styles({ active })}> | ||
<div class="flex w-full place-items-center gap-4 overflow-hidden truncate"> | ||
<Icon size="1.5em" class="shrink-0" aria-hidden={true} {...iconProps} /> | ||
<span class="text-sm font-medium">{title}</span> | ||
</div> | ||
<div></div> | ||
</a> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script lang="ts"> | ||
import ExampleLayout from '$docs/components/ExampleLayout.svelte'; | ||
import BasicExample from './BasicExample.svelte'; | ||
import basicExample from './BasicExample.svelte?raw'; | ||
import GroupExample from './GroupExample.svelte'; | ||
import groupExample from './GroupExample.svelte?raw'; | ||
const examples = [ | ||
{ title: 'Basic', code: basicExample, component: BasicExample }, | ||
{ title: 'Group', code: groupExample, component: GroupExample }, | ||
]; | ||
</script> | ||
|
||
<ExampleLayout name="Basic" {examples} /> |
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,8 @@ | ||
<script lang="ts"> | ||
import { NavbarItem } from '@immich/ui'; | ||
import { mdiHome } from '@mdi/js'; | ||
</script> | ||
|
||
<div class="w-[200px]"> | ||
<NavbarItem icon={mdiHome} title="Home" href="#" active /> | ||
</div> |
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,12 @@ | ||
<script lang="ts"> | ||
import NavbarGroup from '$lib/components/Navbar/NavbarGroup.svelte'; | ||
import { NavbarItem } from '@immich/ui'; | ||
import { mdiButtonPointer, mdiCardOutline, mdiHome } from '@mdi/js'; | ||
</script> | ||
|
||
<div class="w-[200px]"> | ||
<NavbarItem icon={mdiHome} title="Home" href="#" active /> | ||
<NavbarGroup title="Components" /> | ||
<NavbarItem icon={mdiButtonPointer} title="Button" href="#" /> | ||
<NavbarItem icon={mdiCardOutline} title="Card" href="#" /> | ||
</div> |
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