Skip to content

Commit

Permalink
#35 Added styling to icon section of the singular product page. Revis…
Browse files Browse the repository at this point in the history
…ion is still needed for styling mobile version of this section.
  • Loading branch information
Viviana committed Apr 4, 2021
1 parent f1055c6 commit 1e9cc1b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/singular-product/singular-product-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,35 @@ export const ProductDescription = styled.div`
padding-top: 24px;
}
`

export const IconSection = styled.div`
margin-top: 127px;
`

export const IconSectionHeading = styled.div`
text-transform: uppercase;
font-size: 20px;
`

export const IconContainer = styled.div`
display: flex;
padding-top: 80px;
justify-content: space-between;
@media (max-width: ${dimensions.maxwidthTablet}px) {
flex: 50%;
padding-top: 54px;
}
`

export const Icon = styled.div``

export const IconImage = styled.div`
width: 4vw;
height: 55px;
background-color: #C4C4C4;
`

export const IconCaption = styled.div`
font-size: 15px;
`
19 changes: 19 additions & 0 deletions src/components/singular-product/singular-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import {
ProductType,
ProductName,
ProductDescription,
IconSection,
IconSectionHeading,
IconContainer,
Icon,
IconImage,
IconCaption,
} from "./singular-product-styles"

export default function SingularProductPage({ data }) {
Expand All @@ -33,6 +39,19 @@ import {
<ProductDescription>{data.product_description.text}</ProductDescription>
</TextContainer>
</HeroSection>
<IconSection>
<IconSectionHeading>{data.icon_section_title}</IconSectionHeading>
<IconContainer>
{data.icons.map(icon => {
return (
<Icon>
<IconImage></IconImage>
<IconCaption>{icon.icon_text}</IconCaption>
</Icon>
)
})}
</IconContainer>
</IconSection>
</SingularProductContainer>
)
}

0 comments on commit 1e9cc1b

Please sign in to comment.