-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from Holo-Host/feature/kyc-level-two
Feature/kyc level two
- Loading branch information
Showing
16 changed files
with
317 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<script setup lang="ts"> | ||
import TheBanner from '@uicommon/components/TheBanner.vue' | ||
import TheOverlay from '@uicommon/components/TheOverlay.vue' | ||
import TheErrorModal from '@/components/ErrorModal.vue' | ||
</script> | ||
|
||
<template> | ||
<TheBanner /> | ||
<TheOverlay /> | ||
<TheErrorModal /> | ||
<router-view /> | ||
</template> |
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,56 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
isVisible: boolean | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<Transition name="fade"> | ||
<div | ||
v-if="isVisible" | ||
class="holo-tooltip" | ||
> | ||
<slot /> | ||
</div> | ||
</Transition> | ||
</template> | ||
|
||
<style scoped> | ||
.holo-tooltip { | ||
position: absolute; | ||
z-index: 50; | ||
right: 12px; | ||
top: 20px; | ||
background: var(--grey-color); | ||
border-radius: 2px; | ||
font-size: 14px; | ||
line-height: 19px; | ||
color: var(--white-color); | ||
margin-top: 1px; | ||
padding: 8px 12px; | ||
cursor: pointer; | ||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); | ||
} | ||
.holo-tooltip::before { | ||
position: absolute; | ||
right: 7px; | ||
top: -5px; | ||
content: ''; | ||
width: 0; | ||
height: 0; | ||
border-style: solid; | ||
border-width: 0 6px 6px 6px; | ||
border-color: transparent transparent var(--grey-color) transparent; | ||
} | ||
.fade-enter-active, | ||
.fade-leave-active { | ||
transition: opacity 0.3s ease 0.5s; | ||
} | ||
.fade-enter-from, | ||
.fade-leave-to { | ||
opacity: 0; | ||
} | ||
</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,64 @@ | ||
<script setup> | ||
import { ExclamationTriangleIcon } from '@heroicons/vue/20/solid' | ||
import { useModals } from '@uicommon/composables/useModals' | ||
import { ref } from 'vue' | ||
import { useI18n } from 'vue-i18n' | ||
import BaseModal from '@uicommon/components/BaseModal.vue' | ||
import { EModal } from '@/constants/ui' | ||
const { t } = useI18n() | ||
const title = ref('') | ||
const description = ref('') | ||
const { visibleModal, hideModal } = useModals() | ||
function close() { | ||
hideModal() | ||
} | ||
</script> | ||
|
||
<template> | ||
<BaseModal | ||
:is-visible="visibleModal === EModal.error_modal" | ||
@close="close" | ||
> | ||
<div class="error-modal"> | ||
<p class="error-modal__title"> | ||
<ExclamationTriangleIcon class="error-modal__icon" /> | ||
<span class="mt-4">{{ t('$.errors.unexpected') }}</span> | ||
</p> | ||
<div class="error-modal__description"> | ||
<p>We are sorry but something went wrong on our side.</p> | ||
<p> | ||
Please try again, and if the problem persists, contact our support at | ||
<a href="mailto:[email protected]?subject=Springboard support&body=">[email protected]</a>. | ||
</p> | ||
</div> | ||
</div> | ||
</BaseModal> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.error-modal { | ||
&__title { | ||
display: flex; | ||
align-items: center; | ||
margin-top: 6px; | ||
font-size: 26px; | ||
font-weight: 600; | ||
text-align: center; | ||
} | ||
&__icon { | ||
width: 50px; | ||
height: 50px; | ||
margin-right: 8px; | ||
color: #F87171; | ||
} | ||
&__description { | ||
margin-top: 40px; | ||
padding: 0 46px; | ||
} | ||
} | ||
</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
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
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
Oops, something went wrong.