Skip to content

Commit

Permalink
fix:stakepage-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ONEONUORA committed Dec 17, 2024
1 parent 42cbf82 commit 71f0902
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 52 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/ui/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
border: none;
cursor: pointer;
font-weight: 600;
border-radius: px;
border-radius: 8px;
transition: all 0.2s ease-in-out;
display: flex;
justify-content: center;
Expand Down Expand Up @@ -71,7 +71,7 @@
left: 0;
right: 0;
bottom: 0;
border-radius: px;
border-radius: 8px;
padding: 2px;
background: linear-gradient(90deg, #74d6fd 0%, #e01dee 100%);
-webkit-mask:
Expand Down Expand Up @@ -101,15 +101,15 @@

@media (max-width: 768px) {
.button {
border-radius: px;
border-radius: 8px;
}

.button--primary {
padding: 20px 12px;
}

.button--secondary::before {
border-radius: px;
border-radius: 8px;
}

.button--lg {
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/pages/vault/stake/Stake.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Stake() {
</div>
<div className='form'>
<h1 className="stake-title">Please submit your leverage details</h1>
<div className="main-card">
<div className="main-stake-card">
<div onClick={() => setShowDrop(!showDrop)} className={showDrop ? "clicked-network-selector-container" : "network-selector-container"}>
<div className="network-selector">
<div className="selected-network">
Expand Down Expand Up @@ -113,13 +113,13 @@ function Stake() {
</div>

<div className="apy-rate">$0.00 APY / year</div>
<GasFee />
<GasFee/>
</div>

</div>
<div className='can-stk'>
<button className='cancel'> Cancel</button>
<Button variant="secondary" size="lg" className="stake-button">
<Button variant="secondary" size="lg" className='cancel'> Cancel</Button>
<Button variant="secondary" size="lg" className="stake-button1">
Stake
</Button>

Expand Down
105 changes: 63 additions & 42 deletions frontend/src/pages/vault/stake/stake.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
.stake-wrapper {
background: url('../../../../public/background.png') no-repeat;
background-size: cover;
background-position: center 29%;
/* min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
margin-left: 200px;
padding: 0 24px;
width: 100vw;
padding: 0 24px; */
}


.token-icon {
display: flex;
Expand All @@ -13,8 +27,8 @@
width: 100%;
}

.main-card {
padding: 3rem 1.5rem;
.main-stake-card {
padding:4px 4px;
height: auto;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -137,7 +151,6 @@
.balance-display-container .mobile-screen-balance {
display: none;
}

/* Responsive */

/* Mobile view */
Expand All @@ -146,15 +159,19 @@
display: none;
}
.top-cards {
width: 342px;
width:100%;
display: flex;
gap: 16px;
justify-content: space-between;
/* display: grid; */
/* grid-template-columns: 1fr 1fr; */
gap: 5px;
height: 88px;
/* align-items: stretch; */
}

.main-container {
width: 100%;

/* gap: 24px;
padding-top: 37px;
border-radius: 20px;
Expand All @@ -171,14 +188,14 @@
width: 167px;
height:88px;
padding: 16px 24px;
border: 1px;
background: var(--header-button-bg);
border: var(--midnight-purple-border);
border-radius: 8px;
font-weight: 600;
font-size: 16px;
display: flex;
justify-content: center;
gap: 16px;
/* flex-direction: column;
/* align-items: center; */
Expand All @@ -193,7 +210,7 @@
align-items: flex-start;
/* width: 390px; */

padding: 5rem 24px;
padding: 3rem 24px;

}

Expand All @@ -202,8 +219,10 @@
justify-content: center;
flex-direction: column;
gap: 20px; */
width: 390px;
width: 100%;
max-width: 390px;
height: 610px;
margin:0 auto;
margin-bottom: 2rem;
}

Expand All @@ -214,6 +233,7 @@
display: block;
margin: 0 auto;
text-align: center;
align-items: center;
padding: 1.5rem 0rem;
}

Expand All @@ -224,20 +244,17 @@
justify-content: center;
margin-top: 2rem;
}

.cancel {
.can-stk .cancel {
width: 167px;
height: 60px;
padding: 16px 24px;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
border-color: #36294E;
background-color: transparent;
border-color:#36294E ;
color: white;
}

.stake-button {
}
.stake-button1 {
width: 167px;
height: 60px;
padding: 16px 24px;
Expand All @@ -247,7 +264,7 @@
}
.form{
margin-bottom: 2rem;
width: 342px;
width: 100%;
display: block;
margin: 0 auto;

Expand All @@ -259,11 +276,11 @@

@media (min-width:768px) {
.stake-wrapper {
/* background-position: 15rem center ; */
min-height: 100vh;
height: 100vh;
overflow-y: auto;
display: flex;
justify-content: center;
align-items: flex-start;
align-items: flex-start;
margin-left: 200px;
width: 100vw;
padding: 5rem 24px;
Expand All @@ -282,7 +299,10 @@
flex-direction: column;
align-items: center;
}

.top-cards{
display: flex;
gap: 24px;
}
.stake-card {
width: 309px;
height:101px;
Expand All @@ -304,15 +324,16 @@
text-align: center;
padding: 1rem 0rem;
}
.stake-button {
.stake-button1 {
width: 642px;
height: 60px;
padding: 16px 24px;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
margin-top: 2rem;
}
}

.cancel{
display: none;
}
Expand Down Expand Up @@ -395,7 +416,7 @@
font-weight: 400;
}
.main-card {
.main-stake-card {
gap: 26px;
flex-direction: column;
border-radius: 12px;
Expand Down Expand Up @@ -423,12 +444,12 @@
font-size: 14px;
} */

/* .stake-button {
/* .stake-button {
font-size: 14px;
padding: 18px 24px;
align-self: center;
} */
} */

/* .balance-card {
max-width: 100%;
Expand Down Expand Up @@ -469,12 +490,12 @@
width: 100%;
/* flex-wrap: wrap; */
/* gap: 6px; */
}


.main-card {
/* .main-stake-card {
margin: 0 auto;
gap: 20px;
}
} */

.amount-field {
font-size: 24px;
Expand All @@ -495,51 +516,51 @@
margin-right: 11px;
align-self: center;
width: 85%;
}
}
} */
/* } */

@media (max-width: 678px) {
.main-container {
padding-top: 0px;
}

.top-cards {
width: 470px;
/* width: 470px; */
gap: 8px;
}

.main-card {
/* .main-stake-card {
padding: 0 20px;
border: none;
}
} */

}

@media (max-width: 480px) {
.top-cards {
width: 380px;
/* width: 380px; */
gap: 10px;
}

.main-card {
/* .main-stake-card {
width: 450px;
}
} */
}

@media (max-width: 400px) {
.top-cards {
/* .top-cards {
width: 330px;
}
} */

}

@media (max-width: 320px) {
.top-cards {
/* .top-cards {
width: 280px;
}
} */

.main-card {
/* .main-stake-card {
width: 330px;
margin:auto;
}
} */
}
5 changes: 3 additions & 2 deletions frontend/src/pages/vault/vaultLayout.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.layout {
background: url('../../../public/background\(jpeg\).png') no-repeat;
/* background: url('../../../public/background\(jpeg\).png') no-repeat; */
/* background: url('../../../public/background.png') no-repeat;
background-size: cover;
background-position: bottom center ;
background-position: bottom center ; */
/* display: flex; */
/* min-height: 100vh; */
/* background: url('../../../public/background.png') no-repeat; */
Expand Down

0 comments on commit 71f0902

Please sign in to comment.