Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
31123721
Commit
31123721
authored
2 years ago
by
Zara Mudassar
Browse files
Options
Downloads
Patches
Plain Diff
Fixed style
parent
9ac1b898
No related branches found
Branches containing commit
No related tags found
1 merge request
!58
Community home view
Pipeline
#177800
passed with stage
in 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CommunityComponents/CommunityHome.vue
+6
-7
6 additions, 7 deletions
src/components/CommunityComponents/CommunityHome.vue
src/components/CommunityComponents/ItemCard.vue
+1
-1
1 addition, 1 deletion
src/components/CommunityComponents/ItemCard.vue
with
7 additions
and
8 deletions
src/components/CommunityComponents/CommunityHome.vue
+
6
−
7
View file @
31123721
<
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
,
},
...
...
This diff is collapsed.
Click to expand it.
src/components/CommunityComponents/ItemCard.vue
+
1
−
1
View file @
31123721
<
template
>
<div
class=
"mt-5"
>
<div
class=
"w-
4/
5 rounded bg-gray-200"
>
<div
class=
"w-5
2
rounded bg-gray-200"
>
<img
class=
"w-full"
:src=
"item.img || require('../../assets/default-product.png')"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment