|
| 1 | +<template> |
| 2 | + <Modal ref="modal$"> |
| 3 | + <PageBody class="grid-layout"> |
| 4 | + <div class="content-column"> |
| 5 | + <img src="@/assets/multisig-logo.svg" alt="Multisig" class="logo"> |
| 6 | + <h1 class="nq-h1">{{ $t('Check out Nimiq Multisig Wallets') }}</h1> |
| 7 | + <p class="nq-text"> |
| 8 | + {{ $t('Share wallets with family, friends, and business partners.') }} |
| 9 | + </p> |
| 10 | + <i18n |
| 11 | + tag="p" |
| 12 | + path="Read all about it in this {blog_post} or get right into it." |
| 13 | + class="nq-text secondary" |
| 14 | + > |
| 15 | + <template #blog_post> |
| 16 | + <a href="https://www.nimiq.com/blog/" target="_blank" rel="noopener">{{ $t('blog post') }}</a> |
| 17 | + </template> |
| 18 | + </i18n> |
| 19 | + <div class="flex-grow"></div> |
| 20 | + <button class="nq-button light-blue" @click="visitMultisig" @mousedown.prevent> |
| 21 | + {{ $t('VISIT MULTISIG.NIMIQ.COM') }} |
| 22 | + </button> |
| 23 | + <a class="nq-link" @click="close">{{ $t('Skip') }} <span class="chevron">›</span></a> |
| 24 | + </div> |
| 25 | + <div class="image-column"> |
| 26 | + <img src="@/assets/multisig-announcement.webp" alt="Multisig App" class="hero-image"> |
| 27 | + </div> |
| 28 | + </PageBody> |
| 29 | + </Modal> |
| 30 | +</template> |
| 31 | + |
| 32 | +<script lang="ts"> |
| 33 | +import { defineComponent, ref } from '@vue/composition-api'; |
| 34 | +import { PageBody } from '@nimiq/vue-components'; |
| 35 | +import Modal from './Modal.vue'; |
| 36 | +import { MULTISIG_ANNOUNCEMENT_MODAL_LOCALSTORAGE_KEY } from '../../lib/Constants'; |
| 37 | +
|
| 38 | +export default defineComponent({ |
| 39 | + setup() { |
| 40 | + const modal$ = ref<Modal>(null); |
| 41 | +
|
| 42 | + function visitMultisig() { |
| 43 | + window.open('https://multisig.nimiq.com', '_blank', 'noopener,noreferrer'); |
| 44 | + close(); |
| 45 | + } |
| 46 | +
|
| 47 | + function close() { |
| 48 | + window.localStorage.setItem(MULTISIG_ANNOUNCEMENT_MODAL_LOCALSTORAGE_KEY, 'true'); |
| 49 | + modal$.value!.forceClose(); |
| 50 | + } |
| 51 | +
|
| 52 | + return { modal$, visitMultisig, close }; |
| 53 | + }, |
| 54 | + components: { Modal, PageBody }, |
| 55 | +}); |
| 56 | +</script> |
| 57 | + |
| 58 | +<style lang="scss" scoped> |
| 59 | +.modal { |
| 60 | + ::v-deep .small-page { |
| 61 | + width: 91rem; |
| 62 | + max-height: 51.2rem; |
| 63 | + background: white; |
| 64 | + overflow: hidden; |
| 65 | + } |
| 66 | +
|
| 67 | + ::v-deep .close-button { |
| 68 | + display: none; |
| 69 | + } |
| 70 | +} |
| 71 | +
|
| 72 | +.page-body { |
| 73 | + &.grid-layout { |
| 74 | + display: grid; |
| 75 | + grid-template-columns: 0.55fr 0.45fr; |
| 76 | + gap: 0; |
| 77 | + padding: 0; |
| 78 | + height: 100%; |
| 79 | + grid-template-rows: minmax(0, 1fr); |
| 80 | + } |
| 81 | +} |
| 82 | +
|
| 83 | +.content-column { |
| 84 | + display: flex; |
| 85 | + flex-direction: column; |
| 86 | + align-items: center; |
| 87 | + text-align: center; |
| 88 | + padding: 8rem 2rem 4rem; |
| 89 | + min-height: 0; |
| 90 | +} |
| 91 | +
|
| 92 | +.image-column { |
| 93 | + display: flex; |
| 94 | + align-items: flex-start; |
| 95 | + justify-content: flex-start; |
| 96 | + overflow: hidden; |
| 97 | + position: relative; |
| 98 | + min-height: 0; |
| 99 | +} |
| 100 | +
|
| 101 | +.hero-image { |
| 102 | + width: auto; |
| 103 | + height: 100%; |
| 104 | + max-height: 100%; |
| 105 | + object-fit: cover; |
| 106 | + object-position: left top; |
| 107 | + transform: translateY(3.2rem); |
| 108 | +} |
| 109 | +
|
| 110 | +.logo { |
| 111 | + width: 9.6rem; |
| 112 | + height: 9.6rem; |
| 113 | + margin-bottom: 3rem; |
| 114 | +} |
| 115 | +
|
| 116 | +.nq-h1 { |
| 117 | + margin: 0 0 2rem; |
| 118 | + color: var(--nimiq-blue); |
| 119 | + text-wrap: balance; |
| 120 | +} |
| 121 | +
|
| 122 | +.nq-text { |
| 123 | + color: var(--nimiq-blue); |
| 124 | + margin: 0 0 1.5rem; |
| 125 | + max-width: 30ch; |
| 126 | + text-wrap: pretty; |
| 127 | +} |
| 128 | +
|
| 129 | +.secondary { |
| 130 | + color: var(--text-60); |
| 131 | + margin-bottom: 2rem; |
| 132 | +
|
| 133 | + a { |
| 134 | + color: var(--text-60); |
| 135 | + text-decoration: underline; |
| 136 | + } |
| 137 | +} |
| 138 | +
|
| 139 | +.nq-link { |
| 140 | + font-weight: 600; |
| 141 | + font-size: var(--small-size); |
| 142 | + color: var(--text-60); |
| 143 | + margin-bottom: -1.5rem; |
| 144 | + cursor: pointer; |
| 145 | +
|
| 146 | + .chevron { |
| 147 | + font-size: 1.25em; |
| 148 | + } |
| 149 | +} |
| 150 | +
|
| 151 | +.nq-button { |
| 152 | + align-self: stretch; |
| 153 | +} |
| 154 | +
|
| 155 | +@media (max-width: 768px) { |
| 156 | + .modal { |
| 157 | + ::v-deep .small-page { |
| 158 | + width: 52.5rem; |
| 159 | + max-height: none; |
| 160 | + } |
| 161 | + } |
| 162 | +
|
| 163 | + .page-body { |
| 164 | + &.grid-layout { |
| 165 | + grid-template-columns: 1fr; |
| 166 | + height: auto; |
| 167 | + } |
| 168 | + } |
| 169 | +
|
| 170 | + .image-column { |
| 171 | + display: none !important; |
| 172 | + } |
| 173 | +
|
| 174 | + .content-column { |
| 175 | + padding: 6rem 2rem 4rem; |
| 176 | + } |
| 177 | +} |
| 178 | +</style> |
0 commit comments