Feat/wms 51 (#44)

* Added: icons
* Updated: routes
* Updated: Tilebasic component
* Updated: homepage component and styling
* Updated: Setup page styles and component
* Updated: Labelling home styles and components
* Fixed: missing footer
* Updated: reorder routes
* Fixed: tiles width for many items
* Fixed: warehouse missing path
* Fixed: setup screen icon sizes

Co-authored-by: Llewellyn D'souza <lledsouza2209@gmail.com>
This commit is contained in:
bluestreamlds
2022-02-04 13:19:03 +05:30
committed by GitHub
parent b867a25974
commit 5857706e89
8 changed files with 183 additions and 130 deletions

View File

@@ -1,103 +1,40 @@
import DashboardNavbar from 'components/DashboardNavbar';
import DashboardLayout from 'layouts/DashboardLayout';
import { makeStyles } from '@mui/styles';
import MDBox from 'components/MDBox';
import { Grid } from '@mui/material';
import WarehouseIcon from 'assets/images/WarehouseIcon';
import InventoryIcon from 'assets/images/InventoryIcon';
import ProfileCircleIcon from 'assets/images/ProfileCircleIcon';
import LabelIcon from 'assets/images/LabelIcon';
import { Link } from 'react-router-dom';
const useStyles = makeStyles({
iconSize: {
width: '50%',
height: '50%',
marginBottom: '10px'
},
margin: {
marginBottom: '20px'
},
centerContent: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'column',
marginLeft: '20px',
boxShadow: '0px 4px 24px rgba(0, 0, 0, 0.05)',
borderRadius: '8px',
marginBottom: '20px',
cursor: 'pointer !important',
'& svg': {
'&path': {
stroke: '#007AFF !important'
}
},
'&:hover': {
backgroundColor: '#007AFF',
cursor: 'default',
color: 'white',
'& svg': {
'& path': {
stroke: '#fff'
}
}
}
}
});
import TileBasic from 'components/TileBasic';
import Footer from 'components/Footer';
function SetupHome() {
const classes = useStyles();
const data = [
{
name: 'Warehouse',
path: '/warehouse',
icon: <WarehouseIcon className={classes.iconSize} color="blue" />
icon: <WarehouseIcon width={96} height={96} color="#007AFF" />
},
{
name: 'Inventory',
path: '/',
icon: <InventoryIcon className={classes.iconSize} color="blue" />
icon: <InventoryIcon width={96} height={96} color="#007AFF" />
},
{
name: 'User & Access',
path: '/',
icon: <ProfileCircleIcon className={classes.iconSize} color="blue" />
icon: <ProfileCircleIcon width={96} height={96} color="#007AFF" />
},
{
name: 'Labeling',
path: '/',
icon: <LabelIcon className={classes.iconSize} color="blue" />
path: '/labeling',
icon: <LabelIcon width={96} height={96} color="#007AFF" />
}
];
return (
<DashboardLayout>
<DashboardNavbar />
<MDBox px={2} py={3}>
<Grid container spacing={2}>
{data.map((items) => (
<>
<Grid item xs={12} sm={6} md={6}>
<Link to={items.path}>
<MDBox
key={items.name + items.path}
data={{ name: items.name, path: items.path }}
className={classes.centerContent}
sx={{
height: 230,
backgroundColor: ({ palette: { white } }) => white.main,
padding: '32px 40px'
}}
>
{items.icon}
{items.name}
</MDBox>
</Link>
</Grid>
</>
))}
</Grid>
</MDBox>
<TileBasic tiles={data} />
<Footer />
</DashboardLayout>
);
}