|
| 1 | +<template> |
| 2 | + <Modal v-bind="$attrs" v-on="$listeners" emitClose ref="$modal" @close="close"> |
| 3 | + <PageHeader> |
| 4 | + {{ $t('We’re busy fixing the wallet but your NIM are safe') }} |
| 5 | + <p slot="more" class="nq-text nq-light-blue"> |
| 6 | + {{ $t('The network and your NIM successfully migrated to Proof-of-Stake.' |
| 7 | + + ' ' + 'The wallet is not fully up to speed yet but we’re getting there.') }} |
| 8 | + </p> |
| 9 | + </PageHeader> |
| 10 | + |
| 11 | + <PageBody> |
| 12 | + <p class="nq-text">{{ $t('Please have patience while we fix:') }}</p> |
| 13 | + |
| 14 | + <ul> |
| 15 | + <li>{{ $t('Syncing takes long and fails in certain cases.') }}</li> |
| 16 | + <li>{{ $t('The transaction history does not update correctly.') }}</li> |
| 17 | + <li> |
| 18 | + <span class="pill">{{ $t('Rare') }}</span> |
| 19 | + {{ $t('Problems with un-staking.') }} |
| 20 | + </li> |
| 21 | + <li> |
| 22 | + <span class="pill">{{ $t('Rare') }}</span> |
| 23 | + {{ $t('Incomplete balances being displayed.') }} |
| 24 | + </li> |
| 25 | + </ul> |
| 26 | + </PageBody> |
| 27 | + |
| 28 | + <PageFooter> |
| 29 | + <i18n path="If in doubt, you can always check your balance at {nimiqWatchLink}" tag="p" class="nq-text"> |
| 30 | + <template v-slot:nimiqWatchLink> |
| 31 | + <a href="https://nimiq.watch" target="_blank"> |
| 32 | + nimiq.watch |
| 33 | + </a> |
| 34 | + </template> |
| 35 | + </i18n> |
| 36 | + |
| 37 | + <i18n path="If you require further assistance, please reach out at {discordLink}" |
| 38 | + tag="p" class="nq-text"> |
| 39 | + <template v-slot:discordLink> |
| 40 | + <a href="https://discord.gg/nimiq" target="_blank"> |
| 41 | + discord.gg/nimiq |
| 42 | + </a> |
| 43 | + </template> |
| 44 | + </i18n> |
| 45 | + </PageFooter> |
| 46 | + </Modal> |
| 47 | +</template> |
| 48 | + |
| 49 | +<script lang="ts"> |
| 50 | +import { defineComponent, ref } from '@vue/composition-api'; |
| 51 | +import { PageHeader, PageBody, PageFooter } from '@nimiq/vue-components'; |
| 52 | +import Modal from './Modal.vue'; |
| 53 | +
|
| 54 | +export default defineComponent({ |
| 55 | + name: 'WelcomeStakingModal', |
| 56 | + setup() { |
| 57 | + const $modal = ref<Modal | null>(null); |
| 58 | +
|
| 59 | + async function close() { |
| 60 | + await $modal.value?.forceClose(); |
| 61 | + } |
| 62 | +
|
| 63 | + return { $modal, close }; |
| 64 | + }, |
| 65 | + components: { |
| 66 | + Modal, |
| 67 | + PageHeader, |
| 68 | + PageBody, |
| 69 | + PageFooter, |
| 70 | + }, |
| 71 | +}); |
| 72 | +</script> |
| 73 | + |
| 74 | +<style lang="scss" scoped> |
| 75 | +@import '../../scss/functions.scss'; |
| 76 | +@import '../../scss/variables.scss'; |
| 77 | +
|
| 78 | +.modal { |
| 79 | + ::v-deep .small-page { |
| 80 | + width: 63rem; |
| 81 | + min-height: 67rem; |
| 82 | + } |
| 83 | +} |
| 84 | +
|
| 85 | +.page-header { |
| 86 | + padding: 4rem 7rem; |
| 87 | + text-wrap: balance; |
| 88 | +
|
| 89 | + p { |
| 90 | + font-size: 2rem; |
| 91 | + font-weight: 600; |
| 92 | + margin-bottom: 0; |
| 93 | + } |
| 94 | +} |
| 95 | +
|
| 96 | +.page-body { |
| 97 | + display: flex; |
| 98 | + flex-direction: column; |
| 99 | + align-items: center; |
| 100 | +
|
| 101 | + ul { |
| 102 | + list-style-type: none; |
| 103 | + width: 100%; |
| 104 | + padding: 0; |
| 105 | + margin: 0; |
| 106 | +
|
| 107 | + border: 1px solid nimiq-blue(0.1); |
| 108 | + border-radius: 1.5rem; |
| 109 | +
|
| 110 | + font-size: 2rem; |
| 111 | + font-weight: 600; |
| 112 | +
|
| 113 | + li { |
| 114 | + padding: 1rem 1.5rem; |
| 115 | + border-bottom: 1px solid nimiq-blue(0.1); |
| 116 | +
|
| 117 | + .pill { |
| 118 | + --color: #{nimiq-blue(.6)}; |
| 119 | +
|
| 120 | + color: var(--color); |
| 121 | + border: 1px solid var(--color); |
| 122 | + border-radius: 5rem; |
| 123 | +
|
| 124 | + font-size: 1.5rem; |
| 125 | + text-transform: uppercase; |
| 126 | +
|
| 127 | + padding: .2rem .8rem; |
| 128 | + margin-right: .5rem; |
| 129 | + } |
| 130 | +
|
| 131 | + &:last-child { border-bottom: none } |
| 132 | + } |
| 133 | + } |
| 134 | +} |
| 135 | +
|
| 136 | +.page-footer { |
| 137 | + display: flex; |
| 138 | + flex-direction: column; |
| 139 | + align-items: center; |
| 140 | + text-align: center; |
| 141 | + padding: 4rem; |
| 142 | + padding-top: 0; |
| 143 | +
|
| 144 | + p { |
| 145 | + &, a, a:visited { |
| 146 | + color: nimiq-blue(.6); |
| 147 | + } |
| 148 | +
|
| 149 | + &:first-child { font-weight: 600 } |
| 150 | + &:last-child { margin-bottom: 0 } |
| 151 | + } |
| 152 | +
|
| 153 | + a { text-decoration: underline } |
| 154 | +} |
| 155 | +
|
| 156 | +@media (max-width: $mobileBreakpoint) { |
| 157 | + .page-header { |
| 158 | + padding: 4rem 4.75rem; |
| 159 | + } |
| 160 | +} |
| 161 | +</style> |
0 commit comments