Skip to content
Snippets Groups Projects
Commit e587b41a authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Small changes to placing of elements

parent c93b1e60
No related branches found
No related tags found
Loading
<template>
<section class="w-full px-5 py-4 mx-auto rounded-md">
<section class="w-full px-5 py-4 mx-auto rounded-md ">
<CommunityHeader
:admin-status="false"
:community="community"
......@@ -30,23 +30,27 @@
/>
</div>
<!-- Item cards -->
<div class="absolute inset-x-0 px-6 py-3">
<!-- Shows items based on pagination -->
<div
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center"
v-if="showItems">
<ItemCard v-for="item in visibleItems" :key="item" :item="item" />
</div>
<div class="absolute inset-x-0 px-5 py-3">
<!-- ItemCards -->
<div class="flex items-center justify-center w-screen">
<!-- Shows items based on pagination -->
<div
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full"
v-if="showItems">
<ItemCard v-for="item in visibleItems" :key="item" :item="item" />
</div>
<!-- Shows items based on search field input -->
<div
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center"
v-if="showSearchedItems">
<ItemCard v-for="item in searchedItems" :key="item" :item="item" />
<!-- Shows items based on search field input -->
<div
class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center"
v-if="showSearchedItems">
<ItemCard v-for="item in searchedItems" :key="item" :item="item" />
</div>
</div>
<!-- pagination -->
<div class="flex justify-center" v-if="showItems">
<PaginationTemplate
......@@ -57,7 +61,6 @@
class="mt-10"
/>
</div>
</div>
</section>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment