Skip to content

Commit

Permalink
[website] Fix image layout shift (#38326)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and Rich Bustos committed Aug 7, 2023
1 parent 64651a5 commit 10e882c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/src/components/productBaseUI/BaseUITestimonial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ export default function BaseUITestimonial() {
<Typography variant="h4" component="h2" mb={2.5} sx={{ color: '#fff' }}>
Nhost&apos;s dashboard
</Typography>
<img
src="/static/branding/base-ui/nhost.jpg"
srcSet="/static/branding/base-ui/nhost.jpg 1x, /static/branding/base-ui/nhost-2x.jpg 2x "
<Box
component="img"
srcSet="/static/branding/base-ui/nhost.jpg, /static/branding/base-ui/nhost-2x.jpg 2x "
alt="Screenshot displaying part of the Nhost dashboard that used Base UI to be built."
loading="lazy"
width="570px"
sx={{
backgroundColor: '#fff',
width: 510,
height: 210,
}}
/>
</Box>
<Typography variant="body2" sx={{ mt: 2 }}>
Expand Down

0 comments on commit 10e882c

Please sign in to comment.