-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
c6bf8f7
commit 1479c6a
Showing
17 changed files
with
395 additions
and
414 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script lang="ts"> | ||
export let style: undefined | string = undefined; | ||
import { LoadingSpinner } from '$lib/comp'; | ||
</script> | ||
|
||
<div | ||
class="w-full {style} absolute left-0 top-0 z-[10000] flex items-center justify-center bg-teal dark:bg-dark" | ||
> | ||
<div class="space-y-6"> | ||
<LoadingSpinner color="text-link" /> | ||
<p class="text-center font-semibold text-primary dark:text-white">Loading map...</p> | ||
</div> | ||
</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,30 @@ | ||
<script lang="ts"> | ||
export let progress: number | undefined; | ||
import { fade } from 'svelte/transition'; | ||
import { tick } from 'svelte'; | ||
const hideProgressBar = async () => { | ||
await tick(); | ||
progress = undefined; | ||
}; | ||
$: progress === 100 && hideProgressBar(); | ||
</script> | ||
|
||
{#if progress !== undefined} | ||
<div | ||
out:fade={{ delay: 1000 }} | ||
class="absolute left-1/2 top-1/2 z-[10000] -translate-x-1/2 -translate-y-1/2 space-y-2 rounded-lg border border-primary bg-teal p-4 dark:border-white dark:bg-dark" | ||
> | ||
<p class="text-center text-primary dark:text-white">Loading map...</p> | ||
|
||
<div class="mx-auto w-[200px] rounded-full bg-link/25"> | ||
<div | ||
class="h-2 rounded-full bg-link transition-all duration-1000" | ||
style:width={progress.toString() + '%'} | ||
/> | ||
</div> | ||
</div> | ||
{/if} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.