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

Fixed style

parent 9ac1b898
No related branches found
No related tags found
1 merge request!58Community home view
Pipeline #177800 passed
<template> <template>
<section class="relative w-full max-w-md px-5 py-4 mx-auto rounded-md"> <section class="w-full px-5 py-4 mx-auto rounded-md">
<!-- Community name header --> <CommunityHeader :admin-status="false" :community="community" class="mb-5"/>
<div class="mb-5 mt-5 border-b-2 border-blue-900">
<label class="text-xl font-bold">{{ community.name }}</label>
</div>
<!-- Search field --> <!-- Search field -->
<div class="relative" id="searchComponent"> <div class="relative" id="searchComponent">
...@@ -30,8 +27,8 @@ ...@@ -30,8 +27,8 @@
</div> </div>
<!-- Item cards --> <!-- Item cards -->
<div class="absolute inset-x-0 px-6 py-3 mt-4"> <div class="absolute inset-x-0 px-6 py-3">
<div class="grid grid-cols-2"> <div class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 lg:grid-cols-5 w-full place-items-center">
<ItemCard v-for="item in searchedItems" :key="item" :item="item" /> <ItemCard v-for="item in searchedItems" :key="item" :item="item" />
</div> </div>
</div> </div>
...@@ -40,11 +37,13 @@ ...@@ -40,11 +37,13 @@
<script> <script>
import ItemCard from "@/components/CommunityComponents/ItemCard"; import ItemCard from "@/components/CommunityComponents/ItemCard";
import CommunityHeader from "@/components/BaseComponents/CommunityHeader";
import { GetCommunity, GetListingsInCommunity } from "@/utils/apiutil"; import { GetCommunity, GetListingsInCommunity } from "@/utils/apiutil";
export default { export default {
name: "SearchItemListComponent", name: "SearchItemListComponent",
components: { components: {
CommunityHeader,
ItemCard, ItemCard,
}, },
......
<template> <template>
<div class="mt-5"> <div class="mt-5">
<div class="w-4/5 rounded bg-gray-200"> <div class="w-52 rounded bg-gray-200">
<img <img
class="w-full" class="w-full"
:src="item.img || require('../../assets/default-product.png')" :src="item.img || require('../../assets/default-product.png')"
......
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