From 7d3169a4655af523ba8929d8d279765df2d2c6d8 Mon Sep 17 00:00:00 2001 From: Devsi Date: Thu, 20 Jun 2024 00:14:42 +0530 Subject: [PATCH] hover logo --- src/app/nfts/[id]/page.js | 41 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/src/app/nfts/[id]/page.js b/src/app/nfts/[id]/page.js index e0077d1..00f821f 100644 --- a/src/app/nfts/[id]/page.js +++ b/src/app/nfts/[id]/page.js @@ -1,13 +1,48 @@ -import React from "react"; +"use client" +import React, {useState} from "react"; const NFTPage = ({ params }) => { const id = params?.id; + const [isHovered, setIsHovered] = useState(false); + return (
-
- +
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + style={{ position: 'relative' }} + > + Logo + + {/* Pop-up Div */} + {isHovered && ( +
+
+ +
Brand Name
+
+
Brand Description here. Brand Description here. Brand Description here. Brand Description here. Brand Description here. Brand Description here.
+
+ )}
Explore