From 038d02acc2b376cd3aca822cb36baaa121c70a4c Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 13 Oct 2020 11:43:06 -0300 Subject: [PATCH] changes to the layout --- assets/global.css | 16 ++- components/core/Footer/Footer.tsx | 9 +- components/core/Layout/Layout.tsx | 2 +- .../ProductView/ProductView.module.css | 8 +- .../product/ProductView/ProductView.tsx | 126 +++++++++--------- components/product/Swatch/Swatch.module.css | 14 +- components/product/Swatch/Swatch.tsx | 3 - components/ui/Button/Button.module.css | 4 +- pages/index.tsx | 4 +- pages/wishlist.tsx | 33 ++++- tailwind.config.js | 4 + 11 files changed, 132 insertions(+), 91 deletions(-) diff --git a/assets/global.css b/assets/global.css index 775a08b1e..1c030c6ad 100644 --- a/assets/global.css +++ b/assets/global.css @@ -3,15 +3,27 @@ :root { --bg-primary: white; --bg-secondary: black; + --bg-primary-accent: rgba(0, 0, 0, 0.075); + --text-primary: black; - --text-secondary: #252f3f; + --text-secondary: white; + + --text-default: #252f3f; } [data-theme='dark'] { --bg-primary: black; --bg-secondary: white; + --bg-primary-accent: rgba(255, 255, 255, 0.075); + --text-primary: white; - --text-secondary: white; + --text-secondary: black; + + --text-default: white; +} + +.fit { + min-height: calc(100vh - 200px); } *, diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index fe5d0b056..191ed27b7 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -15,6 +15,10 @@ const Footer: FC = ({ className }) => { ) return (
+
) diff --git a/components/core/Layout/Layout.tsx b/components/core/Layout/Layout.tsx index ef8df08dd..603f1a50f 100644 --- a/components/core/Layout/Layout.tsx +++ b/components/core/Layout/Layout.tsx @@ -24,7 +24,7 @@ const CoreLayout: FC = ({ className, children }) => { -
{children}
+
{children}