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; } ` diff --git a/src/components/Link/index.tsx b/src/components/Link/index.tsx index 2564fc7..9d5d93d 100644 --- a/src/components/Link/index.tsx +++ b/src/components/Link/index.tsx @@ -5,13 +5,17 @@ interface ILinkProps { to: string } -export const Link: FC = ({ children, to }) => { +export const Link: FC = ({ children, to, ...props }) => { if (!to.match(/^(https?:\/\/)/)) { - return {children} + return ( + + {children} + + ) } return ( - + {children} ) diff --git a/src/components/ResourcesHomeContent/index.tsx b/src/components/ResourcesHomeContent/index.tsx new file mode 100644 index 0000000..cc1b509 --- /dev/null +++ b/src/components/ResourcesHomeContent/index.tsx @@ -0,0 +1,28 @@ +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 + + +