From 190854f0d3f3842807e95c707718964419ba0869 Mon Sep 17 00:00:00 2001 From: tarafanlin <35607644+tarafanlin@users.noreply.github.com> Date: Mon, 26 Oct 2020 12:22:58 -0700 Subject: [PATCH 1/2] fix header alignment --- components/core/WebsitePrototypeHeader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/core/WebsitePrototypeHeader.js b/components/core/WebsitePrototypeHeader.js index 53d70dd4..9a329b0e 100644 --- a/components/core/WebsitePrototypeHeader.js +++ b/components/core/WebsitePrototypeHeader.js @@ -8,7 +8,7 @@ const STYLES_CONTAINER = css` position: -webkit-sticky; position: sticky; top: 0; - padding: 24px 64px 24px 40px; + padding: 24px 64px 24px 42px; width: 100%; margin: 0 auto; z-index: ${Constants.zindex.header}; From ee2ad99e00da0ea7b8615c4c184a0a30a93d89b1 Mon Sep 17 00:00:00 2001 From: tarafanlin <35607644+tarafanlin@users.noreply.github.com> Date: Mon, 26 Oct 2020 12:46:37 -0700 Subject: [PATCH 2/2] nit styling --- pages/_/slate.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pages/_/slate.js b/pages/_/slate.js index 3a9b35d1..6576275a 100644 --- a/pages/_/slate.js +++ b/pages/_/slate.js @@ -42,6 +42,7 @@ const STYLES_CREATOR = css` flex-shrink: 0; margin-right: 4px; text-decoration: none; + color: ${Constants.system.black}; :hover { color: ${Constants.system.brand}; @@ -73,7 +74,8 @@ const STYLES_TITLE = css` font-family: ${Constants.font.medium}; font-weight: 400; color: ${Constants.system.black}; - width: 70%; + width: auto; + margin-right: 24px; @media (max-width: ${Constants.sizes.mobile}px) { font-size: ${Constants.typescale.lvl2}; @@ -82,7 +84,7 @@ const STYLES_TITLE = css` const STYLES_FLEX = css` display: flex; - margin-bottom: 8px; + margin-bottom: 12px; @media (max-width: ${Constants.sizes.mobile}px) { display: block; @@ -91,8 +93,9 @@ const STYLES_FLEX = css` const STYLES_STATS = css` font-size: ${Constants.typescale.lvl0}; - margin-top: 32px; + margin-top: 24px; display: flex; + line-height: 1.5; `; const STYLES_STAT = css` @@ -104,10 +107,11 @@ padding-left: 12px; */}; const STYLES_BUTTONS = css` display: flex; - width: 240px; - height: 40px; + width: 200px; + height: 36px; border-radius: 4px; border: 1px solid ${Constants.system.gray}; + flex-shrink: 0; @media (max-width: ${Constants.sizes.mobile}px) { margin: 12px 0; @@ -116,7 +120,7 @@ const STYLES_BUTTONS = css` const STYLES_BUTTON = css` border-right: 1px solid ${Constants.system.gray}; - padding: 10px 24px; + padding: 8px 4px; cursor: pointer; width: 50%; font-family: ${Constants.font.medium}; @@ -296,19 +300,17 @@ export default class SlatePage extends React.Component {
Data
-
+
{this.props.slate.data.objects.length}
Contributors
-
- {contributorsCount} -
+
{contributorsCount}
{/*
Followers
-
0
+
0
*/}