diff --git a/components/ffAssetOverview/ffAssetOverview.module.css b/components/ffAssetOverview/ffAssetOverview.module.css index 3522ebb..d291b90 100644 --- a/components/ffAssetOverview/ffAssetOverview.module.css +++ b/components/ffAssetOverview/ffAssetOverview.module.css @@ -43,7 +43,7 @@ .balanceIcon { color: #fff; - border: 1px solid #fff; + border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; padding: 12px; font-size: 60px !important; diff --git a/components/ffAssets/ffAssets.module.css b/components/ffAssets/ffAssets.module.css index 5fb778b..531373e 100644 --- a/components/ffAssets/ffAssets.module.css +++ b/components/ffAssets/ffAssets.module.css @@ -10,13 +10,13 @@ width: calc(100% - 48px); max-width: 1356px; display: flex; - border: 1px solid rgba(128, 128, 128, 0.8); + border: 1px solid rgba(104, 108, 122, 0.25); position: absolute; - top: 240px; + top: 252px; left: 24px; right: 24px; margin: auto; - padding: 24px 0px; + padding: 0 0 20px 0px; } .title { @@ -25,6 +25,18 @@ } .tableContainer { - border: 1px solid rgba(128, 128, 128, 0.8); + border: 1px solid rgba(104, 108, 122, 0.25); margin: 0 auto; } + +@media screen and (max-width: 1200px) { + .container { + margin-top: -60px; + } +} + +@media screen and (max-width: 960px) { + .container { + margin-top: 117px; + } +} diff --git a/components/ffAssets/ffAssetsTable.js b/components/ffAssets/ffAssetsTable.js index 116da0f..705c16b 100644 --- a/components/ffAssets/ffAssetsTable.js +++ b/components/ffAssets/ffAssetsTable.js @@ -144,7 +144,7 @@ const useStyles = makeStyles((theme) => ({ padding: '24px', width: '100%', flexWrap: 'wrap', - borderBottom: '1px solid rgba(128, 128, 128, 0.32)', + borderBottom: '1px solid rgba(104, 108, 122, 0.25)', background: 'radial-gradient(circle, rgba(63,94,251,0.7) 0%, rgba(47,128,237,0.7) 48%) rgba(63,94,251,0.7) 100%', }, assetInfoError: { @@ -155,7 +155,7 @@ const useStyles = makeStyles((theme) => ({ padding: '24px', width: '100%', flexWrap: 'wrap', - borderBottom: '1px solid rgba(128, 128, 128, 0.32)', + borderBottom: '1px rgba(104, 108, 122, 0.25)', background: '#dc3545', }, infoField: { diff --git a/components/ffClaim/ffClaim.js b/components/ffClaim/ffClaim.js index 1849fba..6a50369 100644 --- a/components/ffClaim/ffClaim.js +++ b/components/ffClaim/ffClaim.js @@ -37,6 +37,7 @@ export default function ffClaim() { setLoading(true) stores.dispatcher.dispatch({ type: FIXED_FOREX_CLAIM_VESTING_REWARD, content: {}}) // } + } return ( diff --git a/components/ffClaim/ffClaim.module.css b/components/ffClaim/ffClaim.module.css index e784ce2..7b9131a 100644 --- a/components/ffClaim/ffClaim.module.css +++ b/components/ffClaim/ffClaim.module.css @@ -11,7 +11,7 @@ } .lpOptionsContainer { - border: 1px solid rgba(128, 128, 128, 0.8); + border: 1px solid rgba(104, 108, 122, 0.25); margin: 0 auto; display: flex; align-items: center; @@ -63,8 +63,6 @@ top: 12px; } - - .lpOption:nth-child(1):hover > div { color: #fff !important; } @@ -73,3 +71,9 @@ font-size: 60px !important; font-weight: bold !important; } + +@media screen and (max-width: 1200px) { + .container { + margin-bottom: 48px; + } +} diff --git a/components/ffCurveLiquidity/ffCurveLiquidity.js b/components/ffCurveLiquidity/ffCurveLiquidity.js index e0d718b..3d3344d 100644 --- a/components/ffCurveLiquidity/ffCurveLiquidity.js +++ b/components/ffCurveLiquidity/ffCurveLiquidity.js @@ -447,6 +447,7 @@ export default function ffCurveLiquidity({ asset }) { - - -
-
- { - activeTab === 'deposit' && - <> - { renderInput('deposit', 'Deposit', onAmountChanged, onAmountPercentChanged, depositAmount, onAssetChanged, depositAsset) } - { renderInput('mint', 'Mint', onAmountChanged, onAmountPercentChanged, mintAmount, onAssetChanged, mintAsset) } - - } - { - activeTab === 'withdraw' && - <> - { renderInput('withdraw', 'Withdraw', onAmountChanged, onAmountPercentChanged, withdrawAmount, onAssetChanged, withdrawAsset) } - { renderInput('burn', 'Burn', onAmountChanged, onAmountPercentChanged, burnAmount, onAssetChanged, burnAsset) } - - } + + +
+ + + + + + + +
- { - activeTab === 'deposit' && -
- - -
- } - { - activeTab === 'withdraw' && -
- - -
- } -
+ + +
+ + +
+ { + activeTab === 'deposit' && + <> + { renderInput('deposit', 'Deposit', onAmountChanged, onAmountPercentChanged, depositAmount, onAssetChanged, depositAsset) } + { renderInput('mint', 'Mint', onAmountChanged, onAmountPercentChanged, mintAmount, onAssetChanged, mintAsset) } + + } + { + activeTab === 'withdraw' && + <> + { renderInput('withdraw', 'Withdraw', onAmountChanged, onAmountPercentChanged, withdrawAmount, onAssetChanged, withdrawAsset) } + { renderInput('burn', 'Burn', onAmountChanged, onAmountPercentChanged, burnAmount, onAssetChanged, burnAsset) } + + } +
+
+ + { + activeTab === 'deposit' && +
+ + +
+ } + { + activeTab === 'withdraw' && +
+ + +
+ } +
+
+
+
+ ); } diff --git a/components/ffMintBurn/ffMintBurn.module.css b/components/ffMintBurn/ffMintBurn.module.css index 44f8635..d60ac38 100644 --- a/components/ffMintBurn/ffMintBurn.module.css +++ b/components/ffMintBurn/ffMintBurn.module.css @@ -2,7 +2,7 @@ width: calc(100% - 48px); max-width: 1356px; display: flex; - border: 1px solid rgba(128, 128, 128, 0.8); + border: 1px solid rgba(104, 108, 122, 0.25); position: absolute; top: 240px; left: 24px; @@ -11,18 +11,21 @@ border-radius: 30px; } +.buttonWrap { +} + .actionsContainer { display: grid; grid-gap: 12px; grid-template-columns: 1fr; - border-left: 1px solid rgba(128, 128, 128, 0.8); + border-left: 1px solid rgba(104, 108, 122, 0.25); padding: 0px 24px; - width: 240px; + width: 100%; } .informationContainer { width: 300px; - border-left: 1px solid rgba(128, 128, 128, 0.25); + border-left: 1px solid rgba(104, 108, 122, 0.25); min-height: 140px; padding: 0px 12px; } @@ -58,16 +61,17 @@ .toggleButtons { display: flex; flex-direction: column; - min-height: 140px; - width: 200px; + min-height: 170px; + width: 100%; } .button { border-radius: 0px !important; flex: 1; - border-right: 1px solid rgba(128, 128, 128, 0.25) !important; + border-right: 1px solid rgba(104, 108, 122, 0.25) !important; transition: none !important; - opacity: 0.5; + opacity: 1; + color: rgba(104, 108, 122, 0.5) !important; } .buttonActive { @@ -101,17 +105,21 @@ .topLeftButton { border-top-left-radius: 10px !important; - border-bottom: 1px solid rgba(128, 128, 128, 0.25) !important; + border-bottom: 1px solid rgba(104, 108, 122, 0.25) !important; + width: 100%; + min-height: 85px; } .bottomLeftButton { border-bottom-left-radius: 10px !important; + width: 100%; + min-height: 85px; } .inputsContainer { display: grid; grid-template-columns: 1fr 1fr; - grid-gap: 24px 48px; + grid-gap: 24px 0px; padding: 0px 24px; flex: 1; } @@ -126,6 +134,51 @@ display: flex; } -@media screen and (max-width: 576px) { +.buttonOverride { + background: #114DF0 !important; + color: #FFF !important; + font-weight: 700 !important; + box-shadow: none !important; + width: 100% !important; +} + +@media screen and (max-width: 1200px) { + .container { + margin-top: -60px; + } + + .buttonWrap { + margin-top: 20px !important; + } + + .actionsContainer { + border-left: 0px solid rgba(104, 108, 122, 0.25); + } + + +} + +@media screen and (max-width: 960px) { + .container { + margin-top: -60px; + } + + .toggleButtons { + display: flex; + flex-direction: column; + min-height: 85px; + width: 100%; + } + + .topLeftButton { + border-top-left-radius: 10px !important; + border-right: 1px solid rgba(104, 108, 122, 0.25) !important; + border-bottom: 1px solid rgba(104, 108, 122, 0.25) !important; + } + .bottomLeftButton { + border-top-right-radius: 10px !important; + border-bottom-left-radius: 0px !important; + border-bottom: 1px solid rgba(104, 108, 122, 0.25) !important; + } } diff --git a/components/ffOverview/ffOverview.js b/components/ffOverview/ffOverview.js index 3c93ff7..7cb1e3d 100644 --- a/components/ffOverview/ffOverview.js +++ b/components/ffOverview/ffOverview.js @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { Paper, Typography, Button, TextField, InputAdornment, CircularProgress } from '@material-ui/core'; +import { Paper, Grid, Typography, Button, TextField, InputAdornment, CircularProgress } from '@material-ui/core'; import Autocomplete from '@material-ui/lab/Autocomplete'; import Skeleton from '@material-ui/lab/Skeleton'; import AccountBalanceWalletIcon from '@material-ui/icons/AccountBalanceWallet'; @@ -38,36 +38,44 @@ export default function ffOverview() { return (
-
- -
- IBFF Balance: -
- { formatCurrency(ibff ? ibff.balance : 0) } - { ibff ? ibff.symbol : '' } + + +
+ +
+ IBFF Balance: +
+ { formatCurrency(ibff ? ibff.balance : 0) } + { ibff ? ibff.symbol : '' } +
+
-
-
-
- -
- Vested Balance: -
- { formatCurrency((veIBFF && veIBFF.vestingInfo) ? veIBFF.vestingInfo.lockValue : 0) } - { veIBFF ? veIBFF.symbol : '' } + + +
+ +
+ Vested Balance: +
+ { formatCurrency((veIBFF && veIBFF.vestingInfo) ? veIBFF.vestingInfo.lockValue : 0) } + { veIBFF ? veIBFF.symbol : '' } +
+
-
-
-
- -
- Rewards Available: -
- { formatCurrency(rewards ? rewards.faucet.faucet : 0) } - { ibff ? ibff.symbol : '' } + + +
+ +
+ Rewards Available: +
+ { formatCurrency(rewards ? rewards.faucet.faucet : 0) } + { ibff ? ibff.symbol : '' } +
+
-
-
+ +
); diff --git a/components/ffOverview/ffOverview.module.css b/components/ffOverview/ffOverview.module.css index 19edf57..98b6831 100644 --- a/components/ffOverview/ffOverview.module.css +++ b/components/ffOverview/ffOverview.module.css @@ -20,7 +20,7 @@ } .title { - background: rgba(256, 256, 256, 0.3); + background: rgba(256, 256, 256, 0.2); border-radius: 30px; padding: 4px 20px; width: fit-content; @@ -49,7 +49,7 @@ .balanceIcon { color: #fff; - border: 1px solid #fff; + border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; padding: 16px; font-size: 70px !important; diff --git a/components/ffStake/ffStake.js b/components/ffStake/ffStake.js index b266db8..f20d7b1 100644 --- a/components/ffStake/ffStake.js +++ b/components/ffStake/ffStake.js @@ -261,6 +261,7 @@ export default function ffStake() { variant='contained' size='large' color='primary' + className={classes.buttonOverride} disabled={ depositApprovalNotRequired || approvalLoading } onClick={ onApprove } > @@ -271,6 +272,7 @@ export default function ffStake() { variant='contained' size='large' color='primary' + className={classes.buttonOverride} disabled={ stakeLoading } onClick={ onStake } > @@ -285,6 +287,7 @@ export default function ffStake() {
- + +
+ router.push('/')} className={classes.linkz}> + + + + + + + + + + + + + + + + + + + + + + +
+
{renderNavs()}
diff --git a/components/navigation/navigation.module.css b/components/navigation/navigation.module.css index 05c08ee..99837a3 100644 --- a/components/navigation/navigation.module.css +++ b/components/navigation/navigation.module.css @@ -247,8 +247,10 @@ a.linkz { cursor: pointer !important; } } .yearnLogo { - width: 95px !important; - height: 42.3px !important; + width: 110px !important; + height: 50px !important; + left: -3px; + position: relative; } .iconHack { diff --git a/pages/asset/[address]/asset.module.css b/pages/asset/[address]/asset.module.css index 2246866..a065223 100644 --- a/pages/asset/[address]/asset.module.css +++ b/pages/asset/[address]/asset.module.css @@ -6,7 +6,6 @@ margin-top: 0px; padding-top: 60px; position: relative; - position: relative; } @@ -15,9 +14,7 @@ } @media screen and (max-width: 1200px) { - -} - -@media screen and (max-width: 1000px) { - + .container { + padding-top: 0px; + } } diff --git a/pages/asset/[address]/curve/curve.module.css b/pages/asset/[address]/curve/curve.module.css index 2246866..e053c1b 100644 --- a/pages/asset/[address]/curve/curve.module.css +++ b/pages/asset/[address]/curve/curve.module.css @@ -15,7 +15,9 @@ } @media screen and (max-width: 1200px) { - + .container { + padding-top: 0px; + } } @media screen and (max-width: 1000px) { diff --git a/pages/home/home.module.css b/pages/home/home.module.css index 7c0684d..603be78 100644 --- a/pages/home/home.module.css +++ b/pages/home/home.module.css @@ -14,7 +14,9 @@ } @media screen and (max-width: 1200px) { - + .ffContainer { + padding-top: 0px; + } } @media screen and (max-width: 1000px) { diff --git a/pages/stake/stake.module.css b/pages/stake/stake.module.css index 7c0684d..8108427 100644 --- a/pages/stake/stake.module.css +++ b/pages/stake/stake.module.css @@ -6,7 +6,6 @@ margin-top: 0px; padding-top: 60px; position: relative; - position: relative; } @media screen and (max-width: 1600px) { @@ -14,7 +13,9 @@ } @media screen and (max-width: 1200px) { - + .ffContainer { + padding-top: 0px; + } } @media screen and (max-width: 1000px) { diff --git a/pages/vest/index.js b/pages/vest/index.js index aa000a9..3230608 100644 --- a/pages/vest/index.js +++ b/pages/vest/index.js @@ -6,7 +6,7 @@ import Layout from '../../components/layout/layout.js'; import Vesting from '../../components/ffVest'; import Overview from '../../components/ffOverview'; import Claim from '../../components/ffClaim'; -import ClaimDistribution from '../../components/ffClaimDistirbution'; +import ClaimDistribution from '../../components/ffClaimDistirbution'; import classes from './vest.module.css'; diff --git a/pages/vest/vest.module.css b/pages/vest/vest.module.css index 7c0684d..8108427 100644 --- a/pages/vest/vest.module.css +++ b/pages/vest/vest.module.css @@ -6,7 +6,6 @@ margin-top: 0px; padding-top: 60px; position: relative; - position: relative; } @media screen and (max-width: 1600px) { @@ -14,7 +13,9 @@ } @media screen and (max-width: 1200px) { - + .ffContainer { + padding-top: 0px; + } } @media screen and (max-width: 1000px) { diff --git a/pages/vote/vote.module.css b/pages/vote/vote.module.css index 7c0684d..8108427 100644 --- a/pages/vote/vote.module.css +++ b/pages/vote/vote.module.css @@ -6,7 +6,6 @@ margin-top: 0px; padding-top: 60px; position: relative; - position: relative; } @media screen and (max-width: 1600px) { @@ -14,7 +13,9 @@ } @media screen and (max-width: 1200px) { - + .ffContainer { + padding-top: 0px; + } } @media screen and (max-width: 1000px) { diff --git a/public/favicon.png b/public/favicon.png index e6df727..c5b8636 100644 Binary files a/public/favicon.png and b/public/favicon.png differ diff --git a/public/logo-dark.svg b/public/logo-dark.svg new file mode 100644 index 0000000..d0a4e90 --- /dev/null +++ b/public/logo-dark.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/public/logo-light.svg b/public/logo-light.svg new file mode 100644 index 0000000..4bea83a --- /dev/null +++ b/public/logo-light.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/stores/fixedForexStore.js b/stores/fixedForexStore.js index 4f7f926..0d2b3c0 100644 --- a/stores/fixedForexStore.js +++ b/stores/fixedForexStore.js @@ -652,7 +652,7 @@ class Store { return this.emitter.emit(FIXED_FOREX_STAKING_REWARD_CLAIMED, res); }); } - + _callClaimCurveReward = async (web3, account, asset, gasSpeed, callback) => { try { const gaugeContract = new web3.eth.Contract(abis.gaugeABI, asset.gauge.address) diff --git a/theme/dark.js b/theme/dark.js index 22813dc..9be4705 100644 --- a/theme/dark.js +++ b/theme/dark.js @@ -36,10 +36,10 @@ const theme = createTheme({ }, MuiTooltip: { tooltip: { - background: "#000 !important", + background: "#FFF !important", border: "1px solid #fff", borderRadius: "8px", - color: "#fff", + color: "#000", fontSize: "13px" } } diff --git a/theme/light.js b/theme/light.js index e159017..b4f8997 100644 --- a/theme/light.js +++ b/theme/light.js @@ -39,10 +39,10 @@ const theme = createTheme({ }, MuiTooltip: { tooltip: { - background: "#fff !important", + background: "#000 !important", border: "1px solid #000", borderRadius: "8px", - color: "#000", + color: "#FFF", fontSize: "13px" } }