From 9ab62e933729e3b4648fd1d62f7d0debafaa35e0 Mon Sep 17 00:00:00 2001 From: Albert Folch Date: Tue, 25 Apr 2023 11:22:41 +0200 Subject: [PATCH 1/2] feat: remove promotional banner --- src/components/banner/Banner.tsx | 49 -------------------------------- src/components/header/Header.tsx | 10 ------- 2 files changed, 59 deletions(-) delete mode 100644 src/components/banner/Banner.tsx diff --git a/src/components/banner/Banner.tsx b/src/components/banner/Banner.tsx deleted file mode 100644 index da2b2fed9..000000000 --- a/src/components/banner/Banner.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { ArrowRight } from "phosphor-react"; -import styled from "styled-components"; - -import Grid from "../../components/ui/Grid"; -import { colors } from "../../lib/styles/colors"; -import Typography from "../ui/Typography"; - -const BannerContainer = styled.a` - display: block; - text-align: center; - background-color: ${colors.secondary}; - color: ${colors.white}; - transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); - padding-left: 0.5rem; - padding-right: 0.5rem; - &:hover { - background-color: ${colors.black}; - [data-arrow-right] { - transform: translate(1rem, 0); - } - } -`; -const ArrowWrapper = styled(Grid)` - background-color: ${colors.primary}; - padding: 0.315rem; - color: ${colors.black}; - width: auto; - transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); -`; - -function Banner() { - return ( - - - - Get 50% of the purchase price of any item as a $BOSON reward - - - - - - - ); -} - -export default Banner; diff --git a/src/components/header/Header.tsx b/src/components/header/Header.tsx index d9e7a7594..b0086ef80 100644 --- a/src/components/header/Header.tsx +++ b/src/components/header/Header.tsx @@ -11,7 +11,6 @@ import { colors } from "../../lib/styles/colors"; import { zIndex } from "../../lib/styles/zIndex"; import { useBreakpoints } from "../../lib/utils/hooks/useBreakpoints"; import { useCustomStoreQueryParameter } from "../../pages/custom-store/useCustomStoreQueryParameter"; -import Banner from "../banner/Banner"; import { LinkWithQuery } from "../customNavigation/LinkWithQuery"; import Layout from "../Layout"; import ViewTxButton from "../transactions/ViewTxButton"; @@ -312,20 +311,11 @@ const HeaderComponent = forwardRef( return ( <> - {withBanner && isSideNavBar && ( - - - - )}
- {withBanner && !isSideNavBar && } Date: Tue, 25 Apr 2023 11:52:54 +0200 Subject: [PATCH 2/2] fix: build --- src/components/header/Header.tsx | 34 -------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/components/header/Header.tsx b/src/components/header/Header.tsx index b0086ef80..3f6405838 100644 --- a/src/components/header/Header.tsx +++ b/src/components/header/Header.tsx @@ -22,40 +22,6 @@ const smallWidth = "180px"; const mediumWidth = "225px"; const sideMargin = "1rem"; const closedHeaderWidth = "75px"; -const SideBannerContainer = styled.div<{ - $navigationBarPosition: string; - $isSideBarOpen: boolean; -}>` - ${({ $navigationBarPosition, $isSideBarOpen }) => { - if ("left" === $navigationBarPosition) { - return css` - ${$isSideBarOpen - ? css` - margin-left: ${smallWidth}; - ${breakpoint.m} { - margin-left: ${mediumWidth}; - } - ` - : css` - margin-left: ${closedHeaderWidth}; - `} - `; - } else if ("right" === $navigationBarPosition) { - return css` - ${$isSideBarOpen - ? css` - margin-right: ${smallWidth}; - ${breakpoint.m} { - margin-right: ${mediumWidth}; - } - ` - : css` - margin-right: ${closedHeaderWidth}; - `} - `; - } - }} -`; const Header = styled.header<{ $navigationBarPosition: string;