File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
* @returns {JSX.Element } - Rendered component
5
5
*/
6
6
const Footer = ( ) => (
7
- < footer className = "bg-white mb-4" >
7
+ < footer className = "bg-white mb-4 hidden md:block px-4 " >
8
8
< 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" >
9
9
< div className = "text-gray-600 mx-auto" >
10
10
© { new Date ( ) . getFullYear ( ) } Daniel / w3bdesign
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Hamburger from './Hamburger.component';
13
13
const Stickynav = ( ) => (
14
14
< nav
15
15
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"
17
17
>
18
18
< 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" >
19
19
< Hamburger />
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ const Layout = ({ children, title }: ILayoutProps) => {
41
41
42
42
if ( ! updatedCart && ! data ?. cart ?. contents ?. nodes . length ) {
43
43
// Should we clear the localStorage if we have no remote cart?
44
-
45
44
return ;
46
45
}
47
46
@@ -57,13 +56,15 @@ const Layout = ({ children, title }: ILayoutProps) => {
57
56
} , [ refetch ] ) ;
58
57
59
58
return (
60
- < >
59
+ < div className = "flex flex-col min-h-screen" >
61
60
< Header title = { title } />
62
61
< PageTitle title = { title } />
63
- { children }
62
+ < main className = "flex-grow" >
63
+ { children }
64
+ </ main >
64
65
< Footer />
65
66
< Stickynav />
66
- </ >
67
+ </ div >
67
68
) ;
68
69
} ;
69
70
You can’t perform that action at this time.
0 commit comments