From 5ca44d8a6445b0a32168ac68995943aa910ea97c Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Sun, 30 Jan 2022 15:43:32 +0330 Subject: [PATCH] Footer Added And Is Shown Whenever Header Is Showing --- src/components/Footer/enamad-pic.svg | 3 ++ src/components/Footer/index.js | 55 +++++++++++++++++++++++ src/components/Footer/light-blue-line.svg | 3 ++ src/components/Footer/samandehi-pic.svg | 3 ++ src/router.js | 5 +++ 5 files changed, 69 insertions(+) create mode 100644 src/components/Footer/enamad-pic.svg create mode 100644 src/components/Footer/index.js create mode 100644 src/components/Footer/light-blue-line.svg create mode 100644 src/components/Footer/samandehi-pic.svg diff --git a/src/components/Footer/enamad-pic.svg b/src/components/Footer/enamad-pic.svg new file mode 100644 index 0000000..71a2999 --- /dev/null +++ b/src/components/Footer/enamad-pic.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js new file mode 100644 index 0000000..182294c --- /dev/null +++ b/src/components/Footer/index.js @@ -0,0 +1,55 @@ +import React from "react"; +import _ from "lodash"; + +import enamad from "./enamad-pic.svg"; +import samandehi from "./samandehi-pic.svg"; + +import lightBlueLine from "./light-blue-line.svg"; + +const FooterDesign1 = ({ color, bg, links }) => { + return ( + + ); +}; + +export default FooterDesign1; + +FooterDesign1.defaultProps = { + links: [ + ["لینک های اصلی", "فروشگاه", "درباره ما", "پرسش های متوالی"], + ["لینک های اصلی", "فروشگاه", "درباره ما", "پرسش های متوالی"], + ["لینک های اصلی", "فروشگاه", "درباره ما", "پرسش های متوالی"], + ["لینک های اصلی", "فروشگاه", "درباره ما", "پرسش های متوالی"], + ], + bg: "bg-white", + color: "text-gray-600", +}; diff --git a/src/components/Footer/light-blue-line.svg b/src/components/Footer/light-blue-line.svg new file mode 100644 index 0000000..562f85a --- /dev/null +++ b/src/components/Footer/light-blue-line.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Footer/samandehi-pic.svg b/src/components/Footer/samandehi-pic.svg new file mode 100644 index 0000000..fc47b54 --- /dev/null +++ b/src/components/Footer/samandehi-pic.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/router.js b/src/router.js index d3334e6..2e1dbd7 100644 --- a/src/router.js +++ b/src/router.js @@ -26,6 +26,7 @@ import Activation from "./views/Activation"; import Faq from "./views/Faq"; import Contact from "./views/Contact"; import Dashboard from "./views/Dashboard"; +import FooterDesign1 from "./components/Footer"; // import VideoTube from "./views/Home/VideoTube"; function Router({ @@ -34,6 +35,7 @@ function Router({ isLogin, headerOptions, setDesktopContentTransform, + footerOptions }) { useEffect(() => { window.addEventListener("scroll", () => { @@ -63,6 +65,7 @@ function Router({ > {headerOptions?.shown && } + {isMobile && ( <> @@ -344,7 +347,9 @@ function Router({ /> } /> + + {headerOptions?.shown && }