mirror of
https://git.aramjonghu.nl/AramJonghu/aramjonghu-site.git
synced 2026-06-07 20:38:24 +02:00
Header + Footer ready for deployment
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
import Aku from "../assets/images/aku.png";
|
||||
|
||||
export default function Header() {
|
||||
const navItems = [
|
||||
{
|
||||
label: "Nextcloud",
|
||||
url: "https://aramjonghu.nl/nextcloud",
|
||||
},
|
||||
{
|
||||
label: "Navidrome",
|
||||
url: "https://music.aramjonghu.nl",
|
||||
},
|
||||
{
|
||||
label: "Forgejo Git",
|
||||
url: "https://git.aramjonghu.nl",
|
||||
},
|
||||
{
|
||||
label: "Stream",
|
||||
url: "https://stream.aramjonghu.nl",
|
||||
},
|
||||
{
|
||||
label: "SearXNG",
|
||||
url: "https://xng.aramjonghu.nl",
|
||||
},
|
||||
];
|
||||
|
||||
const goHome = () => {
|
||||
window.location.href = "/";
|
||||
};
|
||||
|
||||
return (
|
||||
<header className="flex items-center px-12 py-6 gap-6">
|
||||
<img
|
||||
className="size-16 cursor-pointer"
|
||||
src={Aku}
|
||||
alt="Home"
|
||||
onClick={goHome}
|
||||
/>
|
||||
|
||||
<nav className="flex flex-wrap gap-3 items-center">
|
||||
{navItems.map((item) => (
|
||||
<a
|
||||
key={item.label}
|
||||
href={item.url}
|
||||
className="text-ctp-text hover:text-ctp-green-900 border rounded border-ctp-white-800 hover:border-ctp-green-900 cursor-pointer px-3 py-1 transition-colors"
|
||||
>
|
||||
{item.label}
|
||||
</a>
|
||||
))}
|
||||
</nav>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user