Skip to content

Commit 2261102

Browse files
authored
Merge pull request #1084 from w3bdesign/1075-ensure-footer-is-always-at-bottom
1075 ensure footer is always at bottom
2 parents 019a638 + daca338 commit 2261102

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

components/Category/CategoryShowAll.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div v-if="data.productCategories">
3-
<section class="mx-auto bg-white">
3+
<section class=" bg-white">
44
<div
5-
class="grid gap-2 px-2 pt-2 pb-2 lg:px-0 xl:px-0 md:px-0 lg:grid-cols-4 sm:grid-cols-2 md:grid-cols-3 xs:grid-cols-3"
5+
class="flex justify-center align-middle flex-col md:flex-row"
66
>
77
<template v-for="nodes in data.productCategories">
88
<template v-for="category in nodes">
@@ -14,9 +14,9 @@
1414
query: { id: category.id },
1515
}"
1616
>
17-
<div class="mt-6 cursor-pointer">
17+
<div class="cursor-pointer ml-4 mt-[5rem] md:mt-[20rem] w-full md:w-64 flex-row">
1818
<div
19-
class="flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
19+
class="p-4 min-w-[10rem] flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
2020
>
2121
<p class="text-lg">
2222
{{ category.name }}

components/Layout/LayoutFooter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
2-
<div class="container mx-auto mt-24 max-w-[84.375rem]">
2+
<div class="container mx-auto mt-24 max-w-[84.375rem] mb-[6.5rem] md:mb-2">
33
<footer
44
class="px-6 text-center bg-white border border-gray-300 rounded-lg shadow-lg"
55
>
66
<div class="p-6">
7-
Copyright reserved &copy; {{ todayDate }} Daniel / w3bdesign
7+
Copyright reserved &copy; {{ todayDate }} Daniel
88
</div>
99
</footer>
1010
</div>

layouts/default.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
2-
<div>
2+
<div class="flex flex-col min-h-screen">
33
<LayoutNavbar />
4-
<div class="container mx-auto max-w-[84.375rem]">
4+
<div class="container mx-auto max-w-[84.375rem] flex-grow">
5+
<main >
56
<slot />
7+
</main>
68
</div>
79
<LayoutFooter />
810
<LayoutStickyFooter />

pages/categories.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2+
<div class="flex justify-center items-center">
23
<CategoryShowAll />
4+
</div>
35
</template>
46

57
<script setup>

0 commit comments

Comments
 (0)