From 718c0833189c81e7130bb062baa6e66939d09092 Mon Sep 17 00:00:00 2001 From: felixNyalenda Date: Sat, 11 Nov 2023 19:07:47 +0300 Subject: [PATCH 01/10] setup modal --- src/APP/components/index.js | 4 +- src/APP/pages/aboutUs/data.js | 59 +++++++ .../aboutUs/sections/LeadershipSection.jsx | 164 +++++++++++------- src/assets/images/aboutPage/index.js | 39 +++++ src/assets/images/icons/index.js | 7 + 5 files changed, 210 insertions(+), 63 deletions(-) create mode 100644 src/APP/pages/aboutUs/data.js create mode 100644 src/assets/images/aboutPage/index.js create mode 100644 src/assets/images/icons/index.js diff --git a/src/APP/components/index.js b/src/APP/components/index.js index 9d0bf5ce..a64fcd3b 100644 --- a/src/APP/components/index.js +++ b/src/APP/components/index.js @@ -3,5 +3,7 @@ import { default as Footer } from "./Footer"; import { default as Footer2 } from "./Footer2"; import { default as Header } from "./Header"; import { default as Header2 } from "./Header2"; +import { default as Caroussel } from "./Caroussel"; +import { default as Counter } from "./Counter"; -export { FAQ, Footer, Footer2, Header, Header2 }; +export { FAQ, Footer, Footer2, Header, Header2, Caroussel, Counter }; diff --git a/src/APP/pages/aboutUs/data.js b/src/APP/pages/aboutUs/data.js new file mode 100644 index 00000000..afb7ee01 --- /dev/null +++ b/src/APP/pages/aboutUs/data.js @@ -0,0 +1,59 @@ +import { + catherine, + fred, + hudson, + ian, + james, + juma, + marlyn, + sharon, + waithaka, +} from "../../../assets/images/aboutPage"; + +export const LeadershipData = [ + { + name: "Fred Ouko", + title: "Founder", + image: fred, + }, + { + name: "Catherine Kiiru", + title: "Dev Relations & Opensource Programs", + image: catherine, + }, + { + name: "James Otieno", + title: "Community Manager", + image: james, + }, + { + name: "Hudson Obai", + title: "Head of Engineering", + image: hudson, + }, + { + name: "Ian Mugenya", + title: "Mentorship Program Lead", + image: ian, + }, + { + name: "Marlyn Mayienga", + title: "Program Manager", + image: marlyn, + }, + { + name: "Sharon Jebitok", + title: "Head of Chapters and Volunteers", + image: sharon, + }, + { + name: "Waithaka Waweru", + title: "Dev Relations and Events", + image: waithaka, + }, + { + name: "Juma Lawrence", + title: "Head of Communication", + image: juma, + }, +]; diff --git a/src/APP/pages/aboutUs/sections/LeadershipSection.jsx b/src/APP/pages/aboutUs/sections/LeadershipSection.jsx index 2d372a40..8284b16d 100644 --- a/src/APP/pages/aboutUs/sections/LeadershipSection.jsx +++ b/src/APP/pages/aboutUs/sections/LeadershipSection.jsx @@ -1,72 +1,30 @@ -import FredOuko from "../../../../assets/images/aboutPage/leadership/fred-ouko.png"; -import CatherineKiiru from "../../../../assets/images/aboutPage/leadership/catherine-kiiru.png"; -import JamesOtieno from "../../../../assets/images/aboutPage/leadership/james-otieno.png"; -import HudsonObai from "../../../../assets/images/aboutPage/leadership/hudson-obai.png"; -import IanMugenya from "../../../../assets/images/aboutPage/leadership/ian-mugenya.png"; -import MarlynMayienga from "../../../../assets/images/aboutPage/leadership/marlyn-mayienga.png"; -import SharonJebitok from "../../../../assets/images/aboutPage/leadership/sharon-jebitok.png"; -import WaithakaWaweru from "../../../../assets/images/aboutPage/leadership/waithaka-waweru.png"; -import JumaLawrence from "../../../../assets/images/aboutPage/leadership/juma-lawrence.png"; -import Caroussel from "../../../components/Caroussel"; -import BuildingCommunity from "../../../../assets/images/aboutPage/building-community.png"; +import { Fragment, useState } from "react"; +import { Dialog, Transition } from "@headlessui/react"; -const LeadershipData = [ - { - name: "Fred Ouko", - title: "Founder", - image: FredOuko, - }, - { - name: "Catherine Kiiru", - title: "Dev Relations & Opensource Programs", - image: CatherineKiiru, - }, - { - name: "James Otieno", - title: "Community Manager", - image: JamesOtieno, - }, - { - name: "Hudson Obai", - title: "Head of Engineering", - image: HudsonObai, - }, - { - name: "Ian Mugenya", - title: "Mentorship Program Lead", - image: IanMugenya, - }, - { - name: "Marlyn Mayienga", - title: "Program Manager", - image: MarlynMayienga, - }, - { - name: "Sharon Jebitok", - title: "Head of Chapters and Volunteers", - image: SharonJebitok, - }, - { - name: "Waithaka Waweru", - title: "Dev Relations and Events", - image: WaithakaWaweru, - }, - { - name: "Juma Lawrence", - title: "Head of Communication", - image: JumaLawrence, - }, -]; +import { Caroussel } from "../../../components"; +import { closeIcon } from "../../../../assets/images/icons"; +import { LeadershipData } from "../data"; +import { buildComm } from "../../../../assets/images/aboutPage"; function LeadershipSection() { + const [isOpen, setIsOpen] = useState(false); + + function closeModal() { + setIsOpen(false); + } + + function openModal() { + setIsOpen(true); + } + return (

Meet our leadership

- - + +

@@ -91,10 +49,92 @@ function LeadershipSection() { mentorship and connected with job opportunities where they can earn from their hard work.

- + + + {/* Email us Modal */} + + + +
+ + +
+
+ + + +
+ + Write a message + + +
+ + +