-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into buttons-refactoring
- Loading branch information
Showing
29 changed files
with
1,064 additions
and
70 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
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
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
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
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
import cx from 'classnames' | ||
import { Link, LinkProps } from 'react-router-dom' | ||
import * as React from 'react' | ||
import * as M from '@material-ui/core' | ||
|
||
const useStyles = M.makeStyles((t) => ({ | ||
root: { | ||
color: t.palette.text.primary, | ||
'&:hover $icon': { | ||
left: '2px', | ||
}, | ||
}, | ||
icon: { | ||
color: t.palette.primary.main, | ||
left: 0, | ||
position: 'relative', | ||
transition: 'ease 0.1s left', | ||
verticalAlign: 'middle', | ||
}, | ||
})) | ||
|
||
type ChevronLinkProps = M.LinkProps & Partial<LinkProps> | ||
|
||
export default function ChevronLink({ children, className, ...props }: ChevronLinkProps) { | ||
const classes = useStyles() | ||
return ( | ||
<M.Link | ||
className={cx(classes.root, className)} | ||
component={props.to ? Link : undefined} | ||
underline="none" | ||
{...props} | ||
> | ||
{children} | ||
<M.Icon className={classes.icon}>chevron_right</M.Icon> | ||
</M.Link> | ||
) | ||
} |
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,41 @@ | ||
import cx from 'classnames' | ||
import * as React from 'react' | ||
import * as M from '@material-ui/core' | ||
|
||
const useStyles = M.makeStyles((t) => ({ | ||
root: { | ||
background: 'linear-gradient(to right, #30266e, #1b194f)', | ||
color: t.palette.text.disabled, | ||
}, | ||
text: { | ||
padding: t.spacing(1, 0), | ||
textAlign: 'center', | ||
}, | ||
})) | ||
|
||
interface AttributionProps { | ||
className: string | ||
} | ||
|
||
export default function Attribution({ className }: AttributionProps) { | ||
const classes = useStyles() | ||
return ( | ||
<div className={cx(classes.root, className)}> | ||
<M.Container maxWidth="lg"> | ||
<M.Typography className={classes.text} variant="caption" component="p"> | ||
Icons used: “ | ||
<a href="https://thenounproject.com/icon/data-sharing-5406825/">Data Sharing</a> | ||
” by Candy Design “ | ||
<a href="https://thenounproject.com/icon/upload-database-322726/"> | ||
Upload Database | ||
</a> | ||
” by Smashicons “ | ||
<a href="https://thenounproject.com/icon/data-visualization-5039056/"> | ||
data visualization | ||
</a> | ||
” by SAM Designs from Noun Project | ||
</M.Typography> | ||
</M.Container> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.