diff --git a/src/components/BusinessCard.tsx b/src/components/BusinessCard.tsx index 02a8762f..3d3435cc 100644 --- a/src/components/BusinessCard.tsx +++ b/src/components/BusinessCard.tsx @@ -73,6 +73,8 @@ const BusinessCard: FunctionComponent = ({anchor, homePage}) => { const theme = useTheme() + const smDown = useMediaQuery(theme.breakpoints.down('sm')) + // const pageContext = useContext(PageContext) const [userBio, setUserBio] = React.useState() @@ -115,7 +117,7 @@ const BusinessCard: FunctionComponent = ({anchor, homePage}) => { => { return sanityClient .fetch( `*[ - [ + ([ title, careerTitle, introduction, @@ -488,20 +488,22 @@ const fullTextSearch = (textToSearch: string, pageId: string): Promise => { contentSummaryTitle, contentSummaryTexts, videoUrl, - ] match '*${textToSearch}*' && references('${pageId}')]{ + ] match '*${textToSearch}*') && references('${pageId}')]{ ..., "skillsUsed" : skillsUsed[]->, "skills" : skills[]->, + "skillsHighlighted": skillsHighlighted[]->, }`, // {searchText: textToSearch} ).then((data: any) => { + console.log("results from full text search", data, textToSearch, pageId) return data }) } const skillReferenceSearch = (skill: ResumeSkill, pageId: string): Promise => { return sanityClient .fetch( - `*[references($searchText)]{ + `*[references($searchText) && references('${pageId}')]{ ..., "skillsHighlighted": skillsHighlighted[]->, "skillsUsed" : skillsUsed[]->, @@ -521,6 +523,7 @@ const skillReferenceSearch = (skill: ResumeSkill, pageId: string): Promise return -1 }) + console.log("results from skills reference search", data, skill._id, pageId) return data }) diff --git a/src/components/logo/Logo.tsx b/src/components/logo/Logo.tsx index 22de31e0..b90b8114 100644 --- a/src/components/logo/Logo.tsx +++ b/src/components/logo/Logo.tsx @@ -41,7 +41,7 @@ interface LogoProps { const Logo: FunctionComponent = (props) => { const classes = useStyles({logoImageSrc: props.logoImageSrc, height: props.height}) -console.log(props.logoImageSrc && urlFor(props.logoImageSrc).height(props.height ?? 0).url()) + return !props.logoText ? 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 05564b51..729f6803 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 @@ -77,7 +77,7 @@ const ResumeBioSection: FunctionComponent = (props: IProps) => { backgroundSize: "cover", backgroundPosition: "top right", backgroundRepeat: "no-repeat", - minHeight: "350px" + minHeight: smDown?"500px":"450px" }}> diff --git a/src/components/templates/web-dev-site/WebDevHowItWorksStep.tsx b/src/components/templates/web-dev-site/WebDevHowItWorksStep.tsx index ac3bd9c2..8b305016 100644 --- a/src/components/templates/web-dev-site/WebDevHowItWorksStep.tsx +++ b/src/components/templates/web-dev-site/WebDevHowItWorksStep.tsx @@ -37,7 +37,7 @@ const WebDevHowItWorksStep: FunctionComponent = (props: IProps) => { {props.step.learnMoreText && props.step?.learnMoreText.length > 0 &&