diff --git a/src/app/blog/[slug]/loading.tsx b/src/app/blog/[slug]/loading.tsx index 37aaae3..33346cb 100644 --- a/src/app/blog/[slug]/loading.tsx +++ b/src/app/blog/[slug]/loading.tsx @@ -1,5 +1,5 @@ -import { DetailPageLoading } from "@/components/page-loading"; +import { BlogDetailPageLoading } from "@/components/page-loading"; export default function Loading() { - return ; + return ; } diff --git a/src/app/blog/loading.tsx b/src/app/blog/loading.tsx index 2b27efc..409f16a 100644 --- a/src/app/blog/loading.tsx +++ b/src/app/blog/loading.tsx @@ -1,5 +1,5 @@ -import { ListingPageLoading } from "@/components/page-loading"; +import { BlogListingPageLoading } from "@/components/page-loading"; export default function Loading() { - return ; + return ; } diff --git a/src/components/page-loading.tsx b/src/components/page-loading.tsx index 9ba5dd5..e6077e7 100644 --- a/src/components/page-loading.tsx +++ b/src/components/page-loading.tsx @@ -1,5 +1,136 @@ import { Skeleton } from "@/components/ui/skeleton"; +export function BlogCardsSkeleton({ count = 6 }: { count?: number }) { + return ( + + ); +} + +export function BlogListingPageLoading() { + return ( +
+
+ + +
+
+ + + + +
+
+ + +
+
+ +
+ + +
+
+
+ ); +} + +export function BlogDetailPageLoading() { + return ( +
+
+
+ + +
+
+
+ +
+ + + + +
+
+ + +
+
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + + +
+
+ + + +
+ +
+
+ + + + +
+
+
+
+ ); +} + export function ListingPageLoading() { return (