From b90b3fa663125b9ce82dd2658e9bb2af59cfd1c1 Mon Sep 17 00:00:00 2001 From: ybgbob Date: Mon, 19 Aug 2024 18:31:57 +0800 Subject: [PATCH] feat: Header RWD --- src/components/layout/Header.tsx | 49 +++++++++----------------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 6cd0f54..a8cf114 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -26,7 +26,6 @@ import { SellIcon } from '../svgIcon/SellIcon'; import { SignOutIcon } from '../svgIcon/SignOutIcon'; const BG_COLOR = '#181a1e'; -const INFO_BAR_HEIGHT = '40px'; const Header = () => { const [dropDownOpen, setDropDownOpen] = useState(false); @@ -60,25 +59,11 @@ const Header = () => { }, [location.pathname, y]); return ( - <> - -
- - 🚀 This website serves as a demo dApp on BNB Greenfield, and is only - live on Testnet for feature demonstration purposes. - + + + + 🚀 This website serves as a demo dApp on BNB Greenfield, and is only + live on Testnet for feature demonstration purposes. { _hover={{ color: '#181A1E', }} + ml="4px" > Learn More -
+
- { )} - - + + ); }; export default Header; -const HeaderFlex = styled(Flex)` - position: fixed; - left: 0; - right: 0; - z-index: 10; - padding: 0 40px; - transition: background 0.3s ease-in-out; -`; const LeftCon = styled(Flex)` img { width: 224px;