|
| 1 | +import React from 'react' |
| 2 | + |
| 3 | +import { rem } from 'polished' |
| 4 | +import styled from 'styled-components' |
| 5 | + |
| 6 | +import { Heading, Text } from 'components' |
| 7 | +import { useIsMaxScreenSize } from 'helpers/hooks' |
| 8 | +import { DESKTOP_SIZE } from 'styles/constants' |
| 9 | + |
| 10 | +const IMAGE_BREAKPOINT = '839px' |
| 11 | + |
| 12 | +const { h2 } = Heading.VARIANT |
| 13 | + |
| 14 | +const Container = styled.div` |
| 15 | + display: flex; |
| 16 | + flex-direction: row; |
| 17 | + height: 534px; |
| 18 | + @media only screen and (max-width: ${IMAGE_BREAKPOINT}) { |
| 19 | + flex-direction: column-reverse; |
| 20 | + height: auto; |
| 21 | + } |
| 22 | +` |
| 23 | + |
| 24 | +const ImageContainer = styled.div` |
| 25 | + flex-grow: 1; |
| 26 | + flex-shrink: 0; |
| 27 | + @media only screen and (max-width: ${IMAGE_BREAKPOINT}) { |
| 28 | + width: 100%; |
| 29 | + } |
| 30 | +` |
| 31 | + |
| 32 | +const Image = styled.img` |
| 33 | + max-width: 100%; |
| 34 | + @media only screen and (max-width: ${IMAGE_BREAKPOINT}) { |
| 35 | + width: 100%; |
| 36 | + } |
| 37 | +` |
| 38 | + |
| 39 | +const TextContainer = styled.div` |
| 40 | + display: flex; |
| 41 | + flex-direction: column; |
| 42 | + flex-grow: 1; |
| 43 | + flex-shrink: 1; |
| 44 | + padding: ${rem('101px')} ${rem('80px')} ${rem('101px')} ${rem('70px')}; |
| 45 | + background: linear-gradient(61.68deg, #ff68ba 2.29%, #edc281 100.63%); |
| 46 | +
|
| 47 | + @media only screen and (max-width: ${DESKTOP_SIZE}) { |
| 48 | + align-items: center; |
| 49 | + padding: ${rem('48px')} ${rem('24px')}; |
| 50 | + } |
| 51 | +
|
| 52 | + @media only screen and (max-width: ${IMAGE_BREAKPOINT}) { |
| 53 | + align-items: center; |
| 54 | + padding: ${rem('84px')} ${rem('36px')}; |
| 55 | + width: 100%; |
| 56 | + } |
| 57 | +` |
| 58 | + |
| 59 | +const StyledHeading = styled(Heading)`` |
| 60 | + |
| 61 | +const DiversityAndInclusionSection = () => { |
| 62 | + const isCompactScreen = useIsMaxScreenSize(IMAGE_BREAKPOINT) |
| 63 | + |
| 64 | + return ( |
| 65 | + <section> |
| 66 | + <Container> |
| 67 | + <ImageContainer> |
| 68 | + <Image |
| 69 | + src={ |
| 70 | + isCompactScreen |
| 71 | + ? '/sharon-mccutcheon-multi-coloured-hand-paint-wide.jpeg' |
| 72 | + : '/sharon-mccutcheon-multi-coloured-hand-paint-tall.jpeg' |
| 73 | + } |
| 74 | + alt="Hand with multi-colored paint on it." |
| 75 | + /> |
| 76 | + </ImageContainer> |
| 77 | + <TextContainer> |
| 78 | + <StyledHeading variant={h2}>Diversity & Inclusion</StyledHeading> |
| 79 | + <Text> |
| 80 | + It’s incredibly important to everyone at Commit that the community |
| 81 | + is an inclusive and equitable workplace. We are remote-first, |
| 82 | + meaning that we don’t have an office and many of the engineers work |
| 83 | + on an asynchronous time schedule, which facilitates parents or |
| 84 | + people who need to tackle various priorities in life. |
| 85 | + </Text> |
| 86 | + <Text> |
| 87 | + While we are small, and at the very beginning of this journey to |
| 88 | + have a diverse workforce that is truly representative of our |
| 89 | + society, we aim to break the mold for tech companies and shed |
| 90 | + typical stereotypes and biases. |
| 91 | + </Text> |
| 92 | + </TextContainer> |
| 93 | + </Container> |
| 94 | + </section> |
| 95 | + ) |
| 96 | +} |
| 97 | + |
| 98 | +export default DiversityAndInclusionSection |
0 commit comments