Skip to content

Commit

Permalink
#38 adding orange line to connect nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
samgildea committed Apr 23, 2021
1 parent d319bc5 commit c8062ae
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 7 deletions.
27 changes: 22 additions & 5 deletions src/components/homepage/index-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export const HeroCTA = styled.div`
`

export const ImpactSection = styled.div`
display: flex;
justify-content: center;
@media (min-width: ${dimensions.maxwidthTablet}px) {
min-height: 100vh;
}
Expand All @@ -70,10 +73,7 @@ export const ImpactHeader = styled.div`
}
`
export const ImpactIcon = styled.div`
width: 64px;
height: 64px;
background-color: ${colors.gray_icon};
border-radius: 8px;
margin-top: 128px;
`

Expand All @@ -83,14 +83,20 @@ export const ImpactStats = styled.div`
@media (min-width: ${dimensions.maxwidthTablet}px) {
display: flex;
justify-content: center;
// justify-content: center;
margin-top: 132px;
margin-bottom: 64px;
}
`

export const ImpactExample = styled.div`
padding-right: 9vw;
svg {
margin-top: 48px;
position: relative;
z-index: 1;
}
`

export const ImpactStat = styled.div`
Expand Down Expand Up @@ -249,3 +255,14 @@ a {
color: ${colors.orange900};
}
`
export const NodeLine = styled.div`
position: absolute;
height: 3px;
width: 66vw;
left: -80px;
margin-top: 64px;
z-index: 0;
background-color: #F27A28;
`
13 changes: 11 additions & 2 deletions src/components/homepage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ import {
SolutionsCard,
SolutionsCards,
SolutionsCTA,
NodeLine
} from "./index-styles"

import Circle from "../../vectors/circle.svg"
import PlantIcon from "../../vectors/holding-plant-icon.svg"

import TreeIcon from "../../vectors/renewable-tree-icon.svg"
import SunIcon from "../../vectors/sun-icon.svg"
import { Helmet } from "react-helmet"
Expand Down Expand Up @@ -85,15 +89,20 @@ export default function HomePage({ data }) {
<ImpactSection>
<div>
<ImpactHeader>
<ImpactIcon />
<ImpactIcon>
<PlantIcon />

</ImpactIcon>
<H2>{data.impact_section_title}</H2>
</ImpactHeader>
<ImpactStats>
{data.impact_example.map(example => (
{data.impact_example.map((example, idx) => (
<ImpactExample>
<ImpactStat>
<H1>{example.impact_big_text}</H1>
<P>{example.impact_small_text}</P>
{idx === 2 && <NodeLine />}
<Circle />
</ImpactStat>
</ImpactExample>
))}
Expand Down
3 changes: 3 additions & 0 deletions src/vectors/circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/vectors/holding-plant-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8062ae

Please sign in to comment.