({
- root: {
- display: 'flex',
- flexWrap: 'wrap',
+// const useStyles = makeStyles(() => ({
+// root: {
+// display: 'flex',
+// flexWrap: 'wrap',
+// },
+// }));
+
+const ImageButton = styled(ButtonBase)(({ theme }) => ({
+ position: 'relative',
+ height: 200,
+ [theme.breakpoints.down('sm')]: {
+ width: '100% !important', // Overrides inline-style
+ height: 100,
},
- image: {
- position: 'relative',
- height: 150,
- [theme.breakpoints.down('xs')]: {
- // width: '100% !important', // Overrides inline-style
- height: 100,
+ '&:hover, &.Mui-focusVisible': {
+ zIndex: 1,
+ '& .MuiImageBackdrop-root': {
+ opacity: 0.15,
},
- '&:hover, &$focusVisible': {
- zIndex: 1,
- '& $imageBackdrop': {
- opacity: 0.1,
- },
- '& $imageMarked': {
- opacity: 0,
- },
- '& $imageTitle': {
- border: '3px solid currentColor',
- },
+ '& .MuiImageMarked-root': {
+ opacity: 0,
+ },
+ '& .MuiTypography-root': {
+ border: '4px solid currentColor',
},
},
- focusVisible: {},
- imageButton: {
- position: 'absolute',
- left: 0,
- right: 0,
- top: 0,
- bottom: 0,
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center',
- color: theme.palette.common.white,
- },
- imageSrc: {
- position: 'absolute',
- left: 0,
- right: 0,
- top: 0,
- bottom: 0,
- backgroundSize: 'cover',
- backgroundPosition: 'center 40%',
- },
- imageBackdrop: {
- position: 'absolute',
- left: 0,
- right: 0,
- top: 0,
- bottom: 0,
- backgroundColor: theme.palette.common.black,
- opacity: 0.3,
- transition: theme.transitions.create('opacity'),
- },
- imageTitle: {
- position: 'relative',
- padding: `${theme.spacing(2)}px ${theme.spacing(3)}px ${theme.spacing(1) + 4}px`,
- },
- imageMarked: {
- height: 3,
- width: 18,
- backgroundColor: theme.palette.common.white,
- position: 'absolute',
- bottom: 5,
- left: 'calc(50% - 9px)',
- transition: theme.transitions.create('opacity'),
- },
+}));
+
+const ImageSrc = styled('span')({
+ position: 'absolute',
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0,
+ backgroundSize: 'cover',
+ backgroundPosition: 'center 40%',
+});
+
+const Image = styled('span')(({ theme }) => ({
+ position: 'absolute',
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0,
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ color: theme.palette.common.white,
+}));
+
+const ImageBackdrop = styled('span')(({ theme }) => ({
+ position: 'absolute',
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0,
+ backgroundColor: theme.palette.common.black,
+ opacity: 0.4,
+ transition: theme.transitions.create('opacity'),
+}));
+
+const ImageMarked = styled('span')(({ theme }) => ({
+ height: 3,
+ width: 18,
+ backgroundColor: theme.palette.common.white,
+ position: 'absolute',
+ bottom: -2,
+ left: 'calc(50% - 9px)',
+ transition: theme.transitions.create('opacity'),
}));
export default function LevelButton(props) {
- const classes = useStyles();
+ // const classes = useStyles();
return (
-
-
+ //
+ //
+ //
+ //
+ //
+ // {props.title}
+ //
+ //
+ //
+ //
+ //
+ //
+
+
-
+
+
+ `calc(${theme.spacing(1)} + 6px)`,
}}
- />
-
-
-
- {props.title}
-
-
-
-
-
+ >
+ {props.title}
+
+
+
+
+ //