diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 38b8f3f..2e02d54 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -9,4 +9,5 @@ module.exports = { ], importOrder: ['', '^[./]'], importOrderSeparation: true, + endOfLine: 'lf', }; diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 87bfda1..5b3c6eb 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,4 +1,11 @@ -import { Divider } from '@nextui-org/react'; +import { + Divider, + Modal, + ModalBody, + ModalContent, + ModalHeader, +} from '@nextui-org/react'; +import { useState } from 'react'; import { FaDiscord, FaEnvelope, @@ -8,6 +15,26 @@ import { FaLinkedin, } from 'react-icons/fa'; +interface FooterModalProps { + title: string; + content: string; + isOpen: boolean; + onClose: () => void; +} + +const FooterModal = ({ title, content, isOpen, onClose }: FooterModalProps) => { + return ( + + + {title} + +

{content}

+
+
+
+ ); +}; + const FOOTER_SECTIONS = [ { title: 'About', @@ -22,7 +49,7 @@ const FOOTER_SECTIONS = [ { title: 'Privacy', content: - 'MyTimetable collects anonymous analytics data to help improve user experience and enhance the functionality of the website. This data is collected without personally identifying users and is used solely for analytical purposes. We may share collective data with relevant third parties to provide insights into user engagement and improve our services. We are committed to protecting your privacy and will not share any personally identifiable information.', + 'MyTimetable collects anonymous analytics data to help improve user experience and enhance the functionality of the website. We may share collective data with relevant third parties to provide insights into user engagement and improve our services. We are committed to protecting your privacy and will not share any personally identifiable information.', }, ]; @@ -36,34 +63,65 @@ const LINKS = [ ]; export const Footer = () => { + const [openModal, setOpenModal] = useState(null); + return ( - ); };