UI Lab
SectionsSitesAbout
SectionsSitesAbout
UI Lab
SectionsSitesAbout

AIが生成するモダンUIセクションのギャラリー。 Next.js + Tailwind CSSのコードをコピーして、すぐに導入できます。

2026 UI Lab

Back to Sections
  1. ホーム
  2. Sections
  3. ナビゲーション
  4. モダンナビゲーション
ナビゲーション

モダンナビゲーション

グラデーションアクセントとモバイル対応のスティッキーヘッダー

#グラデーション#アニメーション#インタラクティブ
Preview
Preview
Code
tsx(108 lines)
1"use client";
2
3import { useState } from "react";
4import Link from "next/link";
5
6export function NavigationModern001() {
7 const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
8
9 const navLinks = [
10 { label: "Features", href: "#" },
11 { label: "Pricing", href: "#" },
12 { label: "About", href: "#" },
13 { label: "Blog", href: "#" },
14 ];
15
16 return (
17 <header className="sticky top-0 z-50 w-full border-b border-zinc-800/50 bg-zinc-950/80 backdrop-blur-xl">
18 <nav className="mx-auto flex max-w-7xl items-center justify-between px-4 py-4 sm:px-6 lg:px-8">
19 {/* Logo */}
20 <Link href="#" className="flex items-center gap-3">
21 <div className="flex h-9 w-9 items-center justify-center rounded-lg border border-zinc-700 bg-zinc-900">
22 <span className="text-sm font-bold tracking-wider text-white">L</span>
23 </div>
24 <span className="text-xl font-semibold tracking-wide text-white">
25 Logo
26 </span>
27 </Link>
28
29 {/* Desktop Navigation */}
30 <div className="hidden items-center gap-10 md:flex">
31 {navLinks.map((link) => (
32 <Link
33 key={link.label}
34 href={link.href}
35 className="text-sm font-medium tracking-wide text-zinc-400 transition-colors duration-200 hover:text-white"
36 >
37 {link.label}
38 </Link>
39 ))}
40 </div>
41
42 {/* CTA Buttons */}
43 <div className="hidden items-center gap-4 md:flex">
44 <button className="rounded-lg px-4 py-2 text-sm font-medium tracking-wide text-zinc-400 transition-colors duration-200 hover:text-white">
45 Log in
46 </button>
47 <button className="rounded-lg border border-zinc-700 bg-white px-4 py-2 text-sm font-medium tracking-wide text-zinc-900 transition-all duration-200 hover:bg-zinc-100">
48 Get Started
49 </button>
50 </div>
51
52 {/* Mobile Menu Button */}
53 <button
54 className="rounded-lg p-2 text-zinc-400 hover:bg-zinc-800 hover:text-white md:hidden"
55 onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
56 >
57 <svg
58 className="h-6 w-6"
59 fill="none"
60 stroke="currentColor"
61 viewBox="0 0 24 24"
62 >
63 {mobileMenuOpen ? (
64 <path
65 strokeLinecap="round"
66 strokeLinejoin="round"
67 strokeWidth={1.5}
68 d="M6 18L18 6M6 6l12 12"
69 />
70 ) : (
71 <path
72 strokeLinecap="round"
73 strokeLinejoin="round"
74 strokeWidth={1.5}
75 d="M4 6h16M4 12h16M4 18h16"
76 />
77 )}
78 </svg>
79 </button>
80 </nav>
81
82 {/* Mobile Menu */}
83 {mobileMenuOpen && (
84 <div className="border-t border-zinc-800/50 bg-zinc-950 px-4 py-6 md:hidden">
85 <div className="flex flex-col gap-4">
86 {navLinks.map((link) => (
87 <Link
88 key={link.label}
89 href={link.href}
90 className="text-sm font-medium tracking-wide text-zinc-400 transition-colors duration-200 hover:text-white"
91 >
92 {link.label}
93 </Link>
94 ))}
95 <div className="mt-6 flex flex-col gap-3">
96 <button className="w-full rounded-lg border border-zinc-700 px-4 py-2.5 text-sm font-medium tracking-wide text-zinc-300 transition-colors duration-200 hover:bg-zinc-800">
97 Log in
98 </button>
99 <button className="w-full rounded-lg bg-white px-4 py-2.5 text-sm font-medium tracking-wide text-zinc-900">
100 Get Started
101 </button>
102 </div>
103 </div>
104 </div>
105 )}
106 </header>
107 );
108}
Related SectionsView all
センターナビゲーション
View Details

ナビゲーション

センターナビゲーション

#ミニマル#インタラクティブ
ミニマルナビゲーション
View Details

ナビゲーション

ミニマルナビゲーション

#ミニマル#インタラクティブ