Skip to content

Commit

Permalink
feat(frontend): ✨ Add loading component for blog articles (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Hermansen authored and GitHub committed Apr 3, 2024
1 parent 9ea697d commit 8279999
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions frontend/src/app/blog/[articleSlug]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Skeleton } from "@/components/ui/skeleton";
import React from "react";

export default function Loading() {
return (
<div className="m-5 flex h-full w-full items-center justify-center">
<div className="flex w-4/5 flex-col items-center justify-center gap-4 bg-background p-5">
<Skeleton className="h-16 w-full" />
<Skeleton className="h-8 w-full" />
<Skeleton className="h-96 w-full" />
<Skeleton className="h-96 w-1/2" />
</div>
</div>
);
}

0 comments on commit 8279999

Please sign in to comment.