Skip to content

Commit 4a6768f

Browse files
authored
250 Leadership section: adjust padding on desktop and change wording (#258)
Adjust top and bottom padding on desktop Change "Executive" to "Leadership"
1 parent 5cbe8ab commit 4a6768f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

sections/executive-team-section/executive-avatar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import styled from 'styled-components'
77
import { MediaContainer, StaticImage } from 'components'
88
import { TABLET_LARGE_SIZE, TABLET_SMALL_SIZE } from 'styles/constants'
99

10+
const CONTAINER_MARGIN_BOTTOM_TABLET_LARGE = 84
11+
1012
const 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 }
8891
export default ExecutiveAvatar

sections/executive-team-section/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ import { useIsMaxScreenSize } from 'helpers/hooks'
88
import { TABLET_LARGE_SIZE, TABLET_SMALL_SIZE } from 'styles/constants'
99

1010
import 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'
1214
import { people } from './people'
1315

1416
const { h2 } = Heading.VARIANT
1517

1618
const 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} />

0 commit comments

Comments
 (0)