-
Notifications
You must be signed in to change notification settings - Fork 3
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
26 changed files
with
510 additions
and
58 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
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,30 @@ | ||
<script> | ||
import { slide } from 'svelte/transition'; | ||
import Icon from './Icon.svelte'; | ||
export let expandable = false; | ||
let open = true; | ||
const onTogglePress = () => { | ||
open = !open; | ||
}; | ||
</script> | ||
|
||
<div class="flex flex-col"> | ||
<div on:click={onTogglePress} on:keypress={onTogglePress} class="cursor-pointer"> | ||
<div class="flex items-start space-x-4"> | ||
{#if expandable} | ||
<div class="pt-2 text-neutral-400"> | ||
<Icon name="arrow-down" size="w-4 h-3" class={open ? '' : '-rotate-90'} /> | ||
</div> | ||
{/if} | ||
<slot name="header" /> | ||
</div> | ||
</div> | ||
|
||
{#if open && expandable} | ||
<div transition:slide> | ||
<slot name="expanded" /> | ||
</div> | ||
{/if} | ||
</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
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<script lang="ts"> | ||
import Icon from '../Icon.svelte'; | ||
export let loading = true; | ||
</script> | ||
|
||
{#if loading} | ||
<svg class="w-6 h-6 animate-spin"><use href="/images/icons.svg#icon-loading" /></svg> | ||
{:else} | ||
<slot /> | ||
{/if} | ||
<div class="relative"> | ||
<span class:text-transparent={loading}><slot /></span> | ||
{#if loading} | ||
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"> | ||
<Icon name="loading" class="w-6 h-6 animate-spin" /> | ||
</div> | ||
{/if} | ||
</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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div | ||
class="w-full absolute bottom-0 bg-gradient-to-t from-white to-transparent h-full backdrop-blur-xs" | ||
class="w-full absolute bottom-0 bg-gradient-to-t from-white to-transparent h-full opacity-90 backdrop-blur-xs" | ||
> | ||
<div class="flex items-center justify-center w-full h-full bg-white bg-opacity-60"> | ||
<p class="text-3xl font-bold text-primary ">🚀 Coming soon!</p> | ||
<p class="text-3xl font-bold text-primary">🚀 Coming soon!</p> | ||
</div> | ||
</div> |
Oops, something went wrong.