Skip to content

Commit

Permalink
fallback to mui.com
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Oct 14, 2024
1 parent 55d7dc4 commit d75ead4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ const items = [
title: 'Dashboard',
description:
'This item could provide a snapshot of the most important metrics or data points related to the product.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/dash-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/dash-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/dash-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/dash-dark.png")`,
},
{
icon: <EdgesensorHighRoundedIcon />,
title: 'Mobile integration',
description:
'This item could provide information about the mobile app version of the product.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/mobile-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/mobile-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/mobile-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/mobile-dark.png")`,
},
{
icon: <DevicesRoundedIcon />,
title: 'Available on all platforms',
description:
'This item could let users know the product is available on all platforms, such as web, mobile, and desktop.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/devices-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/devices-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/devices-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/devices-dark.png")`,
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ const items = [
title: 'Dashboard',
description:
'This item could provide a snapshot of the most important metrics or data points related to the product.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/dash-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/dash-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/dash-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/dash-dark.png")`,
},
{
icon: <EdgesensorHighRoundedIcon />,
title: 'Mobile integration',
description:
'This item could provide information about the mobile app version of the product.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/mobile-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/mobile-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/mobile-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/mobile-dark.png")`,
},
{
icon: <DevicesRoundedIcon />,
title: 'Available on all platforms',
description:
'This item could let users know the product is available on all platforms, such as web, mobile, and desktop.',
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/devices-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL}/static/images/templates/templates-images/devices-dark.png")`,
imageLight: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/devices-light.png")`,
imageDark: `url("${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/images/templates/templates-images/devices-dark.png")`,
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ const StyledBox = styled('div')(({ theme }) => ({
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[200],
boxShadow: '0 0 12px 8px hsla(220, 25%, 80%, 0.2)',
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL}/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)`,
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)`,
backgroundSize: 'cover',
[theme.breakpoints.up('sm')]: {
marginTop: theme.spacing(10),
height: 700,
},
...theme.applyStyles('dark', {
boxShadow: '0 0 24px 12px hsla(210, 100%, 25%, 0.2)',
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL}/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)`,
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)`,
outlineColor: 'hsla(220, 20%, 42%, 0.1)',
borderColor: (theme.vars || theme).palette.grey[700],
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ const StyledBox = styled('div')(({ theme }) => ({
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[200],
boxShadow: '0 0 12px 8px hsla(220, 25%, 80%, 0.2)',
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL}/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)`,
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)`,
backgroundSize: 'cover',
[theme.breakpoints.up('sm')]: {
marginTop: theme.spacing(10),
height: 700,
},
...theme.applyStyles('dark', {
boxShadow: '0 0 24px 12px hsla(210, 100%, 25%, 0.2)',
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL}/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)`,
backgroundImage: `url(${process.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)`,
outlineColor: 'hsla(220, 20%, 42%, 0.1)',
borderColor: (theme.vars || theme).palette.grey[700],
}),
Expand Down
4 changes: 2 additions & 2 deletions docs/nextConfigDocsInfra.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function withDocsInfra(nextConfig) {
NETLIFY_DEPLOY_URL: process.env.DEPLOY_URL,
// Name of the site, its Netlify subdomain; for example, material-ui-docs
NETLIFY_SITE_NAME: process.env.SITE_NAME,
// For template images to work when open in CodeSandbox/StackBlitz
TEMPLATE_IMAGE_URL: process.env.DEPLOY_ENV === 'development' ? '' : process.env.DEPLOY_URL,
// For template images
TEMPLATE_IMAGE_URL: '',
},
experimental: {
scrollRestoration: true,
Expand Down

0 comments on commit d75ead4

Please sign in to comment.