From 5d10ee11d139be1dedec5bf3554d5bbc154c5995 Mon Sep 17 00:00:00 2001 From: Onuora Ebube Ebuka Date: Wed, 18 Dec 2024 10:23:08 +0000 Subject: [PATCH] fix: stake page-ui --- frontend/src/components/GasFee/gasfee.css | 2 + frontend/src/pages/vault/stake/Stake.jsx | 154 +++++++++++----------- frontend/src/pages/vault/stake/stake.css | 18 ++- 3 files changed, 86 insertions(+), 88 deletions(-) diff --git a/frontend/src/components/GasFee/gasfee.css b/frontend/src/components/GasFee/gasfee.css index 00bc8e87..6ca653c9 100644 --- a/frontend/src/components/GasFee/gasfee.css +++ b/frontend/src/components/GasFee/gasfee.css @@ -3,6 +3,8 @@ display: flex; align-items: center; justify-content: space-between; + padding: 0rem 3rem; + padding-bottom: 1rem; } .gas-fee-circle { diff --git a/frontend/src/pages/vault/stake/Stake.jsx b/frontend/src/pages/vault/stake/Stake.jsx index dbf30b92..fa341fa0 100644 --- a/frontend/src/pages/vault/stake/Stake.jsx +++ b/frontend/src/pages/vault/stake/Stake.jsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { ReactComponent as ETH } from '../../../assets/icons/ethereum.svg'; import { ReactComponent as USDC } from '../../../assets/icons/borrow_usdc.svg'; import { ReactComponent as DAI } from '../../../assets/icons/dai.svg'; -import { ReactComponent as STTRK } from '../../../assets/icons/strk.svg' +import { ReactComponent as STTRK } from '../../../assets/icons/strk.svg'; import MetricCard from 'components/StakeCard/MetricCard'; import STRK from '../../../assets/icons/strk.svg'; import USDCc from '../../../assets/icons/apy_icon.svg'; @@ -15,7 +15,7 @@ import BalanceCards from 'components/BalanceCards'; function Stake() { const [selectedNetwork, setSelectedNetwork] = useState('Starknet'); const [amount, setAmount] = useState('0'); - const [showDrop, setShowDrop] = useState(false) + const [showDrop, setShowDrop] = useState(false); const [balances, setBalances] = useState([ { icon: , title: 'STRK', balance: '0.046731' }, @@ -26,7 +26,6 @@ function Stake() { const networks = [{ name: 'Starknet', image: STRK }]; const handleChange = (network) => { setSelectedNetwork(network.name); - }; const handleAmountChange = (e) => { @@ -42,99 +41,98 @@ function Stake() {
-
-
+
+
- +
-
-

Please submit your leverage details

-
-
setShowDrop(!showDrop)} className={showDrop ? "clicked-network-selector-container" : "network-selector-container"}> -
-
- network.name === selectedNetwork)?.image} - alt={selectedNetwork} - className="network-icon" - /> - {selectedNetwork} +
+

Please submit your leverage details

+
+
setShowDrop(!showDrop)} + className={showDrop ? 'clicked-network-selector-container' : 'network-selector-container'} + > +
+
+ network.name === selectedNetwork)?.image} + alt={selectedNetwork} + className="network-icon" + /> + {selectedNetwork} +
+ + + +
+ +
+ {networks.map((network) => ( +
handleChange(network)}> + {network.name} + {network.name} +
+ ))}
- - -
-
- {networks.map((network) => ( -
handleChange(network)}> - {network.name} - {network.name} -
- ))} +
+ + + STRK +
-
-
- - STRK -
+
$0.00 APY / year
+
+
+
-
$0.00 APY / year
-
-
-
- - + +
+
+
+ +
- -
-
- - - -
-
); } - - -export default Stake; \ No newline at end of file +export default Stake; diff --git a/frontend/src/pages/vault/stake/stake.css b/frontend/src/pages/vault/stake/stake.css index 54c36abe..34a834dd 100644 --- a/frontend/src/pages/vault/stake/stake.css +++ b/frontend/src/pages/vault/stake/stake.css @@ -212,7 +212,8 @@ display: flex; gap: 8px; align-items: center; - justify-content: center; + justify-content: space-between; + width:100%; margin-top: 2rem; } .cancel { @@ -241,17 +242,12 @@ } - .parent-divider { - display: flex; - justify-items: auto; - - -} .divider1 { - /* max-width: 100%; */ height: 1px; + width: 80%; background: var(--footer-divider-bg); + margin:auto; } @@ -259,9 +255,11 @@ /* Desktop view */ @media (min-width:768px) { - .divider { - width: 100%; + .divider1 { + height: 1px; + width: 80%; background: var(--footer-divider-bg); + margin:auto; } .stake-wrapper {