@@ -3,69 +3,101 @@ import Link from "next/link";
3
3
import Image from "next/image" ;
4
4
import { GithubIcon , HeartIcon } from "lucide-react" ;
5
5
import HamburgerMenu from "./HamburgerMenu" ;
6
- import { Button } from "@/components/ui" ;
6
+ import { Button , Text } from "@/components/ui" ;
7
7
import { navConfig } from "@/config/navigation" ;
8
8
9
9
export default function TopNav ( ) {
10
10
return (
11
- < nav className = "fixed top-0 h-16 left-0 right-0 w-full border-b-2 border-black bg-white" >
12
- < div className = "container max-w-6xl px-4 lg:px-0 mx-auto" >
13
- < div className = "flex justify-between items-center h-16" >
14
- { /* Logo Section */ }
15
- < div className = "shrink-0" >
16
- < a
17
- href = "/"
18
- className = "text-black font-head text-2xl flex items-end"
19
- >
20
- < Image
21
- src = "/images/logo_full.png"
22
- alt = "retro ui logo"
23
- className = "mr-2"
24
- height = { 30 }
25
- width = { 60 }
26
- />
27
- RetroUI
11
+ < >
12
+ < nav className = "fixed top-0 left-0 right-0 w-full border-b-2 border-black bg-white" >
13
+ < div className = "w-full bg-black text-white" >
14
+ < div className = "container max-w-6xl mx-auto px-4 py-2 flex justify-between md:justify-center space-x-4 items-center" >
15
+ < Text className = "text-sm text-center" >
16
+ Introducing{ " " }
17
+ < a
18
+ href = "https://dub.sh/retroui-pro"
19
+ target = "_blank"
20
+ className = "underline font-bold"
21
+ >
22
+ RetroUI Pro.
23
+ </ a >
24
+ < span className = "hidden md:block" >
25
+ Ship faster with premium blocks, templates, figma ui-kit and
26
+ more!
27
+ </ span >
28
+ </ Text >
29
+ < a href = "https://dub.sh/retroui-pro" target = "_blank" >
30
+ < Button
31
+ size = "sm"
32
+ className = "shadow-none font-sans font-bold px-2 py-1"
33
+ >
34
+ Learn More
35
+ </ Button >
28
36
</ a >
29
37
</ div >
38
+ </ div >
39
+ < div className = "container max-w-6xl px-4 lg:px-0 mx-auto" >
40
+ < div className = "flex justify-between items-center h-16" >
41
+ { /* Logo Section */ }
42
+ < div className = "shrink-0" >
43
+ < a
44
+ href = "/"
45
+ className = "text-black font-head text-2xl flex items-end"
46
+ >
47
+ < Image
48
+ src = "/images/logo_full.png"
49
+ alt = "retro ui logo"
50
+ className = "mr-2"
51
+ height = { 30 }
52
+ width = { 60 }
53
+ />
54
+ RetroUI
55
+ </ a >
56
+ </ div >
57
+
58
+ { /* Navigation Links */ }
59
+ < div className = "hidden md:flex space-x-6" >
60
+ { navConfig . topNavItems . map ( ( item ) => (
61
+ < Link
62
+ key = { item . title }
63
+ href = { item . href }
64
+ className = "hover:underline decoration-primary underline-offset-2 transition-all"
65
+ >
66
+ { item . title }
67
+ </ Link >
68
+ ) ) }
69
+ </ div >
30
70
31
- { /* Navigation Links */ }
32
- < div className = "hidden md:flex space-x-6" >
33
- { navConfig . topNavItems . map ( ( item ) => (
71
+ < div className = "flex items-center space-x-4 lg:hidden" >
34
72
< Link
35
- key = { item . title }
36
- href = { item . href }
37
- className = "hover:underline decoration-primary underline-offset-2 transition-all "
73
+ href = "https://github.com/Logging-Stuff/retroui"
74
+ target = "_blank"
75
+ rel = "noopener noreferrer "
38
76
>
39
- { item . title }
77
+ < GithubIcon />
40
78
</ Link >
41
- ) ) }
42
- </ div >
79
+ < HamburgerMenu />
80
+ </ div >
43
81
44
- < div className = "flex items-center space-x-4 lg:hidden" >
45
- < Link
46
- href = "https://github.com/Logging-Stuff/retroui"
47
- target = "_blank"
48
- rel = "noopener noreferrer"
49
- >
50
- < GithubIcon />
51
- </ Link >
52
- < HamburgerMenu />
53
- </ div >
54
-
55
- < div className = "hidden lg:flex items-center" >
56
- < Link
57
- href = "https://github.com/Logging-Stuff/retroui"
58
- target = "_blank"
59
- rel = "noopener noreferrer"
60
- >
61
- < Button className = "flex items-center" variant = "outline" size = "sm" >
62
- < GithubIcon size = "16" className = "mr-2" />
63
- Star on GitHub
64
- </ Button >
65
- </ Link >
82
+ < div className = "hidden lg:flex items-center" >
83
+ < Link
84
+ href = "https://github.com/Logging-Stuff/retroui"
85
+ target = "_blank"
86
+ rel = "noopener noreferrer"
87
+ >
88
+ < Button
89
+ className = "flex items-center"
90
+ variant = "outline"
91
+ size = "sm"
92
+ >
93
+ < GithubIcon size = "16" className = "mr-2" />
94
+ Star on GitHub
95
+ </ Button >
96
+ </ Link >
97
+ </ div >
66
98
</ div >
67
99
</ div >
68
- </ div >
69
- </ nav >
100
+ </ nav >
101
+ </ >
70
102
) ;
71
103
}
0 commit comments