Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: unify create page #7208

Merged
merged 34 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
536624b
refactor: unify create nft page
preschian Sep 7, 2023
cd368ba
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 7, 2023
3de759d
fix: retry for nft id
preschian Sep 7, 2023
950a9e7
style: mobile padding
preschian Sep 7, 2023
7e81bad
chore: add chainDecimals
preschian Sep 7, 2023
979b631
feat: create landing page
preschian Sep 7, 2023
a576a4c
feat: image preview
preschian Sep 7, 2023
c2833a6
refactor: replace existing pages
preschian Sep 7, 2023
97ea17b
chore: text
preschian Sep 7, 2023
d725651
style: width
preschian Sep 7, 2023
461620d
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 12, 2023
a409b86
chore: global styles, unused loading, computed, and watch
preschian Sep 12, 2023
4b0509d
chore: decimals
preschian Sep 12, 2023
a17cb8d
chore: hide preview on touch and number on translations
preschian Sep 12, 2023
672d296
fix: rmrk2 endpoint
preschian Sep 12, 2023
6ae515f
styles: mobile version
preschian Sep 12, 2023
7e03252
style: on sale
preschian Sep 14, 2023
9b79ef3
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 14, 2023
ffa20b7
styles: move styles to `@/styles/pages/create.scss`
preschian Sep 19, 2023
522855d
styles: adjust some padding/margin
preschian Sep 19, 2023
f8ca885
chore: ref to github issue
preschian Sep 19, 2023
c7e0682
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 19, 2023
176d322
fix: collectionForMint for rmrk
preschian Sep 25, 2023
7413877
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 25, 2023
93b22bd
fix: ksm symbol on price on basilisk
preschian Sep 25, 2023
d6abad3
fix: reactive collection based on accountId
preschian Sep 25, 2023
c73cf29
chore: text on deposit
preschian Sep 25, 2023
e9c228d
fix: use query instead
preschian Sep 25, 2023
2b3f6d6
fix: somehow neofield sale broken
preschian Sep 25, 2023
7d798b5
fix: listed nft on remark
preschian Sep 27, 2023
29b5793
chore: remove console.log
preschian Sep 27, 2023
6c288e3
styles: box color
preschian Sep 27, 2023
c22afd7
Merge branch 'main' of github.com:kodadot/nft-gallery into refactor/u…
preschian Sep 27, 2023
6a71a18
styles: seo url, font-size and icon
preschian Sep 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/bsx/Create/RoyaltyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { accountId } = useAuth()

const props = defineProps({
amount: {
type: Number,
type: [Number, String],
required: true,
},
address: {
Expand Down
35 changes: 1 addition & 34 deletions components/create/CreateCollection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,37 +266,4 @@ onMounted(() => {
})
</script>

<style lang="scss" scoped>
@import '@/styles/abstracts/variables';

.o-field:not(:last-child) {
margin-bottom: 2rem;
}

.column {
max-width: 36rem;
padding: 4rem;

@include desktop() {
@include ktheme() {
background-color: theme('background-color');
box-shadow: theme('primary-shadow');
}
}

@include touch() {
padding: 0 1rem;
box-shadow: none !important;
}
}

@include desktop() {
.columns {
padding: 5.25rem 0;

@include ktheme() {
background-color: theme('k-primaryLight');
}
}
}
</style>
<style lang="scss" scoped src="./create.scss"></style>
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
92 changes: 92 additions & 0 deletions components/create/CreateLanding.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<template>
<div class="container">
<h1 class="title is-size-2">{{ $t('mint.landing.heading') }}</h1>

<div v-if="select === 'landing'" class="pack">
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
<nuxt-link class="pack-box" to="/create/collection">
<div class="pack-content">
<NeoIcon icon="image-polaroid" size="large" />
<p class="is-size-4 has-text-weight-bold mt-4">Collection</p>
<p>{{ $t('mint.landing.collection') }}</p>
</div>
</nuxt-link>
<a class="pack-box" @click="select = 'nft'">
<div class="pack-content">
<NeoIcon icon="gem" size="large" />
<p class="is-size-4 has-text-weight-bold mt-4">NFT</p>
<p>{{ $t('mint.landing.nft') }}</p>
</div>
</a>
</div>

<div v-if="select === 'nft'" class="pack">
<nuxt-link class="pack-box" to="/create/nft">
<div class="pack-content">
<NeoIcon icon="image" size="large" />
<p class="is-size-4 has-text-weight-bold mt-4">
{{ $t('mint.landing.singleNft') }}
</p>
<p>{{ $t('mint.landing.singleNftDesc') }}</p>
</div>
</nuxt-link>
<nuxt-link class="pack-box" :to="`/${urlPrefix}/massmint`">
<div class="pack-content">
<NeoIcon icon="photo-film" size="large" />
<p class="is-size-4 has-text-weight-bold mt-4">
{{ $t('mint.landing.massNft') }}
</p>
<p>{{ $t('mint.landing.massNftDesc') }}</p>
</div>
</nuxt-link>
</div>
</div>
</template>

<script setup lang="ts">
import { NeoIcon } from '@kodadot1/brick'

const { urlPrefix } = usePrefix()

const select = ref<'landing' | 'nft'>('landing')
</script>

<style scoped lang="scss">
@import '@/styles/abstracts/variables';

.container {
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
preschian marked this conversation as resolved.
Show resolved Hide resolved
height: calc(100vh - 5.25rem);
margin: 0;
max-width: 100% !important;

@include ktheme() {
background-color: theme('k-primaryLight');
}

@include touch() {
height: 100vh;
}
}

.pack {
display: flex;
gap: 1.5rem;

&-box {
padding: 4rem 2rem;

@include ktheme() {
background-color: theme('background-color');
border: 1px solid theme('card-border-color');
}
}

&-content {
text-align: center;
width: 14rem;
}
}
</style>
Loading