-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][docs] Add a "start now" section on the Overview page (#…
- Loading branch information
1 parent
6d232b4
commit 0f8d965
Showing
2 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
docs/src/modules/components/MaterialStartingLinksCollection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import * as React from 'react'; | ||
import Grid from '@mui/material/Unstable_Grid2'; | ||
import InstallDesktopRoundedIcon from '@mui/icons-material/InstallDesktopRounded'; | ||
import WebRoundedIcon from '@mui/icons-material/WebRounded'; | ||
import DrawRoundedIcon from '@mui/icons-material/DrawRounded'; | ||
import PlayCircleFilledWhiteRoundedIcon from '@mui/icons-material/PlayCircleFilledWhiteRounded'; | ||
import DesignServicesRoundedIcon from '@mui/icons-material/DesignServicesRounded'; | ||
import InfoCard from 'docs/src/components/action/InfoCard'; | ||
|
||
const content = [ | ||
{ | ||
title: 'Installation', | ||
description: 'Add Material UI to your project with a few commands.', | ||
link: '/material-ui/getting-started/installation/', | ||
icon: <InstallDesktopRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Usage', | ||
description: 'Learn the basics about Material UI components.', | ||
link: '/material-ui/getting-started/usage/', | ||
icon: <DrawRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Example projects', | ||
description: 'A collection of boilerplates to jumpstart your next project.', | ||
link: '/material-ui/getting-started/example-projects/', | ||
icon: <PlayCircleFilledWhiteRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Customizing components', | ||
description: 'Learn about the available customization methods.', | ||
link: '/material-ui/customization/how-to-customize/', | ||
icon: <DesignServicesRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Templates', | ||
description: 'Get started with a selection of free templates.', | ||
link: '/material-ui/getting-started/templates/', | ||
icon: <WebRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Design resources', | ||
description: 'The Material UI components in your favorite design tool.', | ||
link: 'https://www.figma.com/community/file/912837788133317724/material-ui-for-figma-and-mui-x', | ||
icon: ( | ||
<img | ||
src={`/static/branding/design-kits/figma-logo.svg`} | ||
alt="Figma logo" | ||
loading="lazy" | ||
width="24" | ||
height="24" | ||
/> | ||
), | ||
}, | ||
]; | ||
|
||
export default function MaterialStartingLinksCollection() { | ||
return ( | ||
<Grid container spacing={2}> | ||
{content.map(({ icon, title, description, link }) => ( | ||
<Grid key={title} xs={12} sm={6} md={4}> | ||
<InfoCard | ||
classNameTitle="algolia-lvl3" | ||
classNameDescription="algolia-content" | ||
link={link} | ||
title={title} | ||
icon={icon} | ||
description={description} | ||
/> | ||
</Grid> | ||
))} | ||
</Grid> | ||
); | ||
} |