From 567f7d34bc848a980f646181475b1fe6215b2d9a Mon Sep 17 00:00:00 2001 From: apoorvlathey Date: Mon, 14 Apr 2025 16:04:25 +0400 Subject: [PATCH] add gitcoin notif bar --- components/Body/NotificationBar.tsx | 75 ++++++++++++++++------------- components/Footer.tsx | 41 +++++++++++++++- package.json | 3 +- 3 files changed, 84 insertions(+), 35 deletions(-) diff --git a/components/Body/NotificationBar.tsx b/components/Body/NotificationBar.tsx index 5b4fdba..8fbbc7d 100644 --- a/components/Body/NotificationBar.tsx +++ b/components/Body/NotificationBar.tsx @@ -7,6 +7,7 @@ import { Link, HStack, Center, + useBreakpointValue, } from "@chakra-ui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faDiscord } from "@fortawesome/free-brands-svg-icons"; @@ -16,6 +17,9 @@ import axios from "axios"; const CLOSED_KEY = "new-ui-notif-closed"; function NotificationBar() { + const fontSize = useBreakpointValue({ base: "xs", sm: "sm", md: "md" }); + const padding = useBreakpointValue({ base: 2, sm: 2, md: 3 }); + // const isClosed = localStorage.getItem(CLOSED_KEY); // const [isVisible, setIsVisible] = useState( @@ -41,52 +45,57 @@ function NotificationBar() { // }); // }, []); - return ( - + return process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" ? ( +
- - - 🟣 SOLANA support is live: - - - - solana.impersonator.xyz - + }, + }} + > + Support on + + + Gitcoin Grants +
- ); + ) : null; } export default NotificationBar; diff --git a/components/Footer.tsx b/components/Footer.tsx index e278980..96495c4 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -92,12 +92,16 @@ function Footer() { - +
Found the project helpful?