From b14acab08fe3df5c2a6a22ffd910d2da51a5e29b Mon Sep 17 00:00:00 2001
From: ZareMate <0.zaremate@gmail.com>
Date: Mon, 19 May 2025 08:41:09 +0200
Subject: [PATCH] feat: add loading skeleton components for improved user
 experience during data fetching
---
 src/app/LoadingSkeleton.tsx       | 21 +++++++++++++
 src/app/loading.tsx               |  6 ++++
 src/app/page.tsx                  |  5 ++-
 src/app/share/LoadingSkeleton.tsx | 51 +++++++++++++++++++++++++++++++
 src/app/share/loading.tsx         |  6 ++++
 src/server/api/routers/file.ts    |  0
 6 files changed, 88 insertions(+), 1 deletion(-)
 create mode 100644 src/app/LoadingSkeleton.tsx
 create mode 100644 src/app/loading.tsx
 create mode 100644 src/app/share/LoadingSkeleton.tsx
 create mode 100644 src/app/share/loading.tsx
 create mode 100644 src/server/api/routers/file.ts
diff --git a/src/app/LoadingSkeleton.tsx b/src/app/LoadingSkeleton.tsx
new file mode 100644
index 0000000..fdfd7ce
--- /dev/null
+++ b/src/app/LoadingSkeleton.tsx
@@ -0,0 +1,21 @@
+import React from 'react';
+
+const LoadingSkeleton = () => (
+  
+    {/* Title Skeleton */}
+    
+    {/* FileGrid Skeleton */}
+    
+      {[...Array(6)].map((_, i) => (
+        
+      ))}
+    
+    {/* UploadForm Skeleton */}
+    
+  
+         
+      
+      
+      
+        
+          File Details
+        
+        
+          {" Loading..."}
+        
+        
+          
+            Name:{" Loading..."}
+          
+          
+            Size:{" Loading..."}
+          
+          
+            Owner:{" Loading..."}
+          
+          
+            Upload Date:{" Loading..."}
+          
+          
+            Description:{" Loading..."}
+          
+          
+            
+          
+        
+