From 51a2581a1f1a8e06918e1aca58f33c028a3ba9cc Mon Sep 17 00:00:00 2001 From: pious2847 Date: Mon, 28 Apr 2025 12:01:41 +0000 Subject: [PATCH] Updates on the hoverCard to suport image and videos --- app/creator/reader/page.tsx | 4 ++-- components/cards/HoverCards.tsx | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/creator/reader/page.tsx b/app/creator/reader/page.tsx index 7aa332f..a531501 100644 --- a/app/creator/reader/page.tsx +++ b/app/creator/reader/page.tsx @@ -67,7 +67,7 @@ export default function Reader() { <>

BRUTAL

-

Through the rain, flickering neon lights spell out of and illuminate an entrance to nightclub.

+

Through the rain, flickering neon lights spell out of and illuminate an entrance to nightclub.

A stunning light show cascades across a dance floor crowded by partiers and adorned by dozens of video monitors.

WADE HARPER, an anxious businessman dressed in a black suit, follows two burly bouncers up a flight of stairs toward the at the back of the warehouse.

@@ -85,7 +85,7 @@ export default function Reader() {

HANDSOME TWIN #2, more anxious and pushy, quickly interjects, "So do you have it for us?"

Wade reaches into his breast pocket.

"Yes, I do."

-

Wade considers the in his hand and fiddles with the device. The twins smile widely with delight.

+
Wade considers the in his hand and fiddles with the device. The twins smile widely with delight.
) diff --git a/components/cards/HoverCards.tsx b/components/cards/HoverCards.tsx index 8e96747..1dcdaf3 100644 --- a/components/cards/HoverCards.tsx +++ b/components/cards/HoverCards.tsx @@ -14,7 +14,8 @@ export interface HoverCardsProps { videourl: string description: string linkText?: string - link?: string + link?: string, + isImage?: Boolean, } export default function HoverCards({ @@ -22,7 +23,8 @@ export default function HoverCards({ videourl, description, link = '#', - linkText = 'Purchase & Read More' + linkText = 'Purchase & Read More', + isImage }: HoverCardsProps) { return ( @@ -32,6 +34,9 @@ export default function HoverCards({
+ {isImage ? + {videourl} + : + } +