-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loader in showcase and add it to screenshots (#2710)
* Fix loader in showcase and add it to screenshots. * Cast import to string
- Loading branch information
Showing
5 changed files
with
41 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
import Screen from "../layouts/Screen.astro"; | ||
--- | ||
|
||
<Screen title="Loader" pageName="loader"> | ||
<script> | ||
import { withLoader } from "$src/components/loader"; | ||
import { showMessage } from "$src/components/message"; | ||
|
||
withLoader(() => new Promise(() => showMessage({ message: "Loading..." })), true) | ||
</script> | ||
<style> | ||
/* Disable loader animation */ | ||
.c-loader__image { | ||
animation: none; | ||
} | ||
</style> | ||
</Screen> |