diff --git a/package.json b/package.json index 8718817..e33361c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "@testing-library/user-event": "^13.5.0", "aos": "^2.3.4", "axios": "^1.5.1", - "dotenv": "^16.4.5", "framer-motion": "^11.1.9", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/App.js b/src/App.js index 83bb81f..f4066a8 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,3 @@ - import React from 'react'; import './App.css'; import { Route, Routes } from 'react-router-dom'; @@ -11,13 +10,11 @@ import SectionPage from './pages/SectionPage'; import News from './pages/News'; import NotFound from './pages/NotFound'; import Loader from './components/Loader/Loader'; -import PrivacyPolicy from './pages/PrivacyPolicy'; -import TermsandConditions from './pages/TermsandConditions'; -import Licensing from './pages/Licensing'; +import { ThemeProvider } from './themeContext'; const Layout = ({ children }) => { return ( -
+
{children}
); @@ -25,25 +22,23 @@ const Layout = ({ children }) => { function App() { return ( -
- - } /> - } /> - } /> - } /> - } /> - } /> - } /> - }/> - }/> - }/> - }/> - }/> - } /> - -
+ +
+ + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + +
+
); } export default App; - diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 653d4a3..45d5c69 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -1,36 +1,23 @@ -import React from 'react'; +import { Link } from "react-router-dom" -const Footer = () => { - return ( -
-
-
- -
-
-
-

Company

- -
-
-

Legal Pages

- -
-
-
-
- © 2024-2025 Foodies™. All Rights Reserved. -
-
- ) -} - -export default Footer \ No newline at end of file +export default function Footer(){ + return ( + + ) +} \ No newline at end of file diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 5b20a5b..2dd725f 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -1,18 +1,20 @@ -import React, { useState } from "react"; +import React, { useState,useContext } from "react"; import { Link } from "react-router-dom"; import logo from "../assets/logo2.png"; import { motion, AnimatePresence,useScroll} from "framer-motion"; import { IoClose } from "react-icons/io5"; import { GiHamburgerMenu } from "react-icons/gi"; - +import { MdDarkMode } from "react-icons/md"; +import { ThemeContext } from '../themeContext'; const Navbar = () => { + const { theme, toggleTheme } = useContext(ThemeContext); const [isOpen, setIsOpen] = useState(false); const {scrollYProgress} = useScroll(); const toggleMenu = () => { setIsOpen(!isOpen); }; return ( -
-
+
+ +
+
+