From 66bd0c9a66007e93c4641d386110b4450f284945 Mon Sep 17 00:00:00 2001 From: Charles Garrett Date: Fri, 26 Jan 2024 14:36:43 -0500 Subject: [PATCH] chore: remove the horizon banner since the cohort has already kicked off --- src/components/banner/Horizon.tsx | 115 ------------------ .../navigation/desktop/DesktopNavigation.tsx | 2 - src/components/navigation/mobile/Menu.tsx | 2 - 3 files changed, 119 deletions(-) delete mode 100644 src/components/banner/Horizon.tsx diff --git a/src/components/banner/Horizon.tsx b/src/components/banner/Horizon.tsx deleted file mode 100644 index c24007289..000000000 --- a/src/components/banner/Horizon.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import Image from 'next/image'; -import Link from 'next/link'; -import styled from 'styled-components'; - -import { Button } from '@/components/lib/Button'; -import { useBanner } from '@/hooks/useBanner'; - -type Props = { - inline?: boolean; -}; - -type FlexProps = { - gap?: string; - alignItems?: string; - justifyContent?: string; - direction?: string; - wrap?: string; -}; - -const Wrapper = styled.div<{ - inline?: boolean; -}>` - padding: 8px 0; - background: rgb(102, 160, 255); - border-radius: ${(p) => (p.inline ? '5px' : 0)}; - - .banner-button { - font-size: 14px; - - &.desktop-button { - @media (max-width: 380px) { - display: none !important; - } - } - &.mobile-button { - display: none; - @media (max-width: 380px) { - display: inline !important; - } - } - } - .close-button { - all: unset; - width: 14px; - height: 14px; - line-height: 14px; - color: #664d04; - background: transparent; - outline: none; - border: none; - transition: color 0.2s; - cursor: pointer; - - &:hover { - border: none; - background: transparent; - } - } -`; - -const Flex = styled.div` - display: flex; - gap: ${(p) => p.gap}; - align-items: ${(p) => p.alignItems}; - justify-content: ${(p) => p.justifyContent}; - flex-direction: ${(p) => p.direction ?? 'row'}; - flex-wrap: ${(p) => p.wrap ?? 'nowrap'}; - - @media (max-width: 576px) { - gap: 10px; - } -`; - -export const HorizonBanner = (props: Props) => { - const [isBannerVisible, setBanners] = useBanner(); - - const closeBanner = () => { - setBanners(!isBannerVisible); - }; - - if (!isBannerVisible) return null; - - return ( - - - -