forked from kodadot/nft-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
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 kodadot#7208 from kodadot/refactor/unify-create-nf…
…t-page
- Loading branch information
Showing
33 changed files
with
949 additions
and
1,228 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
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,141 @@ | ||
<template> | ||
<div | ||
class="container is-flex is-align-items-center is-justify-content-center is-flex-direction-column"> | ||
<div> | ||
<h1 class="title is-size-2 mb-7">{{ $t('mint.landing.heading') }}</h1> | ||
|
||
<div v-if="route.query?.select !== 'nft'" class="pack"> | ||
<nuxt-link class="pack-box" to="/create/collection"> | ||
<div class="pack-content"> | ||
<NeoIcon icon="image-polaroid" custom-size="fa-3x" /> | ||
<div class="pack-content-text"> | ||
<p class="is-size-4 has-text-weight-bold">Collection</p> | ||
<p>{{ $t('mint.landing.collection') }}</p> | ||
</div> | ||
</div> | ||
</nuxt-link> | ||
<button | ||
class="pack-box" | ||
@click="router.push({ query: { select: 'nft' } })"> | ||
<div class="pack-content"> | ||
<NeoIcon icon="gem" custom-size="fa-3x" /> | ||
<div class="pack-content-text"> | ||
<p class="is-size-4 has-text-weight-bold">NFT</p> | ||
<p>{{ $t('mint.landing.nft') }}</p> | ||
</div> | ||
</div> | ||
</button> | ||
</div> | ||
<div v-else class="pack"> | ||
<nuxt-link class="pack-box" to="/create/nft"> | ||
<div class="pack-content"> | ||
<NeoIcon icon="image" custom-size="fa-3x" /> | ||
<div class="pack-content-text"> | ||
<p class="is-size-4 has-text-weight-bold"> | ||
{{ $t('mint.landing.singleNft') }} | ||
</p> | ||
<p>{{ $t('mint.landing.singleNftDesc') }}</p> | ||
</div> | ||
</div> | ||
</nuxt-link> | ||
<nuxt-link class="pack-box" :to="`/${urlPrefix}/massmint`"> | ||
<div class="pack-content"> | ||
<NeoIcon icon="photo-film" custom-size="fa-3x" /> | ||
<div class="pack-content-text"> | ||
<p class="is-size-4 has-text-weight-bold"> | ||
{{ $t('mint.landing.massNft') }} | ||
</p> | ||
<p>{{ $t('mint.landing.massNftDesc') }}</p> | ||
</div> | ||
</div> | ||
</nuxt-link> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import { NeoIcon } from '@kodadot1/brick' | ||
const { urlPrefix } = usePrefix() | ||
const route = useRoute() | ||
const router = useRouter() | ||
</script> | ||
<style scoped lang="scss"> | ||
@import '@/styles/abstracts/variables'; | ||
.container { | ||
height: calc(100vh - 5.25rem); // 5.25rem = header height | ||
margin: 0; | ||
max-width: 100% !important; | ||
@include ktheme() { | ||
background-color: theme('k-primaryLight'); | ||
} | ||
@include touch() { | ||
height: 100vh; | ||
} | ||
@include mobile() { | ||
padding: 0 2rem; | ||
.title { | ||
font-size: 2rem !important; | ||
} | ||
} | ||
} | ||
.pack { | ||
display: flex; | ||
gap: 1.5rem; | ||
&-box { | ||
cursor: pointer; | ||
font-size: unset; | ||
padding: 4rem 2rem; | ||
@include ktheme() { | ||
background-color: theme('background-color'); | ||
border: 1px solid theme('card-border-color'); | ||
color: theme('text-color'); | ||
&:hover { | ||
color: theme('text-color'); | ||
border-color: theme('text-color'); | ||
} | ||
} | ||
} | ||
&-content { | ||
text-align: center; | ||
width: 14rem; | ||
&-text { | ||
margin-top: 2rem; | ||
} | ||
} | ||
@include mobile() { | ||
flex-direction: column; | ||
width: 100%; | ||
&-box { | ||
padding: 2rem; | ||
} | ||
&-content { | ||
display: flex; | ||
gap: 2rem; | ||
text-align: left; | ||
width: 100%; | ||
&-text { | ||
margin-top: 0; | ||
} | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.