11import React from 'react'
22
3- import { arrayOf , element } from 'prop-types '
3+ import { rem } from 'polished '
44import styled from 'styled-components'
55
6- import { RowContainer } from 'components'
6+ import { Logo , RowContainer } from 'components'
77import { FlexSectionContent } from 'components/layout'
8+ import { TABLET_SMALL_SIZE } from 'styles/constants'
89
910import { SectionHeadingBold } from '../../components/heading'
1011
@@ -31,13 +32,29 @@ const StyledText = styled.div`
3132 text-align: center;
3233 font-family: 'Lato';
3334 line-height: 1.625rem;
35+ margin-right: -1rem;
36+ margin-left: -1rem;
3437`
3538
36- const LogoContainer = styled ( RowContainer ) `
39+ const LogosContainer = styled ( RowContainer ) `
3740 margin-top: 3rem;
3841`
3942
40- const EpBuiltStartupsSection = ( { children } ) => (
43+ const MIN_LOGO_WIDTH = rem ( 125 )
44+
45+ const LogoContainer = styled . div `
46+ padding: 1rem;
47+ min-width: ${ MIN_LOGO_WIDTH } ;
48+ flex: 0 0 50%;
49+ max-width: 50%;
50+
51+ @media only screen and (min-width: ${ TABLET_SMALL_SIZE } ) {
52+ flex: 0 0 25%;
53+ max-width: 25%;
54+ }
55+ `
56+
57+ const EpBuiltStartupsSection = ( ) => (
4158 < StyledSection >
4259 < StyledFlexSectionContent >
4360 < StyledHeading > Our Software Engineers</ StyledHeading >
@@ -47,13 +64,62 @@ const EpBuiltStartupsSection = ({ children }) => (
4764 entrepreneurial, we apply lean startup and agile best practices to
4865 projects we’re passionate about.
4966 </ StyledText >
50- < LogoContainer > { children } </ LogoContainer >
67+ < LogosContainer >
68+ < LogoContainer >
69+ < Logo
70+ url = "https://www.hootsuite.com/"
71+ alt = "Hootsuite logo"
72+ name = "hootsuite.png"
73+ />
74+ </ LogoContainer >
75+ < LogoContainer >
76+ < Logo
77+ url = "https://www.amazon.com/"
78+ alt = "Amazon logo"
79+ name = "amazon.png"
80+ />
81+ </ LogoContainer >
82+ < LogoContainer >
83+ < Logo
84+ url = "https://www.paypal.com/"
85+ alt = "PayPal logo"
86+ name = "paypal.png"
87+ />
88+ </ LogoContainer >
89+ < LogoContainer >
90+ < Logo url = "https://www.bench.co/" alt = "Bench logo" name = "bench.png" />
91+ </ LogoContainer >
92+ < LogoContainer >
93+ < Logo
94+ url = "https://www.intel.com/"
95+ alt = "Intel logo"
96+ name = "intel.png"
97+ />
98+ </ LogoContainer >
99+ < LogoContainer >
100+ < Logo
101+ url = "https://www.verisign.com/"
102+ alt = "Verisign logo"
103+ name = "verisign.png"
104+ />
105+ </ LogoContainer >
106+ < LogoContainer >
107+ < Logo
108+ url = "https://www.cisco.com/"
109+ alt = "Cisco logo"
110+ name = "cisco.png"
111+ />
112+ </ LogoContainer >
113+ < LogoContainer >
114+ < Logo
115+ url = "https://www.opendns.com/"
116+ alt = "OpenDNS logo"
117+ name = "opendns.png"
118+ />
119+ </ LogoContainer >
120+ </ LogosContainer >
51121 </ StyledFlexSectionContent >
52122 </ StyledSection >
53123)
54124
55- EpBuiltStartupsSection . propTypes = {
56- children : arrayOf ( element ) ,
57- }
58-
59125export default EpBuiltStartupsSection
0 commit comments