Skip to content

Commit

Permalink
💄 Show up to 10 books in landing page (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt authored Sep 24, 2024
1 parent ed62fce commit 39e5285
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,13 @@
</div>

<div
class="desktop:grid grid-cols-5 items-stretch gap-[20px] flex-grow"
:class="[
'desktop:grid',
'grid-cols-5 min-1280:grid-cols-6',
'items-stretch',
'gap-[20px] min-1280:gap-[24px]',
'flex-grow',
]"
>
<div v-if="stickyBookstoreItem" class="col-span-2">
<NFTBookItemCardV2
Expand All @@ -399,7 +405,15 @@
</div>

<ul
class="col-span-3 hidden desktop:grid grid-cols-1 sm:grid-cols-2 gap-[20px] items-stretch mt-[2rem] desktop:mt-0"
:class="[
'col-span-3 min-1280:col-span-4',
'hidden desktop:grid',
'grid-cols-1 sm:grid-cols-2 min-1280:grid-cols-3',
'gap-[20px] min-1280:gap-[24px]',
'items-stretch',
'mt-[2rem]',
'desktop:mt-0',
]"
>
<li v-for="item in bookstoreItemsInGrid" :key="item.classId">
<NFTBookItemCardV2
Expand Down Expand Up @@ -890,7 +904,7 @@ export default {
return this.bookstoreItems[0];
},
bookstoreItemsInGrid() {
return this.bookstoreItems.slice(1, 7);
return this.bookstoreItems.slice(1, 10);
},
faqs() {
return this.$t('index_faq_list').map(({ q: question, a: answer }) => ({
Expand Down
1 change: 1 addition & 0 deletions src/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ module.exports = {
sm: { min: '528px' },
laptop: { min: '769px' },
desktop: { min: '992px' },
'min-1280': { min: '1280px' },
desktopLg: { min: '1439px' },
'full-hd': { min: '1920px' },
},
Expand Down

0 comments on commit 39e5285

Please sign in to comment.