-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Implement skeleton loading for better UI
- Loading branch information
Showing
4 changed files
with
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script setup lang="ts"> | ||
import {Skeleton} from "~/components/ui/skeleton"; | ||
</script> | ||
|
||
<template> | ||
<div id="main" class="flex items-center"> | ||
<Skeleton class="aspect-square h-20 sm:h-24 md:h-28 xl:h-32"/> | ||
<div id="infos" class="flex items-center w-full justify-between pl-2 pr-4 h-20 sm:h-24 md:h-28 xl:h-32"> | ||
<div id="text-infos" class="flex flex-col w-full h-full justify-center"> | ||
<div class="flex flex-row justify-between items-center"> | ||
<div id="title" class="flex flex-row gap-2"> | ||
<Skeleton class="w-14 h-4"/> | ||
</div> | ||
<div id="number"> | ||
<Skeleton class="w-6 h-4"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
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,25 @@ | ||
<script setup lang="ts"> | ||
import {Skeleton} from "~/components/ui/skeleton"; | ||
</script> | ||
|
||
<template> | ||
<div id="main" class="flex items-center"> | ||
<Skeleton class="aspect-square h-20 sm:h-24 md:h-28 xl:h-32"/> | ||
<div id="infos" class="flex items-center w-full justify-between px-2 h-20 sm:h-24 md:h-28 xl:h-32"> | ||
<div id="text-infos" class="flex flex-col justify-between gap-auto h-full py-1 sm:py-2"> | ||
<div class="flex flex-col gap-0 md:gap-1 lg:gap-2"> | ||
<div id="title" class="flex flex-row gap-2"> | ||
<Skeleton class="w-64 h-6"/> | ||
</div> | ||
<Skeleton class="w-16 h-4"/> | ||
</div> | ||
<Skeleton class="w-8 h-4"/> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |