diff --git a/frontend/src/app/blog/loading.tsx b/frontend/src/app/blog/loading.tsx new file mode 100644 index 0000000..0b9e862 --- /dev/null +++ b/frontend/src/app/blog/loading.tsx @@ -0,0 +1,26 @@ +import { Skeleton } from "@/components/ui/skeleton"; +import React from "react"; + +export default function Loading() { + return ( +
+ {/* Full width div, split into three equal portions */} +
+ +
+ + + +
+
+ + + + + + +
+
+
+ ); +} diff --git a/frontend/src/app/loading.tsx b/frontend/src/app/loading.tsx index e94b130..a60b963 100644 --- a/frontend/src/app/loading.tsx +++ b/frontend/src/app/loading.tsx @@ -1,6 +1,10 @@ -import { Skeleton } from "@/components/ui/skeleton"; +import { + Skeleton, + SkeletonHero, + SkeletonSection, + EmptySection, +} from "@/components/ui/skeleton"; import React from "react"; -import { cn } from "@/lib/utils"; export default function Loading() { return ( @@ -30,40 +34,9 @@ export default function Loading() { - + ); } - -function EmptySection({ - children, - className, -}: { - children?: React.ReactNode; - className?: string; -}) { - return
{children}
; -} - -function SkeletonSection() { - return ; -} - -function SkeleteonHero() { - return ( -
-
-
- {/* Large Hero Text */} - - {/* Small sub text */} - - - -
-
-
- ); -} diff --git a/frontend/src/components/ui/skeleton.tsx b/frontend/src/components/ui/skeleton.tsx index 40b88dd..ecde98f 100644 --- a/frontend/src/components/ui/skeleton.tsx +++ b/frontend/src/components/ui/skeleton.tsx @@ -13,4 +13,35 @@ function Skeleton({ ); } -export { Skeleton }; +function EmptySection({ + children, + className, +}: { + children?: React.ReactNode; + className?: string; +}) { + return
{children}
; +} + +function SkeletonSection() { + return ; +} + +function SkeletonHero() { + return ( +
+
+
+ {/* Large Hero Text */} + + {/* Small sub text */} + + + +
+
+
+ ); +} + +export { Skeleton, EmptySection, SkeletonSection, SkeletonHero };