From 32d6c06568358430597597149f3c330e04b6c09d Mon Sep 17 00:00:00 2001 From: Hippo Date: Sat, 28 Sep 2019 11:09:39 +0530 Subject: [PATCH] Restyle homepage --- src/components/common/Layout.js | 9 +++++++-- src/styles/app.css | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/common/Layout.js b/src/components/common/Layout.js index 464ab82..2d81a0c 100644 --- a/src/components/common/Layout.js +++ b/src/components/common/Layout.js @@ -39,12 +39,14 @@ const DefaultLayout = ({ data, children, bodyClass, isHome, hasFeatureImage }) =
+ { !isHome && {site.logo ? {site.title} : {site.title} } + }
{ site.twitter && Twitter} @@ -54,7 +56,10 @@ const DefaultLayout = ({ data, children, bodyClass, isHome, hasFeatureImage }) =
{ isHome ?
-

{site.title}

+ {site.logo ? +

{site.title}

+ :

{site.title}

+ }

{site.description}

: null} @@ -64,7 +69,7 @@ const DefaultLayout = ({ data, children, bodyClass, isHome, hasFeatureImage }) =
- About + Subscribe
diff --git a/src/styles/app.css b/src/styles/app.css index 27eae5c..5544f20 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -698,6 +698,11 @@ h6 { height: 25px; } +.site-logo-home { + height: 6rem; + margin: 1rem; +} + .site-mast { display: flex; align-items: center;