diff --git a/src/components/GiveawayCard.tsx b/src/components/GiveawayCard.tsx index 931e05c..2989fa6 100644 --- a/src/components/GiveawayCard.tsx +++ b/src/components/GiveawayCard.tsx @@ -1,4 +1,5 @@ -import React from 'react'; +"use client" +import React, { useState } from 'react'; interface GiveawayCardProps { title: string; @@ -7,13 +8,50 @@ interface GiveawayCardProps { } const GiveawayCard: React.FC = ({ title, description, imageUrl }) => { + const [isModalOpen, setIsModalOpen] = useState(false); + + const handleEnterClick = () => { + // Logic to enter the giveaway + setIsModalOpen(true); + }; + + const handleCloseModal = () => { + setIsModalOpen(false); + }; + return ( -
- {/* {title} */} -
-

{title}

-

{description}

+
+
+
+

{title}

+

{description}

+
+
+ +
+ + {/* Modal */} + {isModalOpen && ( +
+
+

{title}

+

{description}

+ {title} + +
+
+ )}
); };