forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
355 additions
and
164 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
23 changes: 23 additions & 0 deletions
23
docs/data/material/getting-started/templates/dashboard/components/CardAlert.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,23 @@ | ||
import * as React from 'react'; | ||
import Card from '@mui/material/Card'; | ||
import CardContent from '@mui/material/CardContent'; | ||
import Button from '@mui/material/Button'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
export default function CardAlert() { | ||
return ( | ||
<Card sx={{ m: 1.5, p: 1.5 }}> | ||
<CardContent> | ||
<Typography fontWeight="600" gutterBottom> | ||
Plan about to expire | ||
</Typography> | ||
<Typography color="text.secondary" variant="body2" sx={{ mb: 2 }}> | ||
Enjoy 10% off when renewing your plan today. | ||
</Typography> | ||
<Button variant="contained" size="small" fullWidth> | ||
Get the discount | ||
</Button> | ||
</CardContent> | ||
</Card> | ||
); | ||
} |
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
23 changes: 6 additions & 17 deletions
23
docs/data/material/getting-started/templates/dashboard/components/Header.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 |
---|---|---|
@@ -1,32 +1,21 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/material/Stack'; | ||
import Typography from '@mui/material/Typography'; | ||
import Search from './Search'; | ||
import CustomDatePicker from './CustomDatePicker'; | ||
import NavbarBreadcrumbs from './NavbarBreadcrumbs'; | ||
|
||
export default function Header() { | ||
return ( | ||
<Stack | ||
direction={{ xs: 'column', md: 'row' }} | ||
direction="row" | ||
sx={{ | ||
alignItems: { xs: 'flex-start', md: 'flex-end' }, | ||
alignItems: { xs: 'flex-start', md: 'center' }, | ||
justifyContent: 'space-between', | ||
gap: 2, | ||
my: 2, | ||
mt: 2, | ||
}} | ||
> | ||
<Stack sx={{ maxWidth: 500 }}> | ||
<Typography variant="h4" component="h1"> | ||
Dashboard | ||
</Typography> | ||
<Typography sx={{ color: 'text.secondary' }}> | ||
Real-time analytics to improve user engagement and guide strategy. | ||
</Typography> | ||
</Stack> | ||
<Stack direction="row" sx={{ gap: 1, width: { xs: '100%', sm: 'auto' } }}> | ||
<Search /> | ||
<CustomDatePicker /> | ||
</Stack> | ||
<NavbarBreadcrumbs /> | ||
<CustomDatePicker /> | ||
</Stack> | ||
); | ||
} |
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
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
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
Oops, something went wrong.