diff --git a/src/components/Education.tsx b/src/components/Education.tsx index 0965c58..e80cda0 100644 --- a/src/components/Education.tsx +++ b/src/components/Education.tsx @@ -4,7 +4,7 @@ import { useMediaQuery } from '@/hooks/useMediaQuery'; import { cn } from '@/lib/utils'; export function Education() { - const isDesktop = useMediaQuery('(min-width: 768px)'); + const isTablet = useMediaQuery('(min-width: 768px)'); return (
@@ -25,12 +25,12 @@ export function Education() { {'University -
+
Bachelor of Mathematics, Computational Mathematics Major - {!isDesktop && ( + {!isTablet && (

Sept 2022 - Present

)}
- {isDesktop && ( + {isTablet && (

Sept 2022 - Present

diff --git a/src/components/Header.tsx b/src/components/Header.tsx index d8e674a..d200736 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -32,7 +32,7 @@ const Header = ({ email, resumeFile, }: HeaderProps) => { - const isDesktop = useMediaQuery('(min-width: 768px)'); + const isTablet = useMediaQuery('(min-width: 768px)'); const [copied, setCopiedId] = useState(); useEffect(() => { setTimeout(() => { @@ -44,7 +44,7 @@ const Header = ({
- {!isDesktop && ( + {!isTablet && (
- {isDesktop && ( + {isTablet && (
0) && !isDesktop ? '-mb-6' : 'mb-6') + - ' ' + - 'flex items-center' - } - > -
-
- {/* // center the bullet : `top-1/2 transform -translate-y-1/2` */} - {`${companyName} -
-
-
+
+
+ {isTablet && ( +
+
+ {/* // center the bullet : `top-1/2 transform -translate-y-1/2` */} + {`${companyName} +
+
+ )} +
+

{position}

{companyName}

- {!isDesktop && ( + {!isTablet && (

{period}

)}
- {isDesktop && ( + {isTablet && (

{period}

)}
{responsibilities && responsibilities.length > 0 && ( -
-
    +
    +
      {responsibilities.map((responsibility, index) => ( -
    • - {responsibility}
    • +
    • {responsibility}
    • ))}
    diff --git a/src/components/Tiles/ProjectTile.tsx b/src/components/Tiles/ProjectTile.tsx index d3e85dc..395b187 100644 --- a/src/components/Tiles/ProjectTile.tsx +++ b/src/components/Tiles/ProjectTile.tsx @@ -29,7 +29,7 @@ export function ProjectTile({ liveUrl, techStack, }: ProjectTileProps) { - // const isDesktop = useMediaQuery('(min-width: 768px)') + // const isTablet = useMediaQuery('(min-width: 768px)') return (