|
| 1 | +import React from 'react' |
| 2 | + |
| 3 | +import { arrayOf, element } from 'prop-types' |
| 4 | +import styled from 'styled-components' |
| 5 | + |
| 6 | +import { Heading, RowContainer } from 'components' |
| 7 | +import { FlexSectionContent } from 'components/layout' |
| 8 | + |
| 9 | +const { h2 } = Heading.VARIANT |
| 10 | + |
| 11 | +const StyledSection = styled.section` |
| 12 | + padding: 7.5rem 1.25rem 6.5rem; |
| 13 | + background: #e8edf4; |
| 14 | +` |
| 15 | + |
| 16 | +const StyledFlexSectionContent = styled(FlexSectionContent)` |
| 17 | + display: flex; |
| 18 | + flex-direction: column; |
| 19 | + align-items: center; |
| 20 | +` |
| 21 | + |
| 22 | +const StyledHeading = styled(Heading)` |
| 23 | + max-width: 50rem; |
| 24 | + font-weight: 800; |
| 25 | + text-transform: none; |
| 26 | + line-height: 3.5rem; |
| 27 | + text-align: center; |
| 28 | + text-transform: uppercase; |
| 29 | +` |
| 30 | + |
| 31 | +const StyledText = styled.div` |
| 32 | + margin-top: 1.5rem; |
| 33 | + max-width: 40rem; |
| 34 | + text-align: center; |
| 35 | + font-family: 'Lato'; |
| 36 | + line-height: 1.625rem; |
| 37 | +` |
| 38 | + |
| 39 | +const LogoContainer = styled(RowContainer)` |
| 40 | + margin-top: 3rem; |
| 41 | +` |
| 42 | + |
| 43 | +const EpBuiltStartupsSection = ({ children }) => ( |
| 44 | + <StyledSection> |
| 45 | + <StyledFlexSectionContent> |
| 46 | + <StyledHeading variant={h2}>Our Software Engineers</StyledHeading> |
| 47 | + <StyledText> |
| 48 | + We’ve built successful startups, we’ve built large scale systems, we |
| 49 | + know what it takes to balance speed and quality. We’re creative, we’re |
| 50 | + entrepreneurial, we apply lean startup and agile best practices to |
| 51 | + projects we’re passionate about. |
| 52 | + </StyledText> |
| 53 | + <LogoContainer>{children}</LogoContainer> |
| 54 | + </StyledFlexSectionContent> |
| 55 | + </StyledSection> |
| 56 | +) |
| 57 | + |
| 58 | +EpBuiltStartupsSection.propTypes = { |
| 59 | + children: arrayOf(element), |
| 60 | +} |
| 61 | + |
| 62 | +export default EpBuiltStartupsSection |
0 commit comments