Skip to content

Commit 59c5dd9

Browse files
committed
feat: added highlighting strings to website
1 parent fbc792a commit 59c5dd9

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ across_colors:
1414
- `text-blue-violet-500`
1515

1616
## to-do:
17-
- [ ] check out about highlighting words
17+
- [x] check out about highlighting words
18+
- [ ] add highlighting feature in experience, projects section
1819
- [ ] YAML file parser for experience, projects
1920
- [x] skills, education section
2021
- [x] projects in one column, instead of cards

src/components/About.tsx

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,49 @@
11
import { ArrowUpRight } from "lucide-react"
22

3+
function Highlight(text: string, color = "yellow") {
4+
var colorClassName: string = "bg-opacity-50 px-1 rounded ";
5+
if (color === "yellow") {
6+
colorClassName = colorClassName + "bg-[#ffff77]"
7+
}
8+
if (color === "cyan") {
9+
colorClassName = colorClassName + "bg-cyan-300 dark:bg-cyan-500/30"
10+
}
11+
if (color === "pink") {
12+
colorClassName = colorClassName + "bg-[#ff77e4]"
13+
}
14+
if (color === "slate-blue") {
15+
colorClassName = colorClassName + "bg-[#7777ff]"
16+
}
17+
if (color === "red") {
18+
colorClassName = colorClassName + "bg-[#ff7777]"
19+
}
20+
return (
21+
<span className={colorClassName}>{text}</span>
22+
)
23+
}
24+
325
const About = () => {
426
return (
527
<section id="about" className="mb-12">
628
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section mb-4">About</h2>
729
<p className="text-gray-700 dark:text-gray-300">
8-
I am a junior at the University of Waterloo, pursuing a major in Computational Mathematics.
9-
With a passion for technology and innovation, I am constantly exploring new
10-
areas in software development and artificial intelligence.
11-
I am eager to work in areas that leverage the combined potential of machine learning and
30+
I am a {Highlight("junior")} at the {Highlight("University of Waterloo")}, pursuing a major in {Highlight("Computational Mathematics")}.
31+
With a {Highlight(`passion for technology and innovation`)}, I am constantly exploring new
32+
areas in {Highlight(`software development`)} and {Highlight(`artificial intelligence`)}.
33+
I am eager to work in areas that leverage the combined potential of {Highlight(`machine learning`)} and
1234
software development, regardless of traditional boundaries. <br></br>
1335
Outside of academics and professional career, I enjoy contributing to open-source projects, working on side projects, participating in hackathons and playing
1436
table tennis, football, cricket and badminton. I also like to travel & explore new places, cuisines & restaurants.<br></br>
15-
You can find me re-watching any one of these TV series:
16-
Suits,
17-
The Office,
18-
Brooklyn 9-9,
19-
How I Met Your Mother,
20-
The Big Bang Theory,
21-
South Park,
22-
Impractical Jokers.
37+
You can find me {Highlight(`re-watching`, "pink")} any one of these TV series:
38+
{Highlight(`Suits`, "pink")},
39+
{Highlight(`The Office`, "pink")},
40+
{Highlight(`Brooklyn 9-9`, "pink")},
41+
{Highlight(`How I Met Your Mother`, "pink")},
42+
{Highlight(`The Big Bang Theory`, "pink")},
43+
{Highlight(`South Park`, "pink")},
44+
{Highlight(`Impractical Jokers`, "pink")}.
2345
<br></br>
24-
For those of you curious, the favicon is a <span className="underline underline-offset-2">4-hypercube graph</span> made via Python, using NetworkX and Matplotlib.
46+
For those of you curious, the favicon is a {Highlight("4-hypercube graph", "cyan")} made via Python, using NetworkX and Matplotlib.
2547
Check the <a
2648
href="/icon.ico" target="_blank"
2749
className="inline-flex items-center hover:underline hover:underline-offset-2 text-orange-500"

0 commit comments

Comments
 (0)