From 50f6401a8abcb43c5e49ece0045e8dbee34383bd Mon Sep 17 00:00:00 2001 From: Vignesh Mohankumar Date: Tue, 6 Dec 2022 22:06:21 -0500 Subject: [PATCH] feat: Initial landing page redesign updates (#5456) * Initial landing page redesign updates * export * unnecessary brackets * unused component * remove state for the overlay * remove more show landing logic * only show when on / * gated * pointer events fix * import z-index * get started -> continue * rm text-fill-color * no fill color * unused icon * dont add route * css fixes --- src/components/Button/index.tsx | 13 ++ src/components/NavBar/index.tsx | 14 ++- src/components/NavBar/style.css.ts | 4 + src/components/swap/styleds.tsx | 8 +- src/pages/About.tsx | 185 +++++++++++++++++++++++++++++ src/pages/App.tsx | 9 ++ src/pages/Landing.tsx | 170 ++++++++++++++++++++++++++ src/pages/Swap/index.tsx | 14 ++- src/theme/index.tsx | 2 +- 9 files changed, 412 insertions(+), 7 deletions(-) create mode 100644 src/pages/About.tsx create mode 100644 src/pages/Landing.tsx diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index e41447cbf5..864c603fff 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -211,6 +211,19 @@ export const ButtonEmpty = styled(BaseButton)` } ` +export const ButtonCTA = styled(BaseButton)<{ redesignFlag?: boolean }>` + background: linear-gradient(10deg, rgba(255, 0, 199, 1) 0%, rgba(255, 159, 251, 1) 100%); + width: fit-content; + border-radius: 24px; + border: none; + padding: 16px 77.5px; + margin-left: 12px; + margin-bottom: 12px; + color: ${({ theme }) => theme.white}; + &:hover { + opacity: 75%; + } +` export const ButtonText = styled(BaseButton)` padding: 0; width: fit-content; diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 580b0c0c09..f1562a28b8 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -7,7 +7,7 @@ import { Box } from 'nft/components/Box' import { Row } from 'nft/components/Flex' import { UniIcon } from 'nft/components/icons' import { ReactNode } from 'react' -import { NavLink, NavLinkProps, useLocation } from 'react-router-dom' +import { NavLink, NavLinkProps, useLocation, useNavigate } from 'react-router-dom' import styled from 'styled-components/macro' import { Bag } from './Bag' @@ -87,14 +87,22 @@ const PageTabs = () => { const Navbar = () => { const isNftPage = useIsNftPage() + const navigate = useNavigate() return ( <>