From 994b22c8fa502ccf5a235dc334328781512a84aa Mon Sep 17 00:00:00 2001 From: JoshHyde9 Date: Tue, 27 Aug 2024 13:52:40 +1000 Subject: [PATCH 1/2] fixed loading skeleton --- src/app/component/PostSkeleton.tsx | 63 ++++++++++++++++++++++++++---- src/app/loading.tsx | 30 ++++++++++---- 2 files changed, 78 insertions(+), 15 deletions(-) diff --git a/src/app/component/PostSkeleton.tsx b/src/app/component/PostSkeleton.tsx index eadb9d4..d1bb51e 100644 --- a/src/app/component/PostSkeleton.tsx +++ b/src/app/component/PostSkeleton.tsx @@ -1,12 +1,61 @@ export const PostSkeleton = () => { return ( -
-
-
-
-
-
-
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+
+
+
+
+ +
+ +
+ +
+ {new Array(3).fill("").map((_, i) => ( +
+ ))} +
+ +
+
+
+
+ +
+
+
); }; diff --git a/src/app/loading.tsx b/src/app/loading.tsx index 0f6eb4c..7e53ecd 100644 --- a/src/app/loading.tsx +++ b/src/app/loading.tsx @@ -2,20 +2,34 @@ import { PostSkeleton } from "./component/PostSkeleton"; export default function Loading() { return ( -
-
-
-
-
-
-
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+
{new Array(5).fill("").map((_, i) => ( ))}
+ +
+
+
+
-
+ ); } From 495dc97e15e810c191c6e00adb4f6f734aa1377b Mon Sep 17 00:00:00 2001 From: JoshHyde9 Date: Tue, 27 Aug 2024 14:03:33 +1000 Subject: [PATCH 2/2] fixed tailwind classes --- src/app/loading.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/loading.tsx b/src/app/loading.tsx index 7e53ecd..d881916 100644 --- a/src/app/loading.tsx +++ b/src/app/loading.tsx @@ -18,7 +18,7 @@ export default function Loading() {
-
+
{new Array(5).fill("").map((_, i) => (