Skip to content

Commit 12f9009

Browse files
committed
imporve footer and navbar
1 parent 4b4e972 commit 12f9009

4 files changed

Lines changed: 67 additions & 46 deletions

File tree

welcome_website/components/Footer.tsx

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,33 @@ const footerLinks = [
1717

1818
export default function Footer() {
1919
return (
20-
<div className="h-full bg-gradient-to-t from-(--footer-background) flex justify-center items-center gap-8">
21-
{footerLinks.map((link) => (
22-
<a
23-
key={link.name}
24-
target="_blank noopener noreferrer"
25-
href={link.url}
26-
className="text-(--dappnode-primary) text-lg font-bold hover:underline"
27-
>
28-
{link.name}
29-
</a>
30-
))}
31-
</div>
20+
<footer className="h-full border-t bg-muted/30">
21+
<div className="h-full flex items-center justify-center gap-8 px-6">
22+
{footerLinks.map((link) => (
23+
<a
24+
key={link.name}
25+
target="_blank"
26+
rel="noopener noreferrer"
27+
href={link.url}
28+
className="text-sm font-medium text-foreground/70 hover:text-(--dappnode-purple) transition-colors inline-flex items-center gap-1.5"
29+
>
30+
{link.name}
31+
<svg
32+
className="w-3 h-3"
33+
fill="none"
34+
stroke="currentColor"
35+
viewBox="0 0 24 24"
36+
>
37+
<path
38+
strokeLinecap="round"
39+
strokeLinejoin="round"
40+
strokeWidth={2}
41+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
42+
/>
43+
</svg>
44+
</a>
45+
))}
46+
</div>
47+
</footer>
3248
);
3349
}

welcome_website/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Navbar from "./Navbar";
55
export default function Layout({ children }) {
66
return (
77
<div className="min-h-screen flex flex-col">
8-
<header className="w-full">
8+
<header className="h-28 w-full">
99
<Navbar />
1010
</header>
1111
<main className="flex-1 w-full">{children}</main>

welcome_website/components/Navbar.tsx

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,46 @@ import React from "react";
22
import Link from "next/link";
33
import { 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+
511
export 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>

welcome_website/styles/globals.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
/* Dappnode Brand Colors */
5151
--dappnode-primary: #c013e9;
5252
--dappnode-purple: #612dcb;
53-
--dappnode-purple-rgb: 97, 45, 203; /* RGB values for opacity usage */
5453
--dappnode-dark: #393e46;
5554
--dappnode-light: #eee;
5655
--dappnode-blue: #082c41;
@@ -87,10 +86,6 @@
8786
--sidebar-accent-foreground: oklch(0.205 0 0);
8887
--sidebar-border: oklch(0.922 0 0);
8988
--sidebar-ring: oklch(0.708 0 0);
90-
91-
--navbar-background: rgba(var(--dappnode-purple-rgb), 0.4);
92-
--footer-background: rgba(var(--dappnode-purple-rgb), 0.4);
93-
--link-color: var(--dappnode-purple);
9489
}
9590

9691
.dark {

0 commit comments

Comments
 (0)