-
Notifications
You must be signed in to change notification settings - Fork 88
feat: update Flux banner #5607
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
Merged
Merged
feat: update Flux banner #5607
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@venusprotocol/evm": minor | ||
| --- | ||
|
|
||
| update Flux banner |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 28 additions & 23 deletions
51
apps/evm/src/containers/AdBanner/VenusFluxBanner/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,44 @@ | ||
| import { ButtonWrapper } from '@venusprotocol/ui'; | ||
| import { VENUS_FLUX_URL } from 'constants/production'; | ||
|
|
||
| import { Link } from 'containers/Link'; | ||
| import { useBreakpointUp } from 'hooks/responsive'; | ||
| import { useTranslation } from 'libs/translations'; | ||
| import mobileIllustrationSrc from './mobileIllustration.png'; | ||
| import tabletIllustrationSrc from './tabletIllustration.png'; | ||
| import illustrationSrc from './illustration.png'; | ||
|
|
||
| const CAMPAIGN_URL = 'https://binance.onelink.me/mL1z/x0rd7v8u?af_force_deeplink=true'; | ||
|
|
||
| export const VenusFluxBanner: React.FC = () => { | ||
| const { t } = useTranslation(); | ||
| const { t, Trans } = useTranslation(); | ||
| const isSmOrUp = useBreakpointUp('sm'); | ||
|
|
||
| return ( | ||
| <div className="relative rounded-lg h-26.25 px-3 pt-2 pb-3 flex flex-col gap-y-3 bg-linear-to-r from-[#363636] to-[#0C0C0C] sm:h-18 sm:flex-row sm:items-center sm:justify-between sm:py-3 sm:pl-31"> | ||
| <img | ||
| src={mobileIllustrationSrc} | ||
| className="absolute left-4 bottom-0 h-12 sm:hidden" | ||
| alt={t('venusFluxBanner.illustrationAltText')} | ||
| /> | ||
| <div className="relative rounded-lg h-26.25 px-4 pt-2 pb-3 flex flex-col gap-y-3 bg-linear-to-r from-[#363636] to-[#0C0C0C] sm:h-18 sm:flex-row sm:items-center sm:justify-between sm:py-3 sm:pl-29"> | ||
| <div className="flex flex-col gap-y-3 sm:flex-row sm:justify-between sm:gap-x-4 sm:items-center sm:grow"> | ||
| <div className="flex flex-col gap-y-0.5"> | ||
| <p className="font-semibold text-sm sm:text-base">{t('venusFluxBanner.title')}</p> | ||
|
|
||
| <img | ||
| src={tabletIllustrationSrc} | ||
| className="hidden absolute bottom-0 left-3 h-19 sm:block" | ||
| alt={t('venusFluxBanner.illustrationAltText')} | ||
| /> | ||
| <p className="text-xs text-grey sm:text-sm"> | ||
| <Trans | ||
| i18nKey="venusFluxBanner.description" | ||
| components={{ | ||
| YellowText: <span className="text-yellow" />, | ||
| }} | ||
| /> | ||
| </p> | ||
| </div> | ||
|
|
||
| <div className="space-y-0.5"> | ||
| <p className="font-semibold text-sm lg:text-base">{t('venusFluxBanner.title')}</p> | ||
| <p className="text-xs text-grey lg:text-sm">{t('venusFluxBanner.description')}</p> | ||
| <ButtonWrapper size={isSmOrUp ? 'md' : 'xs'} className="px-5 self-start md:px-6" asChild> | ||
| <Link href={CAMPAIGN_URL} noStyle> | ||
| {t('adBanner.startNow')} | ||
| </Link> | ||
| </ButtonWrapper> | ||
| </div> | ||
|
|
||
| <ButtonWrapper size={isSmOrUp ? 'md' : 'xs'} className="self-end px-5 md:px-6" asChild> | ||
| <Link href={VENUS_FLUX_URL} target="_blank" noStyle> | ||
| {t('adBanner.startNow')} | ||
| </Link> | ||
| </ButtonWrapper> | ||
| <img | ||
| src={illustrationSrc} | ||
| className="absolute right-2 bottom-1 h-19 sm:left-4 sm:right-auto sm:bottom-0 sm:h-22" | ||
| alt={t('venusFluxBanner.illustrationAltText')} | ||
| /> | ||
| </div> | ||
| ); | ||
| }; |
Binary file removed
BIN
-26.6 KB
apps/evm/src/containers/AdBanner/VenusFluxBanner/tabletIllustration.png
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/evm/src/pages/Dashboard/__tests__/__snapshots__/index.spec.tsx.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
|
||
| exports[`Dashboard > displays content correctly 1`] = `"Venus Trade is live nowTrade relative performance on-chainStart nowShare $1M in Venus Flux IncentivesLet your liquidity Flux, watch your yield grow.Start nowPendle vault now openOne-click Pendle yield right from VenusStart nowBoost is available now!One-click leverage to boost your yield up to 5x.Start nowBoost is available now!One-click leverage to boost your yield up to 5x.Isolated pools have been sunsetPlease withdraw or migrate all assets nowStart nowIsolated pools have been sunsetPlease withdraw or migrate all assets nowNet worth$1.23MToday's change+$1.23M99.99%Absolute performance+$1.23MMarketsVaultsHealth factor15.62HealthyNet APY0.02%Daily earnings$1Total supply$1.23MTotal borrow$123.33Borrowed:$123.33LT:Liquidation threshold:$1.92K..Health factor15.62HealthyNet APY0.02%Daily earnings$1Total supply$1.23MTotal borrow$123.33Borrowed:$123.33LT:Liquidation threshold:$1.92K..SuppliedAssetAPY Balancesorted descendingCollateralXVS0.16%90$115.08USDT4.01%5.76%100$100USDC5.99%100$99.99XVSAPY 0.16%Balance90$115.08CollateralUSDTAPY 4.01%5.76%Balance100$100CollateralUSDCAPY 5.99%Balance100$99.99CollateralBorrowedAssetAPY Balancesorted descending% of limitBUSD-5.81%50$500%USDT-5.49%-6.51%40$400%BUSDAPY -5.81%Balance50$50% of limit0%USDTAPY -5.49%-6.51%Balance40$40% of limit0%Spotlight ( Supply/Borrow )USDC5.99%USDT4.01%5.76%BUSD3.56%5.31%"`; | ||
| exports[`Dashboard > displays content correctly 1`] = `"Venus Trade is live nowTrade relative performance on-chainStart now$50K USDT rewards on Venus Flux30 days only. Live May 28 with Binance WalletStart nowPendle vault now openOne-click Pendle yield right from VenusStart nowBoost is available now!One-click leverage to boost your yield up to 5x.Start nowBoost is available now!One-click leverage to boost your yield up to 5x.Isolated pools have been sunsetPlease withdraw or migrate all assets nowStart nowIsolated pools have been sunsetPlease withdraw or migrate all assets nowNet worth$1.23MToday's change+$1.23M99.99%Absolute performance+$1.23MMarketsVaultsHealth factor15.62HealthyNet APY0.02%Daily earnings$1Total supply$1.23MTotal borrow$123.33Borrowed:$123.33LT:Liquidation threshold:$1.92K..Health factor15.62HealthyNet APY0.02%Daily earnings$1Total supply$1.23MTotal borrow$123.33Borrowed:$123.33LT:Liquidation threshold:$1.92K..SuppliedAssetAPY Balancesorted descendingCollateralXVS0.16%90$115.08USDT4.01%5.76%100$100USDC5.99%100$99.99XVSAPY 0.16%Balance90$115.08CollateralUSDTAPY 4.01%5.76%Balance100$100CollateralUSDCAPY 5.99%Balance100$99.99CollateralBorrowedAssetAPY Balancesorted descending% of limitBUSD-5.81%50$500%USDT-5.49%-6.51%40$400%BUSDAPY -5.81%Balance50$50% of limit0%USDTAPY -5.49%-6.51%Balance40$40% of limit0%Spotlight ( Supply/Borrow )USDC5.99%USDT4.01%5.76%BUSD3.56%5.31%"`; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.