-
Notifications
You must be signed in to change notification settings - Fork 1
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
fdc4a9d
commit 9824882
Showing
7 changed files
with
137 additions
and
47 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,29 @@ | ||
import { Container } from '@/components/Container'; | ||
import { ProfileAvatarSkeleton } from './ProfileAvatar'; | ||
import { Skeleton } from '@/components/ui/skeleton'; | ||
import { FeedSkeleton } from './Feed'; | ||
|
||
export const PageSkeleton = () => { | ||
return ( | ||
<Container className="pt-16 max-w-[1440px] overflow-auto"> | ||
<div className="flex max-lg:flex-col w-full gap-4"> | ||
<div className="lg:w-[30%] min-w-[300px] w-full"> | ||
<div className="flex flex-col gap-y-2 text-center items-center"> | ||
<ProfileAvatarSkeleton size="5xl" /> | ||
<div className="text-3xl font-semibold"> | ||
<Skeleton className="w-[140px] h-9 bg-primary-200 rounded-3xl" /> | ||
</div> | ||
<div className="flex gap-x-1 items-center text-md text-gray-600 font-medium"> | ||
<Skeleton className="w-[160px] h-8 bg-primary-200 rounded-3xl" /> | ||
<Skeleton className="w-[100px] h-8 bg-primary-200 rounded-3xl" /> | ||
</div> | ||
<Skeleton className="mt-2 w-[260px] h-6 bg-primary-200 rounded-3xl" /> | ||
</div> | ||
</div> | ||
<div className="w-full"> | ||
<FeedSkeleton /> | ||
</div> | ||
</div> | ||
</Container> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { PageSkeleton } from './PageSkeleton'; | ||
|
||
export default function Loading() { | ||
// You can add any UI inside Loading, including a Skeleton. | ||
return <div>Loading...</div>; | ||
return <PageSkeleton />; | ||
} |
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