-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
samgildea
committed
May 3, 2021
1 parent
b38f2c5
commit c9b5724
Showing
4 changed files
with
229 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import styled from "styled-components" | ||
import colors from "../../style/colors" | ||
import dimensions from "../../style/dimensions" | ||
import { | ||
layoutPaddingDesktop, | ||
layoutPaddingMobile, | ||
} from "../../style/variables" | ||
export const ProcessContainer = styled.div`` | ||
|
||
export const HowItWorks = styled.div` | ||
min-height: 100vh; | ||
position: relative; | ||
z-index: 1; | ||
` | ||
|
||
export const HowHeader = styled.div` | ||
padding-top: 216px; | ||
color: ${colors.blue900}; | ||
` | ||
|
||
export const HowImage = styled.div` | ||
img { | ||
width: 627px; | ||
height: 581px; | ||
object-fit: cover; | ||
} | ||
` | ||
|
||
export const HowCarousel = styled.div` | ||
display: flex; | ||
margin-bottom: 242px; | ||
` | ||
|
||
export const HowText = styled.div` | ||
width: 36vw; | ||
background-color: ${colors.white900}; | ||
height: 581px; | ||
` | ||
|
||
export const HowParagraph = styled.div` | ||
padding-left: 90px; | ||
padding-top: 108px; | ||
padding-right: 72px; | ||
` | ||
|
||
export const BlueBackground = styled.div` | ||
width: 63vw; | ||
position: absolute; | ||
right: 0; | ||
min-height: calc(100vh + 242px); | ||
background-color: ${colors.softblue900}; | ||
top: 127px; | ||
z-index: 0; | ||
` | ||
|
||
export const FindSection = styled.div` | ||
position: relative; | ||
min-height: 100vh; | ||
` | ||
|
||
export const FindImage = styled.div` | ||
img { | ||
width: 100vw; | ||
left: -${layoutPaddingDesktop}; | ||
position: absolute; | ||
z-index: 0; | ||
height: 100vh; | ||
object-fit: cover; | ||
} | ||
` | ||
export const FindText = styled.div` | ||
position: relative; | ||
z-index: 1; | ||
color: ${colors.blue900}; | ||
padding-top: 350px; | ||
` | ||
export const FindButton = styled.a` | ||
background-color: ${colors.orange900}; | ||
text-transform: uppercase; | ||
color: ${colors.white900}; | ||
padding-left: 48px; | ||
font-size: 16px; | ||
padding-right: 48px; | ||
padding-top: 16px; | ||
padding-bottom: 16px; | ||
` | ||
|
||
export const StepsSection = styled.div` | ||
` | ||
|
||
export const Step = styled.div` | ||
display: flex; | ||
align-items: center; | ||
` | ||
|
||
export const StepImage = styled.div` | ||
margin-top: 230px; | ||
margin-left: -${layoutPaddingDesktop}; | ||
` | ||
|
||
export const StepText = styled.div` | ||
justify-content: center; | ||
padding-left: 238px; | ||
width: 32vw; | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
import React from "react" | ||
import { | ||
ProcessContainer, | ||
HowItWorks, | ||
HowHeader, | ||
HowImage, | ||
HowCarousel, | ||
HowText, | ||
HowParagraph, | ||
BlueBackground, | ||
FindSection, | ||
FindImage, | ||
FindText, | ||
FindButton, | ||
StepsSection, | ||
Step, | ||
StepImage, | ||
StepText | ||
} from "./process-styles" | ||
import { H1, P, H2, H3, Body } from "../../style/type-styles" | ||
|
||
export default function Process({ data }) { | ||
return ( | ||
<ProcessContainer> | ||
<BlueBackground /> | ||
|
||
<HowItWorks> | ||
<HowHeader> | ||
<H2>{data.prismicProcessPage.data.how_header}</H2> | ||
</HowHeader> | ||
|
||
<HowCarousel> | ||
<HowImage> | ||
<img | ||
src={data.prismicProcessPage.data.how_images[0].how_image.url} | ||
/> | ||
</HowImage> | ||
<HowText> | ||
<HowParagraph> | ||
<Body> | ||
{ | ||
data.prismicProcessPage.data.how_images[0].how_paragraph[0] | ||
.text | ||
} | ||
</Body> | ||
</HowParagraph> | ||
</HowText> | ||
</HowCarousel> | ||
</HowItWorks> | ||
|
||
<FindSection> | ||
<FindImage> | ||
<img src={data.prismicProcessPage.data.find_image.url} /> | ||
</FindImage> | ||
|
||
<FindText> | ||
<H2>{data.prismicProcessPage.data.find_header}</H2> | ||
|
||
<FindButton> | ||
{data.prismicProcessPage.data.find_button_text} | ||
</FindButton> | ||
</FindText> | ||
</FindSection> | ||
|
||
<StepsSection> | ||
{console.log(data.prismicProcessPage.data.steps[0])} | ||
{data.prismicProcessPage.data.steps.map(step => { | ||
return ( | ||
<Step> | ||
|
||
<StepImage> | ||
<img src={step.step_image.url} /> | ||
</StepImage> | ||
|
||
<StepText> | ||
<H2> | ||
{step.step_title} | ||
</H2> | ||
<Body> | ||
{step.step_description} | ||
|
||
</Body> | ||
</StepText> | ||
</Step> | ||
) | ||
})} | ||
</StepsSection> | ||
</ProcessContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters