Skip to content

Commit

Permalink
🧑‍💻 one v-if for whole landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed May 11, 2023
1 parent 5fd6c1b commit baa480b
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions components/landing/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,33 @@
<LazySearchLanding />
</section>

<!-- spotlight -->
<section v-if="showCarousel" class="py-8 instance">
<div class="container is-fluid">
<LazyCarouselTypeSpotlight />
</div>
</section>

<!-- top collections -->
<section v-if="showCarousel && urlPrefix !== 'ksm'" class="py-8 instance">
<div class="container is-fluid">
<LazyTopCollections class="my-5" />
</div>
</section>

<section v-if="showCarousel" class="py-8 instance">
<div class="container is-fluid">
<!-- new listings -->
<LazyCarouselTypeNewestList />

<!-- latest sales -->
<LazyCarouselTypeLatestSales class="mt-8" />
</div>
</section>
<template v-if="showCarousel">
<!-- spotlight -->
<section class="py-8 instance">
<div class="container is-fluid">
<LazyCarouselTypeSpotlight />
</div>
</section>

<!-- top collections -->
<section
v-if="urlPrefix !== 'ksm' && urlPrefix !== 'stmn'"
class="py-8 instance">
<div class="container is-fluid">
<LazyTopCollections class="my-5" />
</div>
</section>

<section class="py-8 instance">
<div class="container is-fluid">
<!-- new listings -->
<LazyCarouselTypeNewestList />

<!-- latest sales -->
<LazyCarouselTypeLatestSales class="mt-8" />
</div>
</section>
</template>

<section class="py-8 instance instance-accent">
<div class="container is-fluid footer-landing-container">
Expand All @@ -39,7 +43,7 @@
<script lang="ts" setup>
import type { Prefix } from '@kodadot1/static'
const prefixes: Prefix[] = ['rmrk', 'ksm', 'snek', 'bsx']
const prefixes: Prefix[] = ['rmrk', 'ksm', 'snek', 'bsx', 'stmn']
const { urlPrefix } = usePrefix()
// currently only supported on rmrk and snek
Expand Down

0 comments on commit baa480b

Please sign in to comment.