From ffff1d5fff898af8796e02892b562d308aed33d0 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Wed, 12 Dec 2018 14:50:31 +0100 Subject: Edits aboutLayout, mission.tsx --- .../ts/@next/components/aboutPageLayout.tsx | 59 +++++++++--------- packages/website/ts/@next/pages/about/mission.tsx | 70 +++++++++++----------- 2 files changed, 62 insertions(+), 67 deletions(-) (limited to 'packages/website/ts/@next') diff --git a/packages/website/ts/@next/components/aboutPageLayout.tsx b/packages/website/ts/@next/components/aboutPageLayout.tsx index e8f09c8d9..54e4c34f4 100644 --- a/packages/website/ts/@next/components/aboutPageLayout.tsx +++ b/packages/website/ts/@next/components/aboutPageLayout.tsx @@ -3,7 +3,7 @@ import styled from 'styled-components'; import { Link } from 'ts/@next/components/button'; import { ChapterLink } from 'ts/@next/components/chapter_link'; -import { BREAKPOINTS, Column, Section, Wrap } from 'ts/@next/components/layout'; +import { Column, Section } from 'ts/@next/components/newLayout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; @@ -16,44 +16,39 @@ interface Props { export const AboutPageLayout = (props: Props) => ( -
- - - - - - - {props.title} - - - {props.description} - - - {(props.linkLabel && props.linkUrl) && - - {props.linkLabel} - - } - - - +
+ + + + + + {props.title} + + + + {props.description} + + + {(props.linkLabel && props.linkUrl) && + + {props.linkLabel} + + } + +
{props.children} ); -const IntroWrap = styled.div` - max-width: 680px; -`; - const Nav = styled(Column)` - @media (max-width: ${BREAKPOINTS.mobile}) { + @media (max-width: 768px) { // display: none; } `; diff --git a/packages/website/ts/@next/pages/about/mission.tsx b/packages/website/ts/@next/pages/about/mission.tsx index f8b01dc08..d71644094 100644 --- a/packages/website/ts/@next/pages/about/mission.tsx +++ b/packages/website/ts/@next/pages/about/mission.tsx @@ -1,10 +1,12 @@ import * as _ from 'lodash'; import * as React from 'react'; +import styled from 'styled-components'; import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout'; +import { Definition } from 'ts/@next/components/definition'; import { Icon } from 'ts/@next/components/icon'; import { Image } from 'ts/@next/components/image'; -import { Column, Section, Wrap } from 'ts/@next/components/layout'; +import { Column, Section } from 'ts/@next/components/newLayout'; import { Separator } from 'ts/@next/components/separator'; import { Heading, Paragraph } from 'ts/@next/components/text'; @@ -30,47 +32,45 @@ export const NextAboutMission = () => ( -
- - - +
+
-
- - - Core Values - +
+ + + Core Values + + - + + {_.map(values, (item, index) => ( - <> - - - - - - - - {item.title} - - - {item.description} - - - - - {(index < values.length - 1) && } - + ))} - +
); + +const StyledDefinition = styled(Definition)` + & + & { + padding-top: 30px; + border-top: 1px solid #eaeaea; + } +`; -- cgit v1.2.3