Skip to content

Commit

Permalink
[docs] Migrate Grid2 in the docs to fix landing page layout (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Jul 16, 2024
1 parent 6df0a22 commit eb42ed9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/landing/CardGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function CardGrid(props) {
<SectionHeadline overline={content.overline} title={content.Headline} />
<Grid container spacing={2} columns={{ xs: 1, sm: 3 }}>
{content.cards.map(({ icon, title, wip, imageUrl, description }) => (
<Grid key={title} xs={2} sm={1}>
<Grid key={title} size={{ xs: 2, sm: 1 }}>
<Paper variant="outlined" sx={cardRootStyle(imageUrl)}>
{imageUrl && <Box sx={cardMediaStyle(imageUrl)} />}
<Box sx={cardContentRootStyle(imageUrl)}>
Expand Down
8 changes: 4 additions & 4 deletions docs/src/components/landing/UseCases.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function CardGrid() {
}
/>
<Grid container spacing={5} sx={{ mt: { xs: 1, sm: 4 } }}>
<Grid xs={12} md={6}>
<Grid size={{ xs: 12, md: 6 }}>
<ImageContainer noLinkStyle href="/toolpad/studio/examples/npm-stats/">
<Img
src="/static/toolpad/docs/studio/examples/npm-stats.png"
Expand All @@ -123,7 +123,7 @@ export default function CardGrid() {
href="/toolpad/studio/examples/npm-stats/"
/>
</Grid>
<Grid xs={12} md={6}>
<Grid size={{ xs: 12, md: 6 }}>
<ImageContainer noLinkStyle href="/toolpad/studio/examples/basic-crud-app/">
<Img
src="/static/toolpad/docs/studio/examples/basic-crud-app.png"
Expand All @@ -138,7 +138,7 @@ export default function CardGrid() {
href="/toolpad/studio/examples/basic-crud-app/"
/>
</Grid>
<Grid xs={12} md={6}>
<Grid size={{ xs: 12, md: 6 }}>
<ImageContainer noLinkStyle href="/toolpad/studio/examples/qr-generator/">
<Img
src="/static/toolpad/docs/studio/examples/qr-generator.png"
Expand All @@ -155,7 +155,7 @@ export default function CardGrid() {
href="/toolpad/studio/examples/qr-generator/"
/>
</Grid>
<Grid xs={12} md={6}>
<Grid size={{ xs: 12, md: 6 }}>
<Box
sx={[
(theme) => ({
Expand Down

0 comments on commit eb42ed9

Please sign in to comment.