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

Change Banner to Polygon Campaign #1245

Merged
merged 1 commit into from
Aug 15, 2022
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions src/components/Banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import styled from 'styled-components'
import { Autoplay, Navigation, Pagination } from 'swiper'
import { Swiper, SwiperSlide } from 'swiper/react'

import KyberSwapTradingCampaignAthDesktop from 'assets/banners/kyberswap-trading-campaign-ath-desktop.png'
import KyberSwapTradingCampaignAthMobile from 'assets/banners/kyberswap-trading-campaign-ath-mobile.png'
import KyberSwapTradingCampaignAthTablet from 'assets/banners/kyberswap-trading-campaign-ath-tablet.png'
import KyberSwapTradingCampaignDesktop from 'assets/banners/kyberswap-trading-campaign-polygon-desktop.png'
import KyberSwapTradingCampaignMobile from 'assets/banners/kyberswap-trading-campaign-polygon-mobile.png'
import KyberSwapTradingCampaignTablet from 'assets/banners/kyberswap-trading-campaign-polygon-tablet.png'
import useTheme from 'hooks/useTheme'
import { useWindowSize } from 'hooks/useWindowSize'
import { ExternalLink } from 'theme'
Expand Down Expand Up @@ -100,17 +100,17 @@ function Banner({
const ALL_BANNERS = [
{
// KyberSwap Trading Campaign ATH
id: 'kyberSwap-trading-campaign-ath',
start: new Date('2022-08-08T09:00:00.000Z'),
end: new Date('2022-08-11T23:59:59.000Z'),
id: 'kyberSwap-trading-campaign-polygon',
start: new Date('2022-08-15T11:00:00.000Z'),
end: new Date('2022-08-30T23:59:59.000Z'),
img: isInModal
? KyberSwapTradingCampaignAthMobile
? KyberSwapTradingCampaignMobile
: w > 768
? KyberSwapTradingCampaignAthDesktop
? KyberSwapTradingCampaignDesktop
: w > 500
? KyberSwapTradingCampaignAthTablet
: KyberSwapTradingCampaignAthMobile,
link: 'https://kyberswap.com/campaigns?selectedCampaignId=3&networkId=56&utm_source=partner&utm_medium=banner&utm_campaign=athtradingcontest&utm_content=onsite',
? KyberSwapTradingCampaignTablet
: KyberSwapTradingCampaignMobile,
link: 'https://kyberswap.com/campaigns/kyberswap-trading-campaigns-with-polygon-chain-5?networkId=137&utm_source=partner&utm_medium=banner&utm_campaign=polygontradingcontest&utm_content=onsite',
},
]

Expand Down