Skip to content

Commit

Permalink
created loading skeleton component
Browse files Browse the repository at this point in the history
  • Loading branch information
Osmait committed Nov 2, 2023
1 parent 7dde9a7 commit 2625794
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions FrontendRedSocial/red-social/app/components/LoadingSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { CardBody, CardFooter, CardHeader, Card, Skeleton } from "@nextui-org/react"
export default function LoadingSkeleton() {
return (

<Card className="max-w-[750px] hover:bg-zinc-900 bg-black border-b-1 border-zinc-600 rounded-none ">


<CardHeader >
<div className="flex gap-5">
<Skeleton className="rounded-full w-12 h-12" />
<Skeleton className="h-3 w-24 rounded-lg" />
</div>
</CardHeader >

<CardBody className="px-3 py-0 text-small text-white">
<Skeleton className="h-3 w-4/5 rounded-lg" />
</CardBody>
<CardFooter className="gap-3">
<Skeleton className="h-3 w-4/5 rounded-lg" />
</CardFooter>
</Card>

)
}

0 comments on commit 2625794

Please sign in to comment.