-
-
Notifications
You must be signed in to change notification settings - Fork 361
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 #6213 from Jarsen136/issue-6204
- Loading branch information
Showing
4 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,82 @@ | ||
<template> | ||
<NeoLoading :active.sync="isLoading" is-full-page :can-cancel="canCancel"> | ||
<div class="loading-container py-2"> | ||
<NeoIcon class="close-icon" icon="close" @click.native="closeLoading" /> | ||
<img :src="unloackableLoaderImg" /> | ||
<div class="is-flex is-flex-direction-column is-align-items-center px-7"> | ||
<div class="has-text-weight-bold my-2">Congratulations</div> | ||
<div> | ||
Get ready for the big reveal! Your NFT will be visible in just | ||
<span class="has-text-weight-bold">30 seconds</span> on your profile. | ||
</div> | ||
<NeoButton | ||
class="mb-2 mt-4 loading-button is-size-6" | ||
variant="secondary" | ||
tag="nuxt-link" | ||
:to="`/${urlPrefix}/gallery/${minted}`" | ||
:disabled="!minted" | ||
:label="buttonLabel" /> | ||
</div> | ||
</div> | ||
</NeoLoading> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { NeoButton, NeoIcon, NeoLoading } from '@kodadot1/brick' | ||
import unloackableLoaderImg from '@/assets/unlockable-loader.svg' | ||
const props = withDefaults( | ||
defineProps<{ | ||
value: boolean | ||
canCancel?: boolean | ||
minted?: string | ||
}>(), | ||
{ | ||
value: false, | ||
canCancel: true, | ||
minted: '', | ||
} | ||
) | ||
const { urlPrefix } = usePrefix() | ||
const { $i18n } = useNuxtApp() | ||
const isLoading = useVModel(props, 'value') | ||
const emit = defineEmits(['input']) | ||
const closeLoading = () => { | ||
emit('input', false) | ||
} | ||
const buttonLabel = computed(() => | ||
$i18n.t( | ||
props.minted ? 'mint.unlockable.viewItem' : 'mint.unlockable.preparing' | ||
) | ||
) | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@import '@/styles/abstracts/variables'; | ||
.loading-container { | ||
background: $white; | ||
backdrop-filter: $frosted-glass-backdrop-filter; | ||
margin: 0rem 1rem; | ||
width: 385px; | ||
min-height: 336px; | ||
@include ktheme() { | ||
box-shadow: theme('primary-shadow'); | ||
border: 1px solid theme('border-color'); | ||
background: theme('background-color'); | ||
} | ||
.close-icon { | ||
position: absolute; | ||
right: 28px; | ||
top: 17px; | ||
cursor: pointer; | ||
} | ||
.loading-button { | ||
height: 35px; | ||
min-width: 126px; | ||
} | ||
} | ||
</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