diff --git a/packages/@ourworldindata/components/src/styles/colors.scss b/packages/@ourworldindata/components/src/styles/colors.scss index 43803501ae4..c2ad6c95ef1 100644 --- a/packages/@ourworldindata/components/src/styles/colors.scss +++ b/packages/@ourworldindata/components/src/styles/colors.scss @@ -9,6 +9,7 @@ $amber: #f7c020; // Blue shades $blue-100: #002147; +$blue-95: #112e4f; $blue-90: #1d3d63; $blue-60: #577291; $blue-65: #46688f; diff --git a/site/gdocs/pages/Author.scss b/site/gdocs/pages/Author.scss index 5675559c3f8..b513f41ba93 100644 --- a/site/gdocs/pages/Author.scss +++ b/site/gdocs/pages/Author.scss @@ -1,15 +1,24 @@ .author-header { - margin: 56px 0; + padding-bottom: 24px; + padding-top: 16px; + @include sm-up { + padding-top: 40px; + } + background-color: $blue-95; + + .article-block__text { + @include body-2-regular; + color: $white; + } } -.author-header__role { - @include body-2-regular; - color: $blue-60; +.author-header__name { + color: $amber; } -.article-block__text { +.author-header__role { @include body-2-regular; - color: $blue-90; + color: $blue-40; } .author-header__portrait { @@ -21,7 +30,6 @@ } .article-block__socials { - color: $blue-60; @include body-3-medium; ul { @@ -30,14 +38,19 @@ } a { - @include owid-link-60; + color: $blue-20; + &:hover { + text-decoration: underline; + text-underline-offset: 4px; + } } svg { margin-right: 8px; + color: $blue-50; } } -.author-header--sm { +.author-header__sm { @include sm-up { display: none; } @@ -66,7 +79,7 @@ } } -.author-header--md { +.author-header__md { display: none; @include sm-up { display: grid; diff --git a/site/gdocs/pages/Author.tsx b/site/gdocs/pages/Author.tsx index 59628b56d16..545a8191670 100644 --- a/site/gdocs/pages/Author.tsx +++ b/site/gdocs/pages/Author.tsx @@ -22,8 +22,8 @@ const AuthorHeader = (gdoc: OwidGdocAuthorInterface) => { } = gdoc.content return ( - <> -
+
+

{title}

{role}
@@ -48,7 +48,7 @@ const AuthorHeader = (gdoc: OwidGdocAuthorInterface) => { )}
-
+

{title}

@@ -81,14 +81,10 @@ const AuthorHeader = (gdoc: OwidGdocAuthorInterface) => { )}
- +
) } export const Author = (gdoc: OwidGdocAuthorInterface): JSX.Element => { - return ( -
- -
- ) + return }