-
-
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.
[docs][joy-ui] Revise the Overview page (#38842)
- Loading branch information
1 parent
27a1850
commit 1cb83a5
Showing
3 changed files
with
75 additions
and
31 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
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 InfoCard from 'docs/src/components/action/InfoCard'; | ||
|
||
const content = [ | ||
{ | ||
title: 'Installation', | ||
description: 'Add Joy UI to your project with a few commands.', | ||
link: '/joy-ui/getting-started/installation/', | ||
icon: <InstallDesktopRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Usage', | ||
description: 'Learn the basics of working with Joy UI components.', | ||
link: '/joy-ui/getting-started/usage/', | ||
icon: <DrawRoundedIcon color="primary" />, | ||
}, | ||
{ | ||
title: 'Templates', | ||
description: 'Get started with our selection of free application templates.', | ||
link: 'joy-ui/getting-started/templates/', | ||
icon: <WebRoundedIcon color="primary" />, | ||
}, | ||
]; | ||
|
||
export default function JoyStartingLinksCollection() { | ||
return ( | ||
<Grid container spacing={2}> | ||
{content.map(({ icon, title, description, link }) => ( | ||
<Grid key={title} xs={12} sm={4}> | ||
<InfoCard link={link} title={title} icon={icon} description={description} /> | ||
</Grid> | ||
))} | ||
</Grid> | ||
); | ||
} |