import type { CSSProperties } from "react"; import { links } from "../lib/data"; type NavProps = { current: string }; // catatan: memakai biasa (bukan next/link) agar setiap halaman dimuat penuh // seperti situs multipage html, sehingga css tiap halaman tidak saling bocor // nav versi 1: inline css (dipakai index) const inlineNav: Record = { list: { display: "flex", flexWrap: "wrap", gap: "8px", listStyle: "none", margin: 0, padding: 0 }, link: { display: "inline-block", padding: "8px 16px", borderRadius: "999px", textDecoration: "none", fontWeight: 600, color: "#0f4c5c", background: "#e3eef0" }, active: { display: "inline-block", padding: "8px 16px", borderRadius: "999px", textDecoration: "none", fontWeight: 600, color: "#ffffff", background: "#0f4c5c" }, }; export function NavInline({ current }: NavProps) { return ( ); } // nav versi 2: external css (about, hobbies, contact) - kelas ada di public/styles.css export function NavExternal({ current }: NavProps) { return ( ); } // nav versi 3: tailwind css (gallery) export function NavTailwind({ current }: NavProps) { return ( ); }