File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
sections/executive-team-section Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import styled from 'styled-components'
77import { MediaContainer , StaticImage } from 'components'
88import { TABLET_LARGE_SIZE , TABLET_SMALL_SIZE } from 'styles/constants'
99
10+ const CONTAINER_MARGIN_BOTTOM_TABLET_LARGE = 84
11+
1012const Container = styled . div `
1113 display: flex;
1214 flex-direction: column;
@@ -27,7 +29,7 @@ const Container = styled.div`
2729 @media only screen and (min-width: ${ TABLET_LARGE_SIZE } ) {
2830 max-width: 20%;
2931 flex: 0 0 20%;
30- margin-bottom: ${ rem ( '84px' ) } ;
32+ margin-bottom: ${ rem ( CONTAINER_MARGIN_BOTTOM_TABLET_LARGE ) } ;
3133 }
3234`
3335
@@ -85,4 +87,5 @@ ExecutiveAvatar.propTypes = {
8587 src : string . isRequired ,
8688}
8789
90+ export { CONTAINER_MARGIN_BOTTOM_TABLET_LARGE }
8891export default ExecutiveAvatar
Original file line number Diff line number Diff line change @@ -8,16 +8,18 @@ import { useIsMaxScreenSize } from 'helpers/hooks'
88import { TABLET_LARGE_SIZE , TABLET_SMALL_SIZE } from 'styles/constants'
99
1010import ChevronSvg from '../../static/icons/chevron.svg'
11- import ExecutiveAvatar from './executive-avatar'
11+ import ExecutiveAvatar , {
12+ CONTAINER_MARGIN_BOTTOM_TABLET_LARGE ,
13+ } from './executive-avatar'
1214import { people } from './people'
1315
1416const { h2 } = Heading . VARIANT
1517
1618const StyledSection = styled . section `
17- padding: ${ rem ( '100px' ) } 0;
19+ padding: ${ rem ( 140 ) } 0 ${ rem ( 140 - CONTAINER_MARGIN_BOTTOM_TABLET_LARGE ) } ;
1820
1921 @media only screen and (max-width: ${ TABLET_LARGE_SIZE } ) {
20- padding: ${ rem ( '124px' ) } 0;
22+ padding: ${ rem ( 124 ) } 0;
2123 }
2224`
2325
@@ -88,7 +90,7 @@ const ExecutiveTeamSection = () => {
8890
8991 return (
9092 < StyledSection >
91- < StyledHeading variant = { h2 } > Our Executive Team</ StyledHeading >
93+ < StyledHeading variant = { h2 } > Our Leadership Team</ StyledHeading >
9294 < AvatarList >
9395 { peopleToShow . map ( ( person ) => (
9496 < ExecutiveAvatar { ...person } key = { person . name } />
You can’t perform that action at this time.
0 commit comments