Skip to content

Commit

Permalink
Merge pull request #118 from setlife-network/jpi/issues/116
Browse files Browse the repository at this point in the history
Fix image distortion
  • Loading branch information
otech47 authored Jul 23, 2020
2 parents f8d68a7 + ecae780 commit 95d85da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Binary file modified src/assets/.DS_Store
Binary file not shown.
11 changes: 6 additions & 5 deletions src/sections/Consultation.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ const ButtonWrapper = styled(Col)`

const ImageContainer = styled(Image)`
left: 50px;
position: absolute;
top: 0;
height: 100%;
width: 100%;
height: 150%;
width: 1100px;
opacity: 0.8;
transform: skew(15deg,0deg);
`
Expand All @@ -44,8 +43,9 @@ const OutContainer = styled(Col)`
margin-left: -10%;
min-height: 100%;
overflow: hidden;
transform: skew(-15deg,0deg);
transform: skew(-10deg,0deg);
background: ${theme.colors.primary}
`

const ColDiv = styled(Col)`
Expand Down Expand Up @@ -111,7 +111,8 @@ class Consultation extends Component {
<Row>
<Col md={6} className='d-none d-md-flex'>
<OutContainer md={12}>
<ImageContainer src={ConsultationPhoto} alt='Photo' />

<ImageContainer src={ConsultationPhoto} alt='Photo' />
</OutContainer>
</Col>
<ColDiv md={6}>
Expand Down
4 changes: 3 additions & 1 deletion src/sections/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class Hero extends Component {
md={{ order: 2 }}
xs={{ order: 1 }}
>
<ImageContainer src={HeroGraphic} alt='Hero Graphic' />
<div>
<ImageContainer mx-auto src={HeroGraphic} alt='Hero Graphic' />
</div>
</Col>
</Section>

Expand Down

0 comments on commit 95d85da

Please sign in to comment.