Skip to content

Commit

Permalink
Feature/Dashboard-note (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Yehor Podporinov <yehor.podporinov@Yehors-MacBook-Pro.local>
  • Loading branch information
yehor-podporinov and Yehor Podporinov authored Feb 9, 2024
1 parent 0826859 commit 5642f6b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/localization/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"user-deposit-title": "Your deposit",
"available-to-claim-title": "Available to claim",
"claim-btn": "Claim MOR",
"dashboard-description--0": "Upon withdrawal, your deposit will be sent to your address. In case of claim, tokens will be minted in the Arbitrum One network. This may take some time."
"dashboard-description--0": "Upon withdrawal, your deposit will be sent to your address. In case of claim, tokens will be minted in the Arbitrum One network. This may take some time.",
"dashboard-note--0": "Note: You can withdraw your stETH {daysCount} days after deposit"
}
},
"info-dashboard": {
Expand Down
16 changes: 16 additions & 0 deletions src/pages/HomePage/views/PublicPoolView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
<p class="public-pool-view__dashboard-description">
{{ $t(`home-page.public-pool-view.dashboard-description--${poolId}`) }}
</p>
<p v-if="poolData" class="public-pool-view__dashboard-note">
{{
$t(`home-page.public-pool-view.dashboard-note--${poolId}`, {
daysCount: poolData.withdrawLockPeriod.div(24 * 60 * 60),
})
}}
</p>
<withdraw-modal
v-if="!isWithdrawDisabled && userPoolData"
v-model:is-shown="isWithdrawModalShown"
Expand Down Expand Up @@ -260,4 +267,13 @@ const dashboardProgress = computed<ProgressBarType.Progress>(() => ({
@include body-5-regular;
}
.public-pool-view__dashboard-note {
$color: #cccccc;
margin-top: toRem(24);
color: $color;
@include body-italic;
}
</style>
9 changes: 9 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@ $media-breakpoints: (
letter-spacing: 0;
}

@mixin body-italic {
font-family: var(--app-font-family);
font-size: toRem(15);
font-style: italic;
font-weight: 400;
line-height: toRem(22);
letter-spacing: 0;
}

@keyframes shine {
to {
background-position-x: -200%;
Expand Down

0 comments on commit 5642f6b

Please sign in to comment.