-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: added lockdrop account warning * fix: words * hotfix: added a modal for disabling lockdrop account on Astar network (#892) * feat: added lockdrop account warning * fix: words * fix: words (2)
- Loading branch information
1 parent
c20a897
commit 9c707f1
Showing
4 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<template> | ||
<modal-wrapper | ||
:is-modal-open="isModal" | ||
title="" | ||
:is-closing="isClosingModal" | ||
:close-modal="closeModal" | ||
> | ||
<div class="wrapper--modal"> | ||
<div class="row--title"> | ||
<div class="icon--warning"> | ||
<astar-icon-warning size="40" /> | ||
</div> | ||
<span>{{ $t('warning.warning') }}</span> | ||
</div> | ||
<div class="row--message"> | ||
<span class="text--message">{{ $t('assets.modals.lockdropWarning.message') }}</span> | ||
</div> | ||
<div class="box--list"> | ||
<li> | ||
<span> | ||
{{ $t('assets.modals.lockdropWarning.list1') }} | ||
</span> | ||
</li> | ||
<li> | ||
<span> | ||
{{ $t('assets.modals.lockdropWarning.list2') }} | ||
</span> | ||
</li> | ||
</div> | ||
<div class="row--end-date"> | ||
<span>{{ $t('assets.modals.lockdropWarning.closeTime') }} </span> | ||
</div> | ||
<div class="wrapper__row--button"> | ||
<astar-button class="button--confirm" @click="closeModal"> | ||
{{ $t('assets.modals.lockdropWarning.gotIt') }}</astar-button | ||
> | ||
</div> | ||
</div> | ||
</modal-wrapper> | ||
</template> | ||
<script lang="ts"> | ||
import { wait } from '@astar-network/astar-sdk-core'; | ||
import { fadeDuration } from '@astar-network/astar-ui'; | ||
import ModalWrapper from 'src/components/common/ModalWrapper.vue'; | ||
import { defineComponent, ref } from 'vue'; | ||
export default defineComponent({ | ||
components: { ModalWrapper }, | ||
props: { | ||
isModal: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
handleModal: { | ||
type: Function, | ||
required: true, | ||
}, | ||
}, | ||
setup(props) { | ||
const isClosingModal = ref<boolean>(false); | ||
const closeModal = async (): Promise<void> => { | ||
isClosingModal.value = true; | ||
await wait(fadeDuration); | ||
props.handleModal({ isOpen: false }); | ||
isClosingModal.value = false; | ||
}; | ||
return { | ||
closeModal, | ||
isClosingModal, | ||
}; | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@use 'src/components/assets/styles/modal-lockdrop-warning.scss'; | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@import 'src/css/quasar.variables.scss'; | ||
|
||
.wrapper__row--button { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.button--confirm { | ||
width: 344px; | ||
font-size: 22px; | ||
font-weight: 600; | ||
height: 44px; | ||
@media (min-width: $sm) { | ||
width: 412px; | ||
} | ||
} | ||
|
||
.row--title { | ||
display: flex; | ||
justify-content: center; | ||
column-gap: 8px; | ||
margin-bottom: 28px; | ||
width: 100%; | ||
color: $warning-yellow; | ||
font-size: 32px; | ||
font-weight: 700; | ||
} | ||
|
||
.box--list { | ||
margin-bottom: 24px; | ||
padding: 0px 14px; | ||
@media (min-width: $sm) { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.row--end-date { | ||
width: 100%; | ||
text-align: center; | ||
padding: 24px; | ||
background-color: $warning-yellow; | ||
margin-bottom: 32px; | ||
color: $navy-1; | ||
font-weight: 800; | ||
font-size: 20px; | ||
} | ||
|
||
.icon--warning { | ||
margin-top: -4px; | ||
} | ||
|
||
.text--message { | ||
font-weight: 600; | ||
} | ||
|
||
.row--message { | ||
margin-bottom: 32px; | ||
padding: 0px 14px; | ||
@media (min-width: $sm) { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.body--dark { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters