From 1fcae029a78f02357d02f1ea04e3383f8a73c4f3 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 5 Oct 2020 18:00:54 -0300 Subject: [PATCH] Adding footer --- components/core/Footer/Footer.module.css | 2 +- components/core/Footer/Footer.tsx | 49 +++++++++++++++++++++++- components/core/Layout/Layout.module.css | 4 ++ components/core/Layout/Layout.tsx | 5 ++- 4 files changed, 55 insertions(+), 5 deletions(-) diff --git a/components/core/Footer/Footer.module.css b/components/core/Footer/Footer.module.css index 3a80ec3fd..573fa35bc 100644 --- a/components/core/Footer/Footer.module.css +++ b/components/core/Footer/Footer.module.css @@ -1,5 +1,5 @@ .root { - @apply p-0; + @apply p-0 bg-black text-white; } .container { diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index a2db8e687..536dc3006 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -1,7 +1,7 @@ import cn from 'classnames' import { FC } from 'react' import s from './Footer.module.css' -import { Container } from '@components/ui' +import { Container, Logo } from '@components/ui' interface Props { className?: string @@ -12,7 +12,52 @@ const Footer: FC = ({ className }) => { const rootClassName = cn(s.root, className) return ( ) } diff --git a/components/core/Layout/Layout.module.css b/components/core/Layout/Layout.module.css index 617794481..abba10607 100644 --- a/components/core/Layout/Layout.module.css +++ b/components/core/Layout/Layout.module.css @@ -1,3 +1,7 @@ .root { @apply h-full; } + +.main { + min-height: 100vh; +} diff --git a/components/core/Layout/Layout.tsx b/components/core/Layout/Layout.tsx index f66a2ef4d..b0eeff188 100644 --- a/components/core/Layout/Layout.tsx +++ b/components/core/Layout/Layout.tsx @@ -3,7 +3,7 @@ import { FC } from 'react' import s from './Layout.module.css' import { CommerceProvider } from '@lib/bigcommerce' import { CartProvider } from '@lib/bigcommerce/cart' -import { Navbar, Featurebar } from '@components/core' +import { Navbar, Featurebar, Footer } from '@components/core' import { Container, Sidebar } from '@components/ui' import { CartSidebarView } from '@components/cart' import { UIProvider, useUI } from '@components/ui/context' @@ -25,8 +25,9 @@ const CoreLayout: FC = ({ className, children }) => { /> -
{children}
+
{children}
+