Skip to content

Commit 0ae244c

Browse files
authored
Merge pull request #1316 from w3bdesign/1314-improve-cart-design-on-mobile
Hide footer
2 parents 8522b4d + 1f28c23 commit 0ae244c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/components/Footer/Footer.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @returns {JSX.Element} - Rendered component
55
*/
66
const Footer = () => (
7-
<footer className="bg-white mb-4">
7+
<footer className="bg-white mb-4 hidden md:block px-4">
88
<div className="container flex md:flex-wrap flex-col md:flex-row items-center justify-between px-6 py-3 mx-auto mt-0 md:min-w-96 border border-gray-200 rounded">
99
<div className="text-gray-600 mx-auto">
1010
&copy; {new Date().getFullYear()} Daniel / w3bdesign

src/components/Footer/Stickynav.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Hamburger from './Hamburger.component';
1313
const Stickynav = () => (
1414
<nav
1515
id="footer"
16-
className="fixed bottom-0 z-50 w-full mt-[15rem] md:hidden"
16+
className="fixed bottom-0 z-50 w-full mt-[10rem] md:hidden"
1717
>
1818
<div className="container flex flex-wrap items-center justify-between px-6 py-3 mx-auto mt-0 md:min-w-96 bg-blue-800">
1919
<Hamburger />

src/components/Layout/Layout.component.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const Layout = ({ children, title }: ILayoutProps) => {
4141

4242
if (!updatedCart && !data?.cart?.contents?.nodes.length) {
4343
// Should we clear the localStorage if we have no remote cart?
44-
4544
return;
4645
}
4746

@@ -57,13 +56,15 @@ const Layout = ({ children, title }: ILayoutProps) => {
5756
}, [refetch]);
5857

5958
return (
60-
<>
59+
<div className="flex flex-col min-h-screen">
6160
<Header title={title} />
6261
<PageTitle title={title} />
63-
{children}
62+
<main className="flex-grow">
63+
{children}
64+
</main>
6465
<Footer />
6566
<Stickynav />
66-
</>
67+
</div>
6768
);
6869
};
6970

0 commit comments

Comments
 (0)