Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
e587b41a
Commit
e587b41a
authored
2 years ago
by
Zara Mudassar
Browse files
Options
Downloads
Patches
Plain Diff
Small changes to placing of elements
parent
c93b1e60
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/CommunityComponents/CommunityHome.vue
+18
-15
18 additions, 15 deletions
src/components/CommunityComponents/CommunityHome.vue
with
18 additions
and
15 deletions
src/components/CommunityComponents/CommunityHome.vue
+
18
−
15
View file @
e587b41a
<
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
>
...
...
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