-
Notifications
You must be signed in to change notification settings - Fork 9
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
e8832de
commit ba372a1
Showing
20 changed files
with
347 additions
and
30 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,45 @@ | ||
<script lang="ts"> | ||
import { cn } from '$lib/utils'; | ||
import DescriptionList from './description-list.svelte'; | ||
const backgrounds = [ | ||
{ title: 'Background 1', description: 'Default element background', color: 'background-100' }, | ||
{ title: 'Background 2', description: 'Default element background', color: 'background-200' } | ||
]; | ||
</script> | ||
|
||
<DescriptionList items={backgrounds} /> | ||
|
||
<section | ||
class="mt-10 flex h-[700px] w-full flex-col border border-gray-400 bg-background-100 md:h-[412px] md:flex-row" | ||
> | ||
{@render bg_infographic({ bg: 'bg-background-100', border: 'md:border-r' })} | ||
{@render bg_infographic({ bg: 'bg-background-200', border: 'border-t md:border-t-0' })} | ||
</section> | ||
|
||
{#snippet bg_infographic({ bg, border }: { bg: string; border?: string })} | ||
<div | ||
class={cn( | ||
'flex h-[50%] items-center justify-center border-gray-400 md:h-[100%] md:w-[50%]', | ||
bg, | ||
border | ||
)} | ||
> | ||
<div | ||
class={cn( | ||
'relative flex h-[164px] w-[164px] items-center justify-center rounded-[12px] border border-gray-400 bg-background-100' | ||
)} | ||
> | ||
<p | ||
class="text-mono flex size-6 items-center justify-center rounded-full bg-gray-alpha-100 font-mono text-xs text-gray-900" | ||
> | ||
1 | ||
</p> | ||
<p | ||
class="text-mono absolute bottom-[-57px] flex size-6 items-center justify-center rounded-full bg-gray-alpha-100 font-mono text-xs text-gray-900" | ||
> | ||
2 | ||
</p> | ||
</div> | ||
</div> | ||
{/snippet} |
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,17 @@ | ||
<script lang="ts"> | ||
import { Button } from '$lib/components/ui/button'; | ||
import Demo from './demo.svelte'; | ||
import DescriptionList from './description-list.svelte'; | ||
const backgrounds = [ | ||
{ title: 'Color 4', description: 'Default border', color: 'gray-400' }, | ||
{ title: 'Color 5', description: 'Hover border', color: 'gray-500' }, | ||
{ title: 'Color 6', description: 'Active border', color: 'gray-600' } | ||
]; | ||
</script> | ||
|
||
<DescriptionList items={backgrounds} /> | ||
|
||
<Demo class="h-[136px] items-center justify-center"> | ||
<Button variant="secondary">New Project</Button> | ||
</Demo> |
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,63 @@ | ||
<script lang="ts"> | ||
import { Icons } from '$lib/assets/icons'; | ||
import { Badge } from '$lib/components/ui/badge'; | ||
import Demo from './demo.svelte'; | ||
import DescriptionList from './description-list.svelte'; | ||
const backgrounds = [ | ||
{ title: 'Color 1', description: 'Default background', color: 'gray-100' }, | ||
{ title: 'Color 2', description: 'Hover background', color: 'gray-200' }, | ||
{ title: 'Color 3', description: 'Active background', color: 'gray-300' } | ||
]; | ||
</script> | ||
|
||
<DescriptionList items={backgrounds} /> | ||
|
||
<p class="mt-10 text-gray-900"> | ||
If your UI component's default background is Background 1, you can used Color 1 as your hover | ||
background and Color 2 as your active background. On smaller UI elements like badges, you can use | ||
Color 2 or Color 3 as the background. | ||
</p> | ||
|
||
<Demo> | ||
<div class="border-gray-400 p-2 md:p-12"> | ||
<ul> | ||
{@render info_status()} | ||
{@render warning_status()} | ||
{@render info_status()} | ||
{@render info_status()} | ||
</ul> | ||
</div> | ||
|
||
<div | ||
class="flex h-[120px] grow items-center justify-center gap-2 border-t md:h-auto md:border-l md:border-t-0" | ||
> | ||
<Badge variant="gray">Hobby</Badge> | ||
<Badge variant="blue-subtle">Pro</Badge> | ||
<Badge variant="purple-subtle">Enterprise</Badge> | ||
</div> | ||
</Demo> | ||
|
||
{#snippet info_status()} | ||
<li class="flex h-10 w-full cursor-pointer items-center gap-3 rounded-sm px-3 md:w-[420px]"> | ||
<Icons.Information class="size-4" /> | ||
<p class="font-mono text-[13px] leading-5 text-gray-900">APR 26 15:54:21.12</p> | ||
<div class="h-5 w-px bg-gray-400"></div> | ||
<p class="font-mono text-[13px] leading-5 text-gray-900"> | ||
<span class="hidden md:inline-block">/dashboard</span>/overview | ||
</p> | ||
</li> | ||
{/snippet} | ||
|
||
{#snippet warning_status()} | ||
<li | ||
class="flex h-10 w-full cursor-pointer items-center gap-3 rounded-sm bg-amber-100 px-3 text-amber-900 md:w-[420px]" | ||
> | ||
<Icons.Warning class="size-4" /> | ||
<p class="font-mono text-[13px] leading-5">APR 26 15:54:21.12</p> | ||
<div class="h-5 w-px bg-gray-400"></div> | ||
<p class="font-mono text-[13px] leading-5"> | ||
<span class="hidden md:inline-block">/dashboard</span>/overview | ||
</p> | ||
</li> | ||
{/snippet} |
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 lang="ts"> | ||
import { Button } from '$lib/components/ui/button'; | ||
import { Gauge } from '$lib/components/ui/gauge'; | ||
import Demo from './demo.svelte'; | ||
import DescriptionList from './description-list.svelte'; | ||
const backgrounds = [ | ||
{ title: 'Color 7', description: 'High contrast background', color: 'gray-700' }, | ||
{ title: 'Color 8', description: 'Hover high contrast background', color: 'gray-800' } | ||
]; | ||
</script> | ||
|
||
<DescriptionList items={backgrounds} /> | ||
|
||
<Demo class="h-[136px] items-center justify-center"> | ||
<div class="flex h-full w-[50%] items-center justify-center gap-5 border-r border-gray-400"> | ||
<Gauge show_value size="sm" value={90} /> | ||
<Gauge show_value size="sm" value={55} /> | ||
<Gauge show_value size="sm" value={20} /> | ||
</div> | ||
|
||
<div class="flex w-[50%] justify-center"> | ||
<Button variant="success" size="lg">Upgrade to Pro</Button> | ||
</div> | ||
</Demo> |
Oops, something went wrong.