diff --git a/src/app/home/page.tsx b/src/app/home/page.tsx index 1a3d160..a378a86 100644 --- a/src/app/home/page.tsx +++ b/src/app/home/page.tsx @@ -1,8 +1,9 @@ "use client"; -import React from 'react'; +import { useState } from 'react'; import { Box, Button, Typography } from '@mui/material'; import { Poppins } from "next/font/google"; +import Popup from '@/components/ui/popup'; const poppins = Poppins({ subsets: ["latin"], @@ -10,110 +11,123 @@ const poppins = Poppins({ }); const Home = () => { - return ( - - {/* Background Video */} - - - Your browser does not support the video tag. - + const [isPopupOpen, setIsPopupOpen] = useState(true); - {/* Content */} - - Welcome to A.T.O.M Robotics - + const closePopup = () => setIsPopupOpen(false); + + return ( + <> + + {/* Yaha apna content dal lo */} + +

Custom Content

+

The orientation is scheduled for September 7th.

+ Placeholder +
- - - + Welcome to A.T.O.M Robotics + - -
+ + ); }; -export default Home; +export default Home; \ No newline at end of file diff --git a/src/components/ui/popup.tsx b/src/components/ui/popup.tsx new file mode 100644 index 0000000..34f6b62 --- /dev/null +++ b/src/components/ui/popup.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import { motion, AnimatePresence } from 'framer-motion'; + +// Adjust the props to include children +const Popup: React.FC<{ isOpen: boolean; onClose: () => void; children?: React.ReactNode }> = ({ isOpen, onClose, children }) => { + return ( + + {isOpen && ( + <> + + + +
+ + + {/* Render the children here */} +
+ {/* */} + {children} + +
+
+
+ + )} +
+ ); +}; + +export default Popup; \ No newline at end of file