Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Migrate Grid2 in the docs to fix landing page layout #3790

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading