Skip to content

Commit

Permalink
responsive padding on resume sections
Browse files Browse the repository at this point in the history
  • Loading branch information
tmanundercover committed Dec 6, 2023
1 parent f7ce737 commit 438d79c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ResumeBioSection: FunctionComponent<IProps> = (props: IProps) => {
const smDown = useMediaQuery(theme.breakpoints.down('sm'))

return (
<Grid container item style={{padding: theme.spacing(4)}} justifyContent='center'
<Grid container item style={{padding: theme.spacing(4,smDown?1:4)}} justifyContent='center'
className={classes.resumeSection} spacing={3}>
<Grid item xs={12} style={{paddingTop: "64px"}}>
<BusinessCardSubmitEmail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ const ResumeEducationSection: FunctionComponent<IProps> = (props: IProps) => {


const xsOnly = useMediaQuery(theme.breakpoints.only('xs'))
const smDown = useMediaQuery(theme.breakpoints.down('sm'))

return (
<Grid container item style={{padding: theme.spacing(4)}} className={globalClasses.resumeSection}>
<Grid container item style={{padding: theme.spacing(4,smDown?1:4)}} className={globalClasses.resumeSection}>
<Grid
container item spacing={3}>
<Grid item container md={4} alignContent='flex-start' spacing={1}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ const ResumeExperienceSection: FunctionComponent<IProps> = (props: IProps) => {
const classes = useThwCommonStyles()
const theme = useTheme()

const smDown = useMediaQuery(theme.breakpoints.down('sm'))

const xsOnly = useMediaQuery(theme.breakpoints.only('xs'))
return (
<Grid
container
item
style={{
padding: theme.spacing(4)
}}
style={{padding: theme.spacing(4,smDown?1:4)}}
className={classes.resumeSection}
>
<Grid container item spacing={3}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@ interface IProps {

const ResumeFeedbackSection: FunctionComponent<IProps> = (props: IProps) => {
const globalClasses = useThwCommonStyles()
// const theme = useTheme()
const theme = useTheme()

const customizedThemeContext = useTheme()
const smDown = useMediaQuery(theme.breakpoints.down('sm'))

const xsOnly = useMediaQuery(customizedThemeContext.breakpoints.only('xs'))
return (
<Grid
container
item
style={{
padding: customizedThemeContext
.spacing(4)
}}
style={{padding: theme.spacing(4,smDown?1:4)}}
className={globalClasses.resumeSection}
>
<Grid container item spacing={3}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {FunctionComponent} from 'react'
import {Button, ButtonGroup, Chip, Grid, IconButton, Modal, Typography, useTheme} from '@mui/material'
import {Button, ButtonGroup, Chip, Grid, IconButton, Modal, Typography, useMediaQuery, useTheme} from '@mui/material'
import {ResumePortfolioItem, ResumePortfolioSectionType} from "../../../BlockContentTypes";
import useThwCommonStyles from "../../../../common/sanityIo/ThwCommonStyles";
import {urlFor} from "../../../block-content-ui/static-pages/cmsStaticPagesClient";
Expand All @@ -25,9 +25,11 @@ const ResumePortfolioSection: FunctionComponent<IProps> = (props: IProps) => {
//
// setIsOpen(true)
// }
const smDown = useMediaQuery(theme.breakpoints.down('sm'))


return (
<Grid container item style={{padding: theme.spacing(4)}}
<Grid container item style={{padding: theme.spacing(4,smDown?1:4)}}
className={globalClasses.resumeSection} justifyContent={'center'}>
<Grid
container item spacing={3} justifyContent='center'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {FunctionComponent, useContext} from 'react'
import {Theme, ThemeProvider, useTheme} from "@mui/material/styles";
import makeStyles from '@mui/styles/makeStyles';
import {Grid, Typography} from '@mui/material'
import {Grid, Typography, useMediaQuery} from '@mui/material'
import {ResumeSkillSectionType, ResumeSkillSet} from "../../../BlockContentTypes";
import useThwCommonStyles from "../../../../common/sanityIo/ThwCommonStyles";
import {COLORS} from "../../../../theme/common/ColorPalette";
Expand All @@ -20,16 +20,15 @@ interface IProps {
const ResumeSkillsSection: FunctionComponent<IProps> = (props: IProps) => {
// const classes = useStyles()
const globalClasses = useThwCommonStyles()
const theme = useTheme()

const smDown = useMediaQuery(theme.breakpoints.down('sm'))

const theme = useTheme()
return (
<Grid
container
item
style={{
padding: theme.spacing(4)
}}
style={{padding: theme.spacing(4,smDown?1:4)}}
className={globalClasses.resumeSection}
>
<Grid container item spacing={3}>
Expand Down

0 comments on commit 438d79c

Please sign in to comment.