From 1b2a8fff8fb6e1e24ca813232a729aab54987b86 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 8 Nov 2024 16:14:28 -0600 Subject: [PATCH] Update video and document templates --- .../carousels/templates/DocumentTemplate.js | 39 ++++++--------- .../carousels/templates/VideoTemplate.js | 47 +++++++++---------- 2 files changed, 37 insertions(+), 49 deletions(-) diff --git a/src/components/content/carousels/templates/DocumentTemplate.js b/src/components/content/carousels/templates/DocumentTemplate.js index a13672e..47bed19 100644 --- a/src/components/content/carousels/templates/DocumentTemplate.js +++ b/src/components/content/carousels/templates/DocumentTemplate.js @@ -53,10 +53,20 @@ export function DocumentTemplate({ document, isLesson, showMetaTags }) { return ( -
+ +
+ + {document.title} +
+
+ {document?.price && document?.price > 0 ? ( + + ) : ( + + )} +
+
+
document thumbnail
- -
- -
- {document.title} -
-
-
@@ -89,18 +91,7 @@ export function DocumentTemplate({ document, isLesson, showMetaTags }) { ))} {isLesson && showMetaTags && }
-
-

{document?.readTime || "5 min"} read

-
- { - document?.price && document?.price > 0 ? ( - - ) : ( - - ) - } -
-
+

{document?.readTime || "5 min"} read

-
+ {/* Header with title and price */} + +
+ + {video.title} +
+
+ {video?.price && video?.price > 0 ? ( + + ) : ( + + )} +
+
+ + {/* Image section */} +
video thumbnail
- -
- -
- {video.title} -
-
-
+ + {/* Content section with tags and duration */}
{video?.topics?.map((topic, index) => ( @@ -88,21 +95,11 @@ export function VideoTemplate({ video, isLesson, showMetaTags }) { ) ))} - {isLesson && showMetaTags && } -
-
-

{video?.duration || "5 min"} watch

-
- { - video?.price && video?.price > 0 ? ( - - ) : ( - - ) - } -
+ {isLesson && showMetaTags && }
+

{video?.duration || "5 min"} watch

+