From fce0ee2811a6f0ef68f8e5d981ca01aa1d14142b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Thu, 6 Aug 2026 16:19:58 +0300 Subject: [PATCH] Small changes --- index.html | 2 +- justfile | 4 ++++ package-lock.json | 48 --------------------------------------- src/App.jsx | 6 ++--- src/components/Navbar.jsx | 2 +- 5 files changed, 8 insertions(+), 54 deletions(-) diff --git a/index.html b/index.html index 97c7dab..8f3ffdb 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - kotisivu + Veikko Lintujärvi
diff --git a/justfile b/justfile index 8fcd11b..1b28837 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,7 @@ +[private] +default: + @just --list + dev: npm run dev diff --git a/package-lock.json b/package-lock.json index 892ecb0..0567ace 100644 --- a/package-lock.json +++ b/package-lock.json @@ -621,9 +621,6 @@ "cpu": [ "arm" ], - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -644,9 +641,6 @@ "cpu": [ "arm" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -667,9 +661,6 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -690,9 +681,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -711,9 +699,6 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -732,9 +717,6 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -901,9 +883,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -921,9 +900,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -941,9 +917,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -961,9 +934,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -979,9 +949,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -997,9 +964,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1922,9 +1886,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1946,9 +1907,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1968,9 +1926,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1990,9 +1945,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/src/App.jsx b/src/App.jsx index 9226a82..ebb2c77 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -22,7 +22,6 @@ export default function App() { const activeSection = useAtomValue(activeSectionState); const theme = useAtomValue(themeState); const [displayedSection, setDisplayedSection] = useState(activeSection); - const [isExiting, setIsExiting] = useState(false); const timerRef = useRef(null); useEffect(() => { @@ -35,14 +34,13 @@ export default function App() { useEffect(() => { if (activeSection === displayedSection) return; - setIsExiting(true); timerRef.current = setTimeout(() => { setDisplayedSection(activeSection); - setIsExiting(false); }, EXIT_DURATION); return () => clearTimeout(timerRef.current); - }, [activeSection]); + }, [activeSection, displayedSection]); + const isExiting = activeSection !== displayedSection; const Section = SECTIONS[displayedSection] ?? Hero; return ( diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index f97a44d..85c81e0 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -24,7 +24,7 @@ export default function Navbar() {