changed layout, cleanup

This commit is contained in:
2023-01-06 19:02:19 +01:00
parent 7a2df7fe14
commit 23b2ee0446
11 changed files with 76 additions and 106 deletions
+5 -14
View File
@@ -11,17 +11,13 @@ import { useTheme } from '@mui/material/styles';
import { Tilt } from './Tilt';
// import { VioletColorWheel, SeaGreenCrayola } from 'themes/Colors';
const MainCard = ({ imageURL, title, description, url }) => {
const theme = useTheme();
// const shadowColor =
// theme.palette.mode === 'dark' ? SeaGreenCrayola : VioletColorWheel;
const options = {
reverse: true,
speed: 1200,
easing: 'cubic-bezier(.09,.67,.54,.76)'
// reset: false,
easing: 'cubic-bezier(.09,.67,.54,.76)',
};
return (
@@ -35,10 +31,6 @@ const MainCard = ({ imageURL, title, description, url }) => {
mx: 'auto',
color: theme.palette.text.secondary,
backgroundColor: theme.palette.background.paper,
// '&:hover': {
// transition: 'all .7s ease',
// boxShadow: `1px 1px 20px 10px ${shadowColor}`,
// },
}}>
<CardMedia
component='img'
@@ -46,6 +38,9 @@ const MainCard = ({ imageURL, title, description, url }) => {
image={imageURL}
alt={title}
/>
{{ description } !== '' && (
<Typography variant='body2'>{description}</Typography>
)}
<CardActionArea>
<CardContent
color='white'
@@ -53,10 +48,6 @@ const MainCard = ({ imageURL, title, description, url }) => {
<Typography gutterBottom variant='h6' component='div'>
{title}
</Typography>
<Typography></Typography>
{{ description } !== '' && (
<Typography variant='body2'>{description}</Typography>
)}
</CardContent>
</CardActionArea>
</Card>