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 with stage
in 49 seconds
<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 -->
<div class="mb-5 mt-5 border-b-2 border-blue-900">
<label class="text-xl font-bold">{{ community.name }}</label>
</div>
<CommunityHeader :admin-status="false" :community="community" class="mb-5"/>
<!-- Search field -->
<div class="relative" id="searchComponent">
......@@ -30,8 +27,8 @@
</div>
<!-- Item cards -->
<div class="absolute inset-x-0 px-6 py-3 mt-4">
<div class="grid grid-cols-2">
<div class="absolute inset-x-0 px-6 py-3">
<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" />
</div>
</div>
......@@ -40,11 +37,13 @@
<script>
import ItemCard from "@/components/CommunityComponents/ItemCard";
import CommunityHeader from "@/components/BaseComponents/CommunityHeader";
import { GetCommunity, GetListingsInCommunity } from "@/utils/apiutil";
export default {
name: "SearchItemListComponent",
components: {
CommunityHeader,
ItemCard,
},
......
<template>
<div class="mt-5">
<div class="w-4/5 rounded bg-gray-200">
<div class="w-52 rounded bg-gray-200">
<img
class="w-full"
: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