diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index 0f7cb0b..1be7471 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -45,34 +45,10 @@ const VideoList: NextPage = () => { {isLoading ? ( <> -
-
-
- - -
-
-
-
-
- - -
-
-
-
-
- - -
-
-
-
-
- - -
-
+ + + + ) : null} @@ -94,6 +70,18 @@ interface VideoCardProps { createdAt: Date; } +const VideoCardSkeleton = () => { + return ( +
+
+
+ + +
+
+ ); +}; + const VideoCard = ({ title, id, createdAt }: VideoCardProps) => { const getTime = (timestamp: Date): string => { const delta = Math.round( @@ -162,7 +150,8 @@ const VideoCard = ({ title, id, createdAt }: VideoCardProps) => { video thumbnail