diff --git a/src/App.jsx b/src/App.jsx index d9a7de6..ddf9d60 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -11,6 +11,7 @@ import Loading from "@/components/ui/Loading"; import GoBack from "./components/ui/GoBack"; // Data import menus from "./pages/tree-view/data"; +import Footer from "./layouts/Footer"; // pages const Home = lazy(() => import("@/pages/Home/Home")); @@ -21,7 +22,9 @@ const StarRating = lazy(() => import("@/pages/StarRating/StarRating")); const ImageSlider = lazy(() => import("@/pages/Image-Slider/ImageSlider")); const LoadMoreData = lazy(() => import("@/pages/Load-More-Data/LoadMoreData")); const TreeView = lazy(() => import("@/pages/tree-view/TreeView")); -const QRCodeGenerator = lazy(() => import("@/pages/Qr-Code-Generator/QRCodeGenerator")); +const QRCodeGenerator = lazy( + () => import("@/pages/Qr-Code-Generator/QRCodeGenerator"), +); const LightDarkMode = lazy( () => import("@/pages/light-dark-mode/Light-dark-mode"), ); @@ -47,7 +50,9 @@ const UseOnClickOutsideTest = lazy( const UseWindowResizeTest = lazy( () => import("./pages/CustomHooks/use-window-resize/test"), ); -const ScrollToSection = lazy(() => import("./pages/Scroll-to-section/ScrollToSection")); +const ScrollToSection = lazy( + () => import("./pages/Scroll-to-section/ScrollToSection"), +); const WeatherApp = lazy(() => import("@/pages/Weather-app/index")); function App() { @@ -67,7 +72,13 @@ function App() { {location.pathname !== "/React-Projects/" && } - }> + + + + } + > + ); } diff --git a/src/layouts/Footer.jsx b/src/layouts/Footer.jsx new file mode 100644 index 0000000..b1b50a4 --- /dev/null +++ b/src/layouts/Footer.jsx @@ -0,0 +1,57 @@ +import { Button } from "@/components/ui/button"; +import { FaGithub, FaInstagram, FaTwitter } from "react-icons/fa"; +import { Link } from "react-router-dom"; + +const socialLinks = [ + { link: "https://github.com/No0ne003/React-Projects", icon: }, + { link: "https://instagram.com/No0ne.003", icon: }, + { link: "https://x.com/No0ne003", icon: }, +]; + +const Footer = ({ setCursorVariant }) => ( + +); + +const FooterLink = ({ setCursorVariant, link, icon }) => { + const handleMouseEnter = () => setCursorVariant("text"); + const handleMouseLeave = () => setCursorVariant("default"); + + return ( + + + {icon} + + + ); +}; + +export default Footer;