From 5ae5c643d723969c96bb343b5dfdfa15ea79b4b4 Mon Sep 17 00:00:00 2001 From: mildrette Date: Tue, 25 Jun 2024 14:02:40 +0100 Subject: [PATCH] updates --- src/Pages/LandingPages.js | 441 -------------------------------------- 1 file changed, 441 deletions(-) delete mode 100644 src/Pages/LandingPages.js diff --git a/src/Pages/LandingPages.js b/src/Pages/LandingPages.js deleted file mode 100644 index 9d437ad..0000000 --- a/src/Pages/LandingPages.js +++ /dev/null @@ -1,441 +0,0 @@ -import React from "react"; -import { - Box, - Grid, - Typography, - Button, - Card, - CardMedia, - Avatar, - DemoPaper, - CardContent, - CssBaseline -} from "@mui/material"; -import { useTranslation } from "react-i18next"; -import { FaArrowCircleRight, FaDownload } from "react-icons/fa"; -import { motion, useAnimation } from "framer-motion"; -import { createTheme, useTheme, ThemeProvider } from "@mui/material/styles"; -import useMediaQuery from "@mui/material/useMediaQuery"; -import Carousel from "react-material-ui-carousel"; -import Faqs from "../Components/FAQs"; -import "../i18n.js"; - -const Landing = () => { - const { t, i18n } = useTranslation(); - const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down("md")); - const controls = useAnimation(); - - const items = [ - { - title: t("Blog.Reliability"), - description: t("Blog.ReliabilityD"), - link: "https://blog.smswithoutborders.com/posts/reliability-of-gateway-clients-in-smswithoutborders", - image: "/composeMessage.png", - author: "Aysha Musa", - avatar: "V" - }, - { - title: t("Blog.Resilience"), - description: t("Blog.ResilienceD"), - link: "https://blog.smswithoutborders.com/posts/reliability-of-gateway-clients-in-smswithoutborders", - image: "/resilience.svg", - author: "Aysha Musa", - avatar: "R" - } - ]; - - const pairs = []; - for (let i = 0; i < items.length; i += 2) { - pairs.push(items.slice(i, i + 2)); - } - - const isRTL = i18n.language === "fa"; - - const customTheme = createTheme({ - direction: isRTL ? "rtl" : "ltr" - }); - - const variants = { - hidden: { opacity: 0, x: -100 }, - visible: { opacity: 1, x: 0, transition: { duration: 0.6, ease: "easeOut" } } - }; - - const onSectionScroll = () => { - controls.start("visible"); - }; - - return ( - - - - {/* Banner Page */} - - - - - - - {!isMobile && ( - - )} - - {t("Landing.landingh1")} - - - {t("Landing.landingh2")} - - -
- - - -
-
-
- - {/* How it works */} - - - {t("Howitworks.HowItWorks")} - - - {/* How it works sections */} - - - - - - - {t("Howitworks.HowItWorksA")} - - - - - - - - - - - {t("Howitworks.HowItWorksB")} - - - - - - - - - - - {t("Howitworks.HowItWorksC")} - - - - - - - - - - - {t("Howitworks.HowItWorksD")} - - - - - - {/* Getting Started Button */} - - - - - - {t("Howitworks.GettingStartedButton")}{" "} - - - - - - - - - - {/* Relay Map */} - - - - - - {t("Map.RelaySMSMap")} - - - - - - - - - - - - {/* What's New Blog */} - - - - - - {t("Blog.WhatsNew")} - - - - - - Next} // Custom Next button - PrevIcon={} // Custom Prev button - > - {pairs.map((pair, index) => ( - - - {pair.map((item, idx) => ( - - - - - - - {item.title} - - - {item.description} - -
- {t("Blog.ReadMore")} -
-
-
- - {item.avatar} - - {item.author} - - -
-
-
- ))} -
-
- ))} -
-
-
-
- - {/* FAQ */} - - - - - -
-
- ); -}; - -export default Landing;