From f4e40a889ed60a914fe7fb6e33382e57bd79a5e8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Sun, 24 May 2020 23:05:02 -0400 Subject: [PATCH 1/7] ui(resources): tweak typo of header --- src/components/HeaderBarebone/index.tsx | 9 ++++++++- src/components/HeaderBarebone/styles.tsx | 10 +++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/components/HeaderBarebone/index.tsx b/src/components/HeaderBarebone/index.tsx index df3e5aa..afa7ec0 100644 --- a/src/components/HeaderBarebone/index.tsx +++ b/src/components/HeaderBarebone/index.tsx @@ -1,4 +1,5 @@ import React from "react" +import cx from "classnames" import * as SC from "./styles" import { Container } from "../Container" @@ -23,7 +24,13 @@ export const HeaderBarebone: React.FC = (props) => { {props.above} - {props.title} + + {props.title} + {props.content} diff --git a/src/components/HeaderBarebone/styles.tsx b/src/components/HeaderBarebone/styles.tsx index 4f17686..fd1d8a8 100644 --- a/src/components/HeaderBarebone/styles.tsx +++ b/src/components/HeaderBarebone/styles.tsx @@ -1,6 +1,6 @@ import { transparentize, darken } from "polished" import styled from "styled-components" -import { fontFamily, modularScale } from "../../design/typography" +import { fontFamily } from "../../design/typography" import { WavesTop, WavesBottom } from "../Waves" import Circles from "../../images/circles.svg" @@ -104,13 +104,13 @@ export const Box = styled.div` export const Title = styled.h1` font-family: ${fontFamily.header}; - font-size: ${modularScale(6).fontSize}px; - line-height: ${modularScale(6).lineHeight}px; + font-size: 34px; + line-height: 41px; letter-spacing: -1.75px; margin-top: 0; margin: 0; - & + * { - margin-top: 16px; + &.has-content-below { + margin-bottom: 16px; } ` From 826294fd84ff16457167c19cf8b9ec3a172c08be Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Sun, 24 May 2020 23:50:47 -0400 Subject: [PATCH 2/7] ui(resources): tweak order of information on language home --- src/components/ResourcesHomeContent/index.tsx | 26 +++++++++++++++++++ .../ResourcesHomeContent/styles.tsx | 15 +++++++++++ src/templates/languageHome.tsx | 10 ++----- 3 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 src/components/ResourcesHomeContent/index.tsx create mode 100644 src/components/ResourcesHomeContent/styles.tsx diff --git a/src/components/ResourcesHomeContent/index.tsx b/src/components/ResourcesHomeContent/index.tsx new file mode 100644 index 0000000..8940de5 --- /dev/null +++ b/src/components/ResourcesHomeContent/index.tsx @@ -0,0 +1,26 @@ +import React, { FC, HTMLAttributes } from "react" +import { Footer } from "../Footer" +import { Markdown } from "../Markdown" +import { ResourcesList } from "../ResourcesList" +import * as SC from "./styles" + +interface IResourcesHomeContent extends HTMLAttributes { + language: string + html: any +} + +export const ResourcesHomeContent: FC = (props) => { + return ( + <> + Resources + + Written by and for TPH members, short introduction topics to commonly + answered questions. + + + Extra resources + +