Skip to content

Commit

Permalink
[website] Improve loading image
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 13, 2023
1 parent 98dd301 commit d278821
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docs/src/components/landing/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function Hero() {
}),
]}
>
<IconImage width={28} height={28} name="product-toolpad" />
<IconImage width={28} height={28} loading="eager" name="product-toolpad" />
<Box component="span" sx={{ ml: 1, mr: 1 }}>
MUI Toolpad
</Box>
Expand All @@ -170,7 +170,7 @@ export default function Hero() {
size="small"
variant="outlined"
clickable
onDelete={() => {}}
onDelete={() => { }}
deleteIcon={<ChevronRightIcon />}
sx={[
(theme) => ({
Expand Down Expand Up @@ -258,9 +258,8 @@ export default function Hero() {
height: '100%',
borderRadius: '16px',
padding: '8px',
background: `linear-gradient(120deg, ${
(theme.vars || theme).palette.grey[50]
} 0%, ${alpha(theme.palette.primary[50], 0.5)} 150%)`,
background: `linear-gradient(120deg, ${(theme.vars || theme).palette.grey[50]
} 0%, ${alpha(theme.palette.primary[50], 0.5)} 150%)`,
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[100],
backfaceVisibility: 'hidden',
Expand All @@ -274,9 +273,8 @@ export default function Hero() {
}),
(theme) =>
theme.applyDarkStyles({
background: `linear-gradient(120deg, ${
(theme.vars || theme).palette.primaryDark[500]
} 0%, ${alpha(theme.palette.primaryDark[800], 0.4)} 150%)`,
background: `linear-gradient(120deg, ${(theme.vars || theme).palette.primaryDark[500]
} 0%, ${alpha(theme.palette.primaryDark[800], 0.4)} 150%)`,
borderColor: `${alpha(theme.palette.primaryDark[300], 0.3)}`,
boxShadow: `0 4px 8px ${alpha(theme.palette.common.black, 0.8)}`,
}),
Expand Down

0 comments on commit d278821

Please sign in to comment.