diff --git a/public/butt.png b/public/butt.png new file mode 100644 index 0000000..fca16ea Binary files /dev/null and b/public/butt.png differ diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 70ae5b0..6f83cbb 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -1,17 +1,28 @@ -import React from "react"; +import React, { useState } from "react"; type ContainerProps = { children: React.ReactNode; // Accepts any valid React element(s) }; export default function Container({ children }: ContainerProps) { + const [showModal, setShowModal] = useState(false); + const [isClosing, setIsClosing] = useState(false); + + const handleClose = () => { + setIsClosing(true); + setTimeout(() => { + setShowModal(false); + setIsClosing(false); + }, 300); // Match animation duration + }; + return (
-

+

2048

-

+

on MONAD

@@ -20,6 +31,88 @@ export default function Container({ children }: ContainerProps) {
{children}
+ + {/* Help Button */} +
setShowModal(true)} + > + Help +
+ + {/* Modal */} + {showModal && ( +
+
e.stopPropagation()} + > +

How to Play 2048

+
+

2048 is a sliding puzzle game where you combine matching numbers to create larger ones!

+ +
+

Game Rules:

+
    +
  • Use arrow keys or swipe to move all tiles
  • +
  • When two tiles with the same number touch, they merge into one!
  • +
  • Each merge adds to your score
  • +
  • The goal is to create a tile with the number 2048
  • +
+
+ +

+ P.S. every move is on chain. +

+
+ +
+
+ )} + +
); }