From b116d801a262a0e3d411921e6ec2d3693b1d82ba Mon Sep 17 00:00:00 2001 From: "Mr. Singleton" Date: Wed, 6 Dec 2023 17:08:44 -0500 Subject: [PATCH] remove physical address from resume bio and style portfolio entries --- .../mackenzies-mind/header/FullTextSearch.tsx | 1 + .../resume-bio-section/ResumeBioSection.tsx | 12 ++++---- .../ResumeEducationSection.tsx | 4 +-- .../ResumeExperienceItem.tsx | 6 +--- .../PortfolioItemModal.tsx | 29 +++++++++++++------ .../ResumePortfolioEntry.tsx | 22 +++++++++----- .../ResumePortfolioSection.tsx | 4 +-- 7 files changed, 46 insertions(+), 32 deletions(-) diff --git a/src/components/templates/mackenzies-mind/header/FullTextSearch.tsx b/src/components/templates/mackenzies-mind/header/FullTextSearch.tsx index f9e71be9..2db23102 100644 --- a/src/components/templates/mackenzies-mind/header/FullTextSearch.tsx +++ b/src/components/templates/mackenzies-mind/header/FullTextSearch.tsx @@ -47,6 +47,7 @@ export const useStyles = makeStyles((theme: Theme) => ({ })) interface IProps { + searchText?:string } const FullTextSearch: FunctionComponent = (props: IProps) => { diff --git a/src/components/templates/my-digital-resume/resume-bio-section/ResumeBioSection.tsx b/src/components/templates/my-digital-resume/resume-bio-section/ResumeBioSection.tsx index b4edc254..c5b626ac 100644 --- a/src/components/templates/my-digital-resume/resume-bio-section/ResumeBioSection.tsx +++ b/src/components/templates/my-digital-resume/resume-bio-section/ResumeBioSection.tsx @@ -54,12 +54,12 @@ const ResumeBioSection: FunctionComponent = (props: IProps) => { {props.homePage.businessContact?.email} - - MAIL - {props.homePage.businessContact?.address} - + {/**/} + {/* MAIL*/} + {/* {props.homePage.businessContact?.address}*/} + {/**/} = (props: IProps) => { {experience.dateStart?.toString().replaceAll('-', '.')} - + }}>—:<>} {experience.dateEnd?.toString().replaceAll('-', '.')} diff --git a/src/components/templates/my-digital-resume/resume-experience-section/ResumeExperienceItem.tsx b/src/components/templates/my-digital-resume/resume-experience-section/ResumeExperienceItem.tsx index b8c59593..84072abd 100644 --- a/src/components/templates/my-digital-resume/resume-experience-section/ResumeExperienceItem.tsx +++ b/src/components/templates/my-digital-resume/resume-experience-section/ResumeExperienceItem.tsx @@ -17,13 +17,9 @@ experience: ResumeExperience } const ResumeExperienceItem: FunctionComponent = (props:IProps) => { - const classes = useStyles() const theme = useTheme() - React.useEffect(()=>{ - }, []) - return ( = (props:IProps) => { style={{overflowX: "scroll", paddingBottom: theme.spacing(1)}} wrap='nowrap'> { props.experience.skillsUsed?.map((skill, index) => { - console.log(skill) + // console.log(skill) return diff --git a/src/components/templates/my-digital-resume/resume-portfolio-section/PortfolioItemModal.tsx b/src/components/templates/my-digital-resume/resume-portfolio-section/PortfolioItemModal.tsx index 8cf6232b..f347fca6 100644 --- a/src/components/templates/my-digital-resume/resume-portfolio-section/PortfolioItemModal.tsx +++ b/src/components/templates/my-digital-resume/resume-portfolio-section/PortfolioItemModal.tsx @@ -6,9 +6,14 @@ import {Button, ButtonGroup, Chip, Grid, IconButton, Modal, Typography, useTheme import {Close} from "@mui/icons-material"; import {urlFor} from "../../../block-content-ui/static-pages/cmsStaticPagesClient"; import {ResumePortfolioItem} from "../../../BlockContentTypes"; +import {COLORS} from "../../../../theme/common/ColorPalette"; export const useStyles = makeStyles((theme: Theme) => ({ - root: {}, + hover: { + "&:hover":{ + backgroundColor: "whitesmoke" + } + } })) interface IProps { @@ -19,12 +24,14 @@ interface IProps { const PortfolioItemModal: FunctionComponent = (props: IProps) => { const theme = useTheme() + const classes = useStyles() + const [isOpen, setIsOpen] = React.useState(false) const setOpenWrapper = (theValue:boolean)=>{ setIsOpen(theValue) - props.setIsOpen(theValue) + // props.setIsOpen(theValue) } React.useEffect(() => { @@ -33,19 +40,23 @@ const PortfolioItemModal: FunctionComponent = (props: IProps) => { // } }, [props.isOpen]) - return ( setIsOpen(false)}> + return ( setIsOpen(false)} sx={{paddingBottom: 4, overflow:"scroll"}}> + style={{ position: "relative"}}> + setIsOpen(false)} size="large"> {props.currentItem?.detailTitle} @@ -53,7 +64,7 @@ const PortfolioItemModal: FunctionComponent = (props: IProps) => { {props.currentItem?.detailDescription} - {props.currentItem?.skillsHighlighted?.map((skill) => ( + {props.currentItem?.skillsHighlighted?.map((skill, index) => ( ))} diff --git a/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioEntry.tsx b/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioEntry.tsx index 89cc85c9..34a02770 100644 --- a/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioEntry.tsx +++ b/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioEntry.tsx @@ -2,11 +2,12 @@ import React, {FunctionComponent} from 'react' import makeStyles from "@mui/styles/makeStyles"; import { Theme} from "@mui/material/styles"; -import {Button, Grid, Typography, useTheme} from "@mui/material"; +import {Button, Card, Grid, Typography, useTheme} from "@mui/material"; import {urlFor} from "../../../block-content-ui/static-pages/cmsStaticPagesClient"; import dateUtils from "../../../../utils/dateUtils"; import {ResumePortfolioItem} from "../../../BlockContentTypes"; import PortfolioItemModal from "./PortfolioItemModal"; +import {COLORS} from "../../../../theme/common/ColorPalette"; export const useStyles = makeStyles((theme: Theme) => ({ root: { @@ -30,38 +31,43 @@ const ResumePortfolioEntry: FunctionComponent = (props:IProps) => { // style={{backgroundColor: index2 % 2 === 1 ? "whitesmoke" : "white"}} container item xs={12} sm={6} lg={4} xl={4} alignContent='flex-start' justifyContent='center'> - {setIsOpen(val)}}/> -) + ) } export default ResumePortfolioEntry \ No newline at end of file diff --git a/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioSection.tsx b/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioSection.tsx index ee7b9950..9e95255e 100644 --- a/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioSection.tsx +++ b/src/components/templates/my-digital-resume/resume-portfolio-section/ResumePortfolioSection.tsx @@ -48,10 +48,10 @@ const ResumePortfolioSection: FunctionComponent = (props: IProps) => { {props.sectionData.introduction} - + { props.sectionData.portfolioEntries?.map((portfolioItem: ResumePortfolioItem, index2: number) => { - return + return }) }