Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add whalex banner #615

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { InfoIcon } from '@chakra-ui/icons'
import {
Box,
Drawer,
Expand All @@ -15,7 +14,7 @@ import {
} from '@chakra-ui/react'
import BurgerIcon from 'components/Icons/BurgerIcon'
import { ACTIVE_BONDING_NETWORKS, ChainId } from 'constants/index'
import { useRouter } from 'next/router'
import * as motion from 'motion/react-client'
import { useRecoilValue } from 'recoil'
import { chainState } from 'state/chainState'

Expand All @@ -33,7 +32,6 @@ const Navbar = () => {

const { isOpen, onOpen, onClose } = useDisclosure()
const currentChainName = chainName
const router = useRouter()

const links = [
{
Expand Down Expand Up @@ -137,26 +135,31 @@ const Navbar = () => {
</IconButton>
</Flex>
{/* Announcement Banner */}
{chainId === 'phoenix-1' && <Flex
<Flex
mx="auto"
maxWidth="container.xl"
display={{ base: 'none',
md: 'flex' }}
display={{
base: 'none',
md: 'flex',
}}
alignItems="center"
justifyContent="center"
bgGradient="linear(to-r, blue.500, orange.500)"
p={3}
bgGradient="linear-gradient(to right, #F7931B 0%, #F7931B 5%, #000000 35%,#000000 65%, #3CCD64 95%, #3CCD64 100%)"
p={2}
cursor="pointer"
onClick={() => router.push('/terra/pools/migrate')}
borderRadius="md"
marginTop={5}
marginTop={3}
as="a"
href="https://app.migaloo.zone/staking/liquid-staking"
target="_blank"
rel="noopener noreferrer"
>
<InfoIcon boxSize={5} color="white" mr={3} />
<img src={'/logos/whaleX.png'} width={32} height={32} />
<Text fontWeight="bold" color="white">
Attention: We’re migrating pools. Click here to learn more and proceed.
WhaleX has arrived! Click here and start earning.
</Text>
<img src={'/logos/whaleX.png'} width={32} height={32} />
</Flex>
}
<Drawer isOpen={isOpen} placement="right" onClose={onClose}>
<DrawerOverlay />
<DrawerContent>
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/basic-features/typescript for more information.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/logos/whaleX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading