-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from Shifin-Malik/loading-animation
feat(loading-animation): add loading-animation
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script lang="ts"> | ||
import { mode } from 'mode-watcher'; | ||
import { fade } from 'svelte/transition'; | ||
import appIconLight from '@/src/assets/images/Notpad Logo Light.svg'; | ||
import appIconDark from '@/src/assets/images/Notpad Logo Dark.svg'; | ||
</script> | ||
|
||
<div | ||
transition:fade | ||
class="fixed inset-0 bottom-0 left-0 right-0 top-0 z-50 flex | ||
flex-col items-center justify-center bg-primary-foreground" | ||
> | ||
<img class="w-20 animate-pulse" alt="icon" src={$mode == 'dark' ? appIconDark : appIconLight} /> | ||
</div> |