From 4c421120b01ea28b912fcc0978c68356454bac7f Mon Sep 17 00:00:00 2001 From: Viviana Date: Fri, 26 Mar 2021 12:09:56 -0400 Subject: [PATCH] #18 Added styling to Industry Context Section for the About page --- src/pages/about.js | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/src/pages/about.js b/src/pages/about.js index ca4e8e7..ac97dc7 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -64,10 +64,59 @@ const MissionTextHeader = styled.div` const MissionTextParagraph = styled.div` font-size: 20px; ` +const IndustryContextSection = styled.div` + padding-top: 130px; + padding-left: +` +const IndustryContextHeader = styled.div` + +` +const IndustryContextHeaderText = styled.div` + font-size: 36px; + font-weight: bold; + padding-top: 26px; +` + +const IndustryContextExamples = styled.div` + display: flex; + @media (max-width: ${dimensions.maxwidthTablet}px) { + flex-wrap: wrap; + } +` +// I'm still working on the spacing between each example +// and changing the sizing of the content box changing as +// the screen size changes +const IndustryContextGroup = styled.div` + padding-top: 26px; + margin-right: 41px; + width: 316px; + @media (max-width: ${dimensions.maxwidthTablet}px) { + margin-left: auto; + margin-right: auto; + padding-top: 38px; + } +` + +const IndustryContextImage = styled.div` + background-color: #CACACA; + height: 243px; + width: 316px; +` + +const IndustryContextExampleParagraph = styled.div` + font-size: 16px; + padding-top: 26px; + + @media (max-width: ${dimensions.maxwidthTablet}px) { + width: 316px; + } +` + export default function About({ data }) { const aboutData = data.prismicAboutPage.data + console.log(aboutData.industry_context_explanation); return ( @@ -87,6 +136,24 @@ export default function About({ data }) { + + + + + {aboutData.industry_context_heading} + + + + {aboutData.industry_context_explanation.map(example => { + return ( + + + {example.explanation_description} + + )})} + + + ) }