Skip to content

Commit

Permalink
Fix layout jumping when about me image loads
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnHols committed Dec 7, 2024
1 parent b1235b7 commit 92782c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions slices/ContentSlice/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ const BackgroundWrapper = styled.div`
`
const StyledContainer = styled(Container)(
({ theme }) => css`
padding-top: 100px;
padding-bottom: 100px;
padding-top: 40px;
padding-bottom: 60px;
display: flex;
flex-flow: column;
gap: ${theme.spacing.x6}px;
@media (min-width: ${theme.breakpoints.DESKTOP}px) {
padding-top: 100px;
padding-bottom: 100px;
flex-flow: row;
}
@media (min-width: ${theme.breakpoints.DESKTOP_LARGE}px) {
Expand All @@ -34,14 +36,15 @@ const ImageContainer = styled.div`
const SideImage = styled(Image)(
({ theme }) => css`
clip-path: polygon(100% 0%, 100% calc(100% - 16px), 0% 100%, 0% 16px);
display: block;
width: 100%;
height: auto;
@media (min-width: ${theme.breakpoints.TABLET}px) {
max-width: 400px;
width: 400px;
}
@media (min-width: ${theme.breakpoints.DESKTOP_LARGE}px) {
max-width: 500px;
width: 500px;
}
`,
)
Expand Down

0 comments on commit 92782c9

Please sign in to comment.