From 2143392425ee534fad119b663f95ead063a8a2d5 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Mon, 16 Aug 2021 17:01:48 +0100 Subject: [PATCH] Update spacing in index page --- pages/blog/[slug].tsx | 11 ----------- pages/index.tsx | 4 ++++ pages/portfolio/[slug].tsx | 14 -------------- 3 files changed, 4 insertions(+), 25 deletions(-) diff --git a/pages/blog/[slug].tsx b/pages/blog/[slug].tsx index 83f3cb3..c5c59db 100644 --- a/pages/blog/[slug].tsx +++ b/pages/blog/[slug].tsx @@ -43,8 +43,6 @@ const Wrapper = styled.div` p, .tags-wrapper { text-align: left; - width: 85%; - margin: 0.5rem auto; } h1 { @@ -66,23 +64,14 @@ const Wrapper = styled.div` hr { height: 0.1rem; opacity: 0.3; - width: 85%; margin: 1rem auto 0rem auto; @media (max-width: 768px) { - width: 95%; margin: 1rem auto 0rem auto; } } .content { - width: 85%; - margin: 0rem auto; - - @media (max-width: 768px) { - width: 95%; - } - h1 { font-size: 1.5rem; } diff --git a/pages/index.tsx b/pages/index.tsx index 6ac00b4..9be4b8e 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -59,6 +59,10 @@ const Wrapper = styled.div` margin: 1rem 0rem; } + .portfolio { + margin-bottom: 3rem; + } + .projects-wrapper, .articles-wrapper { display: grid; diff --git a/pages/portfolio/[slug].tsx b/pages/portfolio/[slug].tsx index 8d2cb53..43c88dd 100644 --- a/pages/portfolio/[slug].tsx +++ b/pages/portfolio/[slug].tsx @@ -42,8 +42,6 @@ const Wrapper = styled.div` h1, p { text-align: left; - width: 85%; - margin: 0.5rem auto; } h1 { @@ -58,22 +56,10 @@ const Wrapper = styled.div` hr { height: 0.1rem; opacity: 0.3; - width: 85%; margin: 1rem auto 0rem auto; - - @media (max-width: 768px) { - width: 95%; - } } .content { - width: 85%; - margin: 0rem auto; - - @media (max-width: 768px) { - width: 95%; - } - h1 { font-size: 1.5rem; }