File tree Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useMediaQuery } from '@/hooks/useMediaQuery';
4
4
import { cn } from '@/lib/utils' ;
5
5
6
6
export function Education ( ) {
7
- const isDesktop = useMediaQuery ( '(min-width: 768px)' ) ;
7
+ const isTablet = useMediaQuery ( '(min-width: 768px)' ) ;
8
8
return (
9
9
< section id = "education" className = "mb-12" >
10
10
< BlurFade delay = { BLUR_FADE_DELAY * 7 } >
@@ -25,12 +25,12 @@ export function Education() {
25
25
< img
26
26
src = "/images/uwaterlooLogo.png"
27
27
alt = { 'University of Waterloo logo' }
28
- width = { isDesktop ? 80 : 45 }
29
- height = { isDesktop ? 80 : 45 }
28
+ width = { isTablet ? 80 : 45 }
29
+ height = { isTablet ? 80 : 45 }
30
30
className = "rounded-md"
31
31
/>
32
32
</ div >
33
- < div className = { 'pl-16 ' + ( isDesktop && 'py-3' ) } >
33
+ < div className = { 'pl-16 ' + ( isTablet && 'py-3' ) } >
34
34
< div className = "mb-2 flex flex-col justify-between sm:flex-row md:items-start" >
35
35
< div >
36
36
< LinkWithArrow
@@ -46,13 +46,13 @@ export function Education() {
46
46
< h3 className = "text-lg font-semibold" >
47
47
Bachelor of Mathematics, Computational Mathematics Major
48
48
</ h3 >
49
- { ! isDesktop && (
49
+ { ! isTablet && (
50
50
< h3 className = "font-typewriter text-gray-600 dark:text-gray-400" >
51
51
Sept 2022 - Present
52
52
</ h3 >
53
53
) }
54
54
</ div >
55
- { isDesktop && (
55
+ { isTablet && (
56
56
< h3 className = "font-typewriter text-gray-600 dark:text-gray-400" >
57
57
Sept 2022 - Present
58
58
</ h3 >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const Header = ({
32
32
email,
33
33
resumeFile,
34
34
} : HeaderProps ) => {
35
- const isDesktop = useMediaQuery ( '(min-width: 768px)' ) ;
35
+ const isTablet = useMediaQuery ( '(min-width: 768px)' ) ;
36
36
const [ copied , setCopiedId ] = useState < string > ( ) ;
37
37
useEffect ( ( ) => {
38
38
setTimeout ( ( ) => {
@@ -44,7 +44,7 @@ const Header = ({
44
44
< div className = "container mx-auto mb-10" >
45
45
< div className = "flex flex-col items-center justify-between md:flex-row" >
46
46
< BlurFade delay = { BLUR_FADE_DELAY } >
47
- { ! isDesktop && (
47
+ { ! isTablet && (
48
48
< div className = "mb-4 flex-shrink-0 md:mb-0 md:mr-8" >
49
49
< img
50
50
src = "/images/headshot.jpg"
@@ -145,7 +145,7 @@ const Header = ({
145
145
</ div >
146
146
</ div >
147
147
< BlurFade delay = { BLUR_FADE_DELAY } inView = { true } >
148
- { isDesktop && (
148
+ { isTablet && (
149
149
< div className = "flex-shrink-0" >
150
150
< img
151
151
src = "/images/headshot.jpg"
Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ export function ExperienceTile({
19
19
period,
20
20
responsibilities,
21
21
} : ExperienceTileProps ) {
22
- const isDesktop = useMediaQuery ( '(min-width: 768px)' ) ;
22
+ const isTablet = useMediaQuery ( '(min-width: 768px)' ) ;
23
23
return (
24
24
< div
25
25
className = {
26
- ( ! ( responsibilities && responsibilities . length > 0 ) && ! isDesktop ? '-mb-6' : 'mb-6' ) +
26
+ ( ! ( responsibilities && responsibilities . length > 0 ) && ! isTablet ? '-mb-6' : 'mb-6' ) +
27
27
' ' +
28
28
'flex items-center'
29
29
}
30
30
>
31
31
< div className = "group relative flex-grow lg:-ml-[132px] xl:-ml-40 2xl:-ml-52" >
32
- { isDesktop && (
32
+ { isTablet && (
33
33
< div className = "opacity-0 transition-opacity delay-100 md:group-hover:opacity-100" >
34
34
< div className = "absolute top-1/2 aspect-square -translate-y-1/2 transform rounded-lg bg-white" >
35
35
{ /* // center the bullet : `top-1/2 transform -translate-y-1/2` */ }
@@ -55,11 +55,11 @@ export function ExperienceTile({
55
55
>
56
56
< h3 className = "text-lg font-semibold" > { companyName } </ h3 >
57
57
</ LinkWithArrow >
58
- { ! isDesktop && (
58
+ { ! isTablet && (
59
59
< h3 className = "font-typewriter text-gray-600 dark:text-gray-400" > { period } </ h3 >
60
60
) }
61
61
</ div >
62
- { isDesktop && (
62
+ { isTablet && (
63
63
< h3 className = "font-typewriter text-gray-600 dark:text-gray-400" > { period } </ h3 >
64
64
) }
65
65
</ div >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function ProjectTile({
29
29
liveUrl,
30
30
techStack,
31
31
} : ProjectTileProps ) {
32
- // const isDesktop = useMediaQuery('(min-width: 768px)')
32
+ // const isTablet = useMediaQuery('(min-width: 768px)')
33
33
return (
34
34
< div className = "items-center" >
35
35
< div className = "mb-2 flex flex-col justify-between sm:flex-row md:items-start" >
You can’t perform that action at this time.
0 commit comments