From 9b5f72f110228b8798c7bbe4cae83b9e6cec3bc8 Mon Sep 17 00:00:00 2001 From: Bel Curcio Date: Sat, 5 Jun 2021 16:07:15 -0300 Subject: [PATCH] Footer updates and some styles --- components/common/Avatar/Avatar.tsx | 2 +- components/common/Footer/Footer.module.css | 4 ++ components/common/Footer/Footer.tsx | 64 +++++----------------- 3 files changed, 19 insertions(+), 51 deletions(-) diff --git a/components/common/Avatar/Avatar.tsx b/components/common/Avatar/Avatar.tsx index f78aa1d01..663538450 100644 --- a/components/common/Avatar/Avatar.tsx +++ b/components/common/Avatar/Avatar.tsx @@ -14,7 +14,7 @@ const Avatar: FC = ({}) => {
{/* Add an image - We're generating a gradient as placeholder */}
diff --git a/components/common/Footer/Footer.module.css b/components/common/Footer/Footer.module.css index 259318ecf..2ba492086 100644 --- a/components/common/Footer/Footer.module.css +++ b/components/common/Footer/Footer.module.css @@ -1,3 +1,7 @@ +.root { + @apply border-t border-accent-2; +} + .link { & > svg { @apply transform duration-75 ease-linear; diff --git a/components/common/Footer/Footer.tsx b/components/common/Footer/Footer.tsx index b0721712a..25dfcb72a 100644 --- a/components/common/Footer/Footer.tsx +++ b/components/common/Footer/Footer.tsx @@ -15,22 +15,21 @@ interface Props { pages?: Page[] } -const LEGAL_PAGES = ['terms-of-use', 'shipping-returns', 'privacy-policy'] const links = [ { name: 'Home', - href: '/', + url: '/', }, ] const Footer: FC = ({ className, pages }) => { - const { sitePages, legalPages } = usePages(pages) - const rootClassName = cn(className) + const { sitePages } = usePages(pages) + const rootClassName = cn(s.root, className) return (