From 56a6d983beb66e5ef91e2a58c835856709fa0001 Mon Sep 17 00:00:00 2001 From: kapildave07 Date: Wed, 12 Jun 2024 16:06:08 +0530 Subject: [PATCH] IXSPD1-1328 maintenance page have been completed --- src/pages/AppRoutes.tsx | 3 +- src/pages/Maintenance/index.tsx | 118 ++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 src/pages/Maintenance/index.tsx diff --git a/src/pages/AppRoutes.tsx b/src/pages/AppRoutes.tsx index d4d0b90bcf..b16b312a6a 100644 --- a/src/pages/AppRoutes.tsx +++ b/src/pages/AppRoutes.tsx @@ -28,7 +28,8 @@ const PoolV2 = lazy(() => import('pages/Pool/v2')) const RemoveLiquidity = lazy(() => import('pages/RemoveLiquidity')) const SecTokenDetails = lazy(() => import('pages/SecTokenDetails')) -const KYC = lazy(() => import('pages/KYC')) +// const KYC = lazy(() => import('pages/KYC')) +const KYC = lazy(() => import('pages/Maintenance')) const IndividualKYC = lazy(() => import('pages/KYC/IndividualKycForm')) const IndividualKYCV2 = lazy(() => import('pages/KYC/IndividualKycFormV2')) const CorporateKYC = lazy(() => import('pages/KYC/CorporateKycForm')) diff --git a/src/pages/Maintenance/index.tsx b/src/pages/Maintenance/index.tsx new file mode 100644 index 0000000000..f2f2026b9d --- /dev/null +++ b/src/pages/Maintenance/index.tsx @@ -0,0 +1,118 @@ +import React from 'react' +import styled, { createGlobalStyle } from 'styled-components' +import { ReactComponent as NewKYCLogo } from '../../assets/images/Maintenance.svg' +import { ReactComponent as CrossIcon } from 'assets/launchpad/svg/close.svg' +import { text9 } from 'components/LaunchpadMisc/typography' +import Portal from '@reach/portal' +import { ExitIconContainer } from 'components/Launchpad/KYCPrompt/styled' +import { ContactForm } from 'components/Launchpad/KYCPrompt/ContactForm' + +const GlobalStyle = createGlobalStyle` + body { + background-color: #FFFFFF; + margin: 0; + } +` + +const Container = styled.div` + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 70vh; + text-align: center; + background-color: #ffffff; +` + +const Logo = styled(NewKYCLogo)` + margin-bottom: 10px; +` + +const Title = styled.p` + font-size: 64px; + font-weight: 700; + margin: 20px 0px; +` +const SubTitle = styled.p` + font-size: 14px; + font-weight: 500; + color: #8f8fb2; +` + +const ContactUsTextButton = styled.button` + display: grid; + place-content: center; + height: 60px; + width: 250px; + text-align: center; + text-decoration: none; + margin-top: 20px; + ${text9} + cursor: pointer; + color: #ffffff; + background: ${(props) => props.theme.launchpad.colors.primary}; + border-radius: 6px; + border: none; + outline: 0; +` + +const ModalWrapper = styled.div` + display: grid; + place-content: center; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + z-index: 50; + backdrop-filter: blur(20px); +` + +const ContactFormWrapper = styled.div` + display: flex; + flex-flow: column nowrap; + align-items: center; + gap: 1rem; + position: relative; + width: 480px; + background: ${(props) => props.theme.launchpad.colors.background}; + border-radius: 8px; + padding: 2rem; +` + +function Maintenance() { + const [contactFormOpen, setContactForm] = React.useState(false) + const toggleContactForm = React.useCallback(() => setContactForm((state) => !state), []) + + return ( + <> + + + + + We’re down for <br /> Maintenance + + This page is undergoing maintenance and will be back soon + + Contact us + + + {contactFormOpen && ( + + + + + + + + setContactForm(false)} /> + + + + )} + + + ) +} + +export default Maintenance