Skip to content

Commit a1c335c

Browse files
committed
feat: added Education section
1 parent 578cc21 commit a1c335c

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

public/images/uwaterlooLogo.png

26.2 KB
Loading

src/components/Education.tsx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import { useMediaQuery } from '@/hooks/useMediaQuery'
2+
import { ArrowUpRight } from 'lucide-react'
3+
4+
export function Education() {
5+
const isDesktop = useMediaQuery('(min-width: 768px)')
6+
return (
7+
<section id="education" className="mb-12">
8+
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section font-bold mb-4">Education</h2>
9+
<div className="flex items-center">
10+
<div className="relative flex-grow md:pl-12">
11+
<div className={"bg-white aspect-square absolute left-[5px] rounded-lg"}>
12+
{/* // center the bullet : `top-1/2 transform -translate-y-1/2` */}
13+
<img
14+
src="/images/uwaterlooLogo.png"
15+
alt={`University of Waterloo logo`}
16+
width={isDesktop ? 80 : 45}
17+
height={isDesktop ? 80 : 45}
18+
className="rounded-md"
19+
/>
20+
</div>
21+
<div className={"pl-16 " + (isDesktop && "py-3")}>
22+
<div className="flex flex-col md:items-start justify-between sm:flex-row mb-2">
23+
<div>
24+
<a
25+
href="https://uwaterloo.ca/" target="_blank"
26+
rel="noopener noreferrer" aria-label={`Link to University of Waterloo`}
27+
>
28+
<h2 className="text-xl font-bold inline-flex items-center">
29+
University of Waterloo <ArrowUpRight className="w-4 h-4 md:w-5 md:h-5"/>
30+
</h2>
31+
</a>
32+
<h3 className="text-lg font-semibold">Bachelor of Mathematics, Computational Mathematics Major</h3>
33+
{(!isDesktop) && <h3 className="text-gray-600 font-typewriter dark:text-gray-400">Sept 2022 - Present</h3>}
34+
</div>
35+
{isDesktop && (<h3 className="text-gray-600 font-typewriter dark:text-gray-400">Sept 2022 - Present</h3>)}
36+
</div>
37+
</div>
38+
</div>
39+
</div>
40+
<p className="text-gray-700 dark:text-gray-300 mt-1 py-0">
41+
<a
42+
href="https://uwaterloo.ca/computational-mathematics/" target="_blank"
43+
rel="noopener noreferrer"className="inline-flex items-center"
44+
>
45+
Computational Mathematics <ArrowUpRight className="w-4 h-4 md:w-5 md:h-5"/>
46+
</a> is a interdisplinary major that combines Mathematics, Statistics, Optimization and Computer Science, offered by the Faculty of Mathematics.
47+
{/* TODO: Insert all courses using a recursive React component */}
48+
</p>
49+
</section>
50+
)
51+
}

0 commit comments

Comments
 (0)