diff --git a/src/App.tsx b/src/App.tsx
index d0fc5f7..126fb46 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -19,10 +19,21 @@ export default function App() {
entries.forEach((entry) => {
if (entry.isIntersecting) {
window.location.hash = entry.target.id;
+ entry.target.classList.add("active");
+
+ Array.from(entry.target.children).forEach((child) => {
+ child.classList.add("active");
+ });
+ } else {
+ entry.target.classList.remove("active");
+
+ Array.from(entry.target.children).forEach((child) => {
+ child.classList.remove("active");
+ });
}
});
},
- { threshold: 0.5 }
+ { threshold: 0.2 }
);
if (aboutRef.current) {
diff --git a/src/sections/Projects.tsx b/src/sections/Projects.tsx
index 41a0ed3..368bc5f 100644
--- a/src/sections/Projects.tsx
+++ b/src/sections/Projects.tsx
@@ -54,17 +54,17 @@ export default function Projects() {
name="Website"
description="This website"
link="https://github.com/DerTyp7?tab=repositories"
- />{" "}
+ />
{" "}
+ />
{" "}
+ />