diff --git a/src/components/hero/Hero.jsx b/src/components/hero/Hero.jsx index e61779d..b5652ff 100644 --- a/src/components/hero/Hero.jsx +++ b/src/components/hero/Hero.jsx @@ -1,26 +1,54 @@ -import React from 'react' -import heroImg from "../../assets/hero1.png" +import React, { useState } from 'react'; +import heroImg from "../../assets/hero1.png"; const Hero = () => { + // State to control the visibility of the error modal + const [showErrorModal, setShowErrorModal] = useState(false); + + // Function to handle the close of the modal and redirection + const handleCloseModal = () => { + setShowErrorModal(false); + }; + + // Function to handle the redirection + const handleRedirect = () => { + window.location.href = 'https://demondev0666.github.io/DoNotEnter'; // Your redirect URL + }; + return (
-
-
-
+ {/* Error Modal */} + {showErrorModal && ( +
+
+

Error

+

You are not supposed to enter here!

+
+ + +
+
+
+ )} + +
+
+

We make Addons, Maps, SkinPacks, and more for Minecraft Bedrock

“There is no doubt that creativity is the most important human resource of all. Without creativity, there would be no progress, and we would be forever repeating the same patterns”- Edward de Bono (1992)

-
- - +
+ + {/* Update button to open modal instead of redirecting immediately */} + +
-
-
+
Banner Image -
-
-
+
+
+
- ) + ); } -export default Hero +export default Hero; diff --git a/src/index.css b/src/index.css index 49043d5..63dc173 100644 --- a/src/index.css +++ b/src/index.css @@ -12,6 +12,6 @@ } .btn-outline { - @apply rounded-md border-2 border-Gray2 px-4 py-2 text-sm text-Gray1 transition-colors duration-300 + @apply rounded-md border-2 border-Gray2 px-4 py-2 text-sm text-Red transition-colors duration-300 } } \ No newline at end of file