Skip to content

Commit

Permalink
update notification bar for solana
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvlathey committed Nov 24, 2024
1 parent e6303ff commit a686c3c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 36 deletions.
64 changes: 31 additions & 33 deletions components/Body/NotificationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,54 +41,52 @@ function NotificationBar() {
// });
// }, []);

return process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" ? (
return (
<Alert status="info" bg={"#151515"}>
<Center w="100%">
<Link
href={process.env.NEXT_PUBLIC_GITCOIN_GRANTS_LINK}
href={"https://solana.impersonator.xyz"}
isExternal
_hover={{
textDecor: "none",
}}
>
<HStack
position="relative"
sx={{
"&::after": {
content: '""',
position: "absolute",
bottom: 0,
left: 0,
right: 0,
height: "2px",
background: "linear-gradient(90deg, #FF0080, #7928CA, #FF0080)",
backgroundSize: "200% 100%",
animation: "gradient 3s linear infinite",
"@keyframes gradient": {
"0%": { backgroundPosition: "0% 0%" },
"100%": { backgroundPosition: "200% 0%" },
},
},
}}
>
<Text>Support on</Text>
<HStack>
<Text>
🟣 <b>SOLANA</b> support is live:
</Text>

<HStack ml={-0.5} fontWeight="bold">
<Text>Gitcoin Grants</Text>
<HStack
ml={-0.5}
fontWeight="bold"
position="relative"
sx={{
"&::after": {
content: '""',
position: "absolute",
bottom: 0,
left: 0,
right: 0,
height: "2px",
background:
"linear-gradient(90deg, #FF0080, #7928CA, #FF0080)",
backgroundSize: "200% 100%",
animation: "gradient 3s linear infinite",
"@keyframes gradient": {
"0%": { backgroundPosition: "0% 0%" },
"100%": { backgroundPosition: "200% 0%" },
},
},
}}
>
<Text>solana.impersonator.xyz</Text>
<ExternalLinkIcon />
</HStack>
</HStack>
</Link>
</Center>
{/* <CloseButton
alignSelf="flex-start"
position="relative"
right={-1}
top={-1}
onClick={() => setIsVisible(false)}
/> */}
</Alert>
) : null;
);
}

export default NotificationBar;
10 changes: 7 additions & 3 deletions components/Body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,14 @@ function Body() {

return (
<>
{process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" && (
{/* {process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" && (
<NotificationBar />
)}
<Container mt="10" mb="16" minW={["0", "0", "2xl", "2xl"]}>
)} */}
<NotificationBar />
<Center mt="8" fontStyle={"italic"}>
Connect to dapps as any ETH Address!
</Center>
<Container mt="2" mb="16" minW={["0", "0", "2xl", "2xl"]}>
<Flex>
<Spacer flex="1" />
<TenderlySettings
Expand Down

0 comments on commit a686c3c

Please sign in to comment.