Skip to content

Commit

Permalink
Merge pull request #55 from r-argentina-programa/fix/responsive-bug
Browse files Browse the repository at this point in the history
repara bug responsive en los testimonios r/argetina programa
  • Loading branch information
SebastianCarballo authored Sep 3, 2024
2 parents 8952b12 + 4a6e184 commit 86fdfda
Showing 1 changed file with 38 additions and 31 deletions.
69 changes: 38 additions & 31 deletions src/components/Testimonios.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,65 +15,72 @@ const useStyles = makeStyles((theme) => ({
textAlign: 'center',
},
title: {
marginBottom: 32,
marginBottom: theme.spacing(4),
},
testimonios: {
display: 'flex',
justifyContent: 'center',
flexWrap: 'wrap',
'& > *': {
margin: theme.spacing(1),
},
gap: theme.spacing(2),
},
testimonio: {
width: theme.spacing(50),
[theme.breakpoints.down('sm')]: {
width: theme.spacing(40),
},
[theme.breakpoints.down('xs')]: {
width: '100%',
},
[theme.breakpoints.down(321)]: {
width: theme.spacing(30),
},
},
openTestimony: {
testimonioContent: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
textAlign: 'center',
padding: theme.spacing(2),
},
testimonioNombre: {
marginBottom: theme.spacing(1),
fontWeight: 'bold',
},
testimonioInfo: {
marginBottom: theme.spacing(1),
},
testimonioPuesto: {
fontWeight: 'bold',
},
openTestimony: {
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
backgroundColor: theme.palette.background.paper,
boxShadow: theme.shadows[5],
padding: theme.spacing(2),
padding: theme.spacing(4),
width: '80%',
maxHeight: '80%',
overflow: 'auto',
[theme.breakpoints.down('xs')]: {
width: '100%',
height: '100%',
padding: theme.spacing(1, 2, 2),
},
'& > *': {
boxSizing: 'border-box',
display: 'flex',
flexDirection: 'column',
width: theme.spacing(100),
maxHeight: theme.spacing(75),
[theme.breakpoints.down('md')]: {
width: theme.spacing(90),
maxHeight: theme.spacing(50),
},
[theme.breakpoints.down('sm')]: {
width: theme.spacing(60),
},
[theme.breakpoints.down('xs')]: {
width: '100%',
maxHeight: '100%',
},
padding: theme.spacing(2),
},
},
openTestimonyBody: {
marginTop: theme.spacing(4),
overflow: 'auto',
flexGrow: 1,
openTestimonyTitle: {
marginBottom: theme.spacing(2),
fontWeight: 'bold',
},
openTestimonyLine: {
textAlign: 'left',
marginBottom: theme.spacing(2),
},
closeIcon: {
position: 'absolute',
top: theme.spacing(1),
right: theme.spacing(1),
top: theme.spacing(2),
right: theme.spacing(2),
cursor: 'pointer',
},
}));
Expand Down

0 comments on commit 86fdfda

Please sign in to comment.