-
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.
131 loading skeleton for blog posts page (#196)
* feat(frontend): ✨ attempt creating a simple skeleton loading page for blogs * feat(frontend): ✨ add loading skeleton (unfinished) to blogs page * feat(frontend): ✨ blogs loading skeleton Co-authored-by: Mads Hermansen <madshermansen@users.noreply.github.com> * feat(frontend): ✨ add loading component to use Skeleton component --------- Co-authored-by: Mads Hermansen <madshermansen@users.noreply.github.com> Co-authored-by: Mads Hermansen <119772939+madshermansen@users.noreply.github.com>
- Loading branch information
3 people
authored and
GitHub
committed
Apr 3, 2024
1 parent
f8cc8e0
commit 9ea697d
Showing
3 changed files
with
65 additions
and
35 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import { Skeleton } from "@/components/ui/skeleton"; | ||
| import React from "react"; | ||
|
|
||
| export default function Loading() { | ||
| return ( | ||
| <div> | ||
| {/* Full width div, split into three equal portions */} | ||
| <div className="flex w-full origin-center flex-col justify-center"> | ||
| <Skeleton className="my-10 h-96 w-3/4 self-center" /> | ||
| <div className="flex h-10 w-1/3 flex-row items-center justify-center gap-4 self-center"> | ||
| <Skeleton className="h-full w-1/3 min-w-20 " /> | ||
| <Skeleton className="h-full w-1/3 min-w-20 " /> | ||
| <Skeleton className="h-full w-1/3 min-w-20 " /> | ||
| </div> | ||
| <div className="my-10 flex w-full origin-center flex-row flex-wrap justify-center gap-4"> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| <Skeleton className="flex h-96 w-1/4 flex-col " /> | ||
| </div> | ||
| </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
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