diff --git a/src/Components/Shared/Footer.jsx b/src/Components/Shared/Footer.jsx index a92b21c3..b1406fbc 100644 --- a/src/Components/Shared/Footer.jsx +++ b/src/Components/Shared/Footer.jsx @@ -1,64 +1,12 @@ -import Logo from "../../assets/Logo/logo.png"; -import { FaFacebook, FaInstagram, FaTiktok } from "react-icons/fa"; - -const Footer = () => { - const emailAddress = "sipnplaynyc@gmail.com"; +import React from "react"; +import Footer from "./footer/Footer"; +const StickyFooter = () => { return ( - +
+
); }; -export default Footer; +export default StickyFooter; diff --git a/src/Components/Shared/footer/Content.jsx b/src/Components/Shared/footer/Content.jsx new file mode 100644 index 00000000..d8f55062 --- /dev/null +++ b/src/Components/Shared/footer/Content.jsx @@ -0,0 +1,146 @@ +import React, { useEffect, useState } from "react"; +import Logo from "../../../assets/Logo/logo.png"; +import { FaFacebook, FaInstagram, FaTiktok } from "react-icons/fa"; + +export default function Content() { + return ( +
+ + +
+ ); +} + +const Section1 = () => { + return ( +
+
+ ); +}; + +const Section2 = () => { + const [isWide, setIsWide] = useState(window.innerWidth > 640); + + useEffect(() => { + const handleResize = () => { + setIsWide(window.innerWidth > 640); + }; + + window.addEventListener("resize", handleResize); + + // Cleanup the event listener on component unmount + return () => window.removeEventListener("resize", handleResize); + }, []); + + return ( + <> + {!isWide && ( +
+ logo +
+ )} + + {isWide && ( +
+

BoardGame Cafe

+

©2024 by Sip & Play

+
+ )} + {!isWide && ( + <> +
+
+

BoardGame

+
+
+

Cafe

+
+
+
+

©2024 by Sip & Play

+
+ + )} + + ); +}; + +const Nav = () => { + const navLinks = [ + { + name: "Home", + link: "/", + }, + { + name: "Events", + link: "/event", + }, + + { + name: "Reservation", + link: "/register", + }, + { + name: "Boardgame", + link: "/boardgame", + }, + { + name: "About", + link: "/about", + }, + ]; + const socialLink = [ + { name: "Facebook", link: "https://www.facebook.com/sipnplaynyc/" }, + { name: "Instagram", link: "https://www.instagram.com/sipnplaynyc/?hl=en" }, + { + name: "Tiktok", + link: "https://www.tiktok.com/@sipnplaynycofficial?lang=en", + }, + ]; + const emailAddress = "sipnplaynyc@gmail.com"; + + return ( +
+
+

About

+ {navLinks.map((item, index) => ( + + {item.name} + + ))} +
+
+

Socials

+ {socialLink.map((item, index) => ( + + {item.name} + + ))} +
+
+

Contact Us

+ + {emailAddress} + +

718-971-1684

+
+
+ ); +}; diff --git a/src/Components/Shared/footer/Footer.jsx b/src/Components/Shared/footer/Footer.jsx new file mode 100644 index 00000000..edaff748 --- /dev/null +++ b/src/Components/Shared/footer/Footer.jsx @@ -0,0 +1,19 @@ +import React from "react"; +import Content from "./Content"; + +const Footer = () => { + return ( +
+
+
+ +
+
+
+ ); +}; + +export default Footer;