forked from ordercloud-api/oc-documentation
-
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.
ordercloud-api#173: Responsive Guide Graphics
- Loading branch information
Showing
2 changed files
with
125 additions
and
2 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
121 changes: 121 additions & 0 deletions
121
src/components/Shared/GuidesImages/OrganizationHierarchy1.tsx
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,121 @@ | ||
import React from 'react' | ||
import { | ||
makeStyles, | ||
Theme, | ||
createStyles, | ||
Grid, | ||
Paper, | ||
Chip, | ||
} from '@material-ui/core' | ||
import BusinessIcon from '@material-ui/icons/Business' | ||
import UserIcon from '@material-ui/icons/VerifiedUser' | ||
import { blackpearl, sherpablue } from '../../../theme/ocPalette.constants' | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
margin: theme.spacing(8, 0, 16, 0), | ||
flexGrow: 1, | ||
padding: theme.spacing(6, 3), | ||
backgroundColor: sherpablue[50], | ||
position: 'relative', | ||
}, | ||
chip: { | ||
padding: theme.spacing(2, 1), | ||
borderRadius: theme.spacing(7), | ||
position: 'absolute', | ||
top: theme.spacing(-2), | ||
width: 'max-content', | ||
}, | ||
chipUser: { | ||
padding: theme.spacing(2, 1), | ||
borderRadius: theme.spacing(7), | ||
}, | ||
chipLabel: { | ||
fontFamily: theme.typography.h1.fontFamily, | ||
fontSize: theme.typography.h5.fontSize, | ||
textTransform: 'uppercase', | ||
letterSpacing: 2, | ||
paddingTop: 2, | ||
}, | ||
userGroup: { | ||
position: 'relative', | ||
padding: theme.spacing(6, 3), | ||
backgroundColor: sherpablue[100], | ||
}, | ||
ContainerChip: { | ||
position: 'relative', | ||
}, | ||
paper: { | ||
padding: theme.spacing(2), | ||
textAlign: 'center', | ||
color: theme.palette.text.secondary, | ||
backgroundColor: 'transparent', | ||
}, | ||
}) | ||
) | ||
|
||
const OrgHierarchyImage1: React.FunctionComponent = () => { | ||
const classes = useStyles({}) | ||
return ( | ||
<Paper className={classes.root}> | ||
<Chip | ||
color="primary" | ||
classes={{ | ||
label: classes.chipLabel, | ||
}} | ||
className={classes.chip} | ||
icon={<BusinessIcon />} | ||
label="Company" | ||
/> | ||
<Paper className={classes.userGroup}> | ||
<Chip | ||
color="primary" | ||
classes={{ | ||
label: classes.chipLabel, | ||
}} | ||
className={classes.chip} | ||
icon={<BusinessIcon />} | ||
label="User Group" | ||
/> | ||
<Grid container spacing={3}> | ||
<Grid item sm className={classes.ContainerChip}> | ||
<Chip | ||
color="primary" | ||
classes={{ | ||
label: classes.chipLabel, | ||
}} | ||
className={classes.chipUser} | ||
icon={<UserIcon />} | ||
label="User" | ||
/> | ||
</Grid> | ||
<Grid item sm className={classes.ContainerChip}> | ||
<Chip | ||
color="primary" | ||
classes={{ | ||
label: classes.chipLabel, | ||
}} | ||
className={classes.chipUser} | ||
icon={<UserIcon />} | ||
label="User" | ||
/> | ||
</Grid> | ||
<Grid item sm className={classes.ContainerChip}> | ||
<Chip | ||
color="primary" | ||
classes={{ | ||
label: classes.chipLabel, | ||
}} | ||
className={classes.chipUser} | ||
icon={<UserIcon />} | ||
label="User" | ||
/> | ||
</Grid> | ||
</Grid> | ||
</Paper> | ||
</Paper> | ||
) | ||
} | ||
|
||
export default OrgHierarchyImage1 |