Skip to content

Commit

Permalink
Merge pull request #1084 from w3bdesign/1075-ensure-footer-is-always-…
Browse files Browse the repository at this point in the history
…at-bottom

1075 ensure footer is always at bottom
  • Loading branch information
w3bdesign committed Jun 10, 2023
2 parents 019a638 + daca338 commit 2261102
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions components/Category/CategoryShowAll.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div v-if="data.productCategories">
<section class="mx-auto bg-white">
<section class=" bg-white">
<div
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"
class="flex justify-center align-middle flex-col md:flex-row"
>
<template v-for="nodes in data.productCategories">
<template v-for="category in nodes">
Expand All @@ -14,9 +14,9 @@
query: { id: category.id },
}"
>
<div class="mt-6 cursor-pointer">
<div class="cursor-pointer ml-4 mt-[5rem] md:mt-[20rem] w-full md:w-64 flex-row">
<div
class="flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
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"
>
<p class="text-lg">
{{ category.name }}
Expand Down
4 changes: 2 additions & 2 deletions components/Layout/LayoutFooter.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="container mx-auto mt-24 max-w-[84.375rem]">
<div class="container mx-auto mt-24 max-w-[84.375rem] mb-[6.5rem] md:mb-2">
<footer
class="px-6 text-center bg-white border border-gray-300 rounded-lg shadow-lg"
>
<div class="p-6">
Copyright reserved &copy; {{ todayDate }} Daniel / w3bdesign
Copyright reserved &copy; {{ todayDate }} Daniel
</div>
</footer>
</div>
Expand Down
6 changes: 4 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<template>
<div>
<div class="flex flex-col min-h-screen">
<LayoutNavbar />
<div class="container mx-auto max-w-[84.375rem]">
<div class="container mx-auto max-w-[84.375rem] flex-grow">
<main >
<slot />
</main>
</div>
<LayoutFooter />
<LayoutStickyFooter />
Expand Down
2 changes: 2 additions & 0 deletions pages/categories.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div class="flex justify-center items-center">
<CategoryShowAll />
</div>
</template>

<script setup>
Expand Down

1 comment on commit 2261102

@vercel
Copy link

@vercel vercel bot commented on 2261102 Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.