From 732b615bc20875098edfda43fff83f599ce49ccb Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Wed, 29 Apr 2026 15:48:38 +0200 Subject: [PATCH] Move GitHub badge to navbar next to JP. logo (ST-002.1) Co-Authored-By: Claude Sonnet 4.6 --- components/hero.tsx | 20 ----------------- components/nav.tsx | 55 ++++++++++++++++++++++++++++++++++++--------- 2 files changed, 44 insertions(+), 31 deletions(-) diff --git a/components/hero.tsx b/components/hero.tsx index 2b689a5..9384b8f 100644 --- a/components/hero.tsx +++ b/components/hero.tsx @@ -153,26 +153,6 @@ export function Hero({ lang }: { lang: Lang }) { > Apps - - GitHub - GitHub - diff --git a/components/nav.tsx b/components/nav.tsx index 661f2cd..e549da1 100644 --- a/components/nav.tsx +++ b/components/nav.tsx @@ -2,8 +2,15 @@ import { useState, useEffect } from "react"; import Link from "next/link"; +import Image from "next/image"; import { getCvData, type Lang } from "@/lib/cv-data"; +const FLAGS = "https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3"; +const LANG_FLAGS: Record = { + nl: `${FLAGS}/nl.svg`, + en: `${FLAGS}/gb.svg`, +}; + export function Nav({ lang }: { lang: Lang }) { const [active, setActive] = useState("over"); const [scrolled, setScrolled] = useState(false); @@ -46,12 +53,30 @@ export function Nav({ lang }: { lang: Lang }) { height: 64, }} > - - JP. - +
+ + JP. + + + GitHub + +
{navItems.map(({ label, id }) => ( @@ -74,16 +99,20 @@ export function Nav({ lang }: { lang: Lang }) { {/* Language switcher */}
- {lang.toUpperCase()} + + {lang} + {lang.toUpperCase()} + / + {otherLang} {otherLang.toUpperCase()}
@@ -133,13 +162,17 @@ export function Nav({ lang }: { lang: Lang }) { ))}
- {lang.toUpperCase()} + + {lang} + {lang.toUpperCase()} + / + {otherLang} {otherLang.toUpperCase()}