@@ -2,36 +2,46 @@ import React from "react";
22import Link from "next/link" ;
33import { params } from "../utils/params" ;
44
5+ const navLinks = [
6+ { name : "Wi-Fi" , href : "/wifi" } ,
7+ { name : "VPN" , href : "/vpn" } ,
8+ { name : "Local" , href : "/local" } ,
9+ ] ;
10+
511export default function Navbar ( ) {
612 return (
7- < nav className = "h-full bg-gradient-to-b from-(--navbar-background) text-center overflow-hidden z-99" >
8- < div className = "absolute mt-4 ml-5" >
9- < img
10- className = "w-14 h-14"
11- src = { params . basePath + "/dappnode-logo.png" }
12- alt = "Dappnode Logo"
13- />
14- </ div >
15- < div >
16- < div className = "mt-5 flex justify-center" >
17- < h1 className = "text-4xl font-bold mb-4" >
18- Welcome to{ " " }
19- < span className = "text-(--dappnode-primary)" > Dappnode</ span > !
20- </ h1 >
21- </ div >
22- < div className = "flex justify-center gap-3 mt-2" >
23- < Link href = "/" className = "text-(--link-color) hover:underline" >
24- Home
25- </ Link >
26- < Link href = "/wifi" className = "text-(--link-color) hover:underline" >
27- Wi-Fi
28- </ Link >
29- < Link href = "/local" className = "text-(--link-color) hover:underline" >
30- Local
31- </ Link >
32- < Link href = "/vpn" className = "text-(--link-color) hover:underline" >
33- Vpn
34- </ Link >
13+ < nav className = "h-full border-b bg-muted/30 backdrop-blur " >
14+ < div className = "h-full flex flex-col items-center justify-evenly px-6 max-w-7xl mx-auto gap-2 mt-3" >
15+ { /* Logo and Brand */ }
16+ < Link
17+ href = "/"
18+ className = "flex items-center gap-3 hover:opacity-80 transition-opacity"
19+ >
20+ < img
21+ className = "w-12 h-12"
22+ src = { params . basePath + "/dappnode-logo.png" }
23+ alt = "Dappnode Logo"
24+ />
25+ < div className = "flex flex-col" >
26+ < span className = "font-bold text-3xl leading-none text-(--dappnode-purple)" >
27+ Dappnode
28+ </ span >
29+ < span className = "text-sm text-muted-foreground" > Setup Guide</ span >
30+ </ div >
31+ </ Link >
32+
33+ { /* Navigation Links */ }
34+ < div className = "flex items-center gap-14" >
35+ { navLinks . map ( ( link ) => (
36+ < Link
37+ key = { link . name }
38+ href = { link . href }
39+ className = "text-sm font-medium text-foreground/80 hover:text-(--dappnode-purple) transition-colors relative group"
40+ >
41+ { link . name }
42+ < span className = "absolute bottom-0 left-0 w-0 h-0.5 bg-(--dappnode-purple) group-hover:w-full transition-all duration-300" > </ span >
43+ </ Link >
44+ ) ) }
3545 </ div >
3646 </ div >
3747 </ nav >
0 commit comments