2
2
3
3
import {
4
4
Button ,
5
- ListItem ,
6
5
Logo ,
7
6
NavigationMenu ,
8
7
NavigationMenuContent ,
@@ -15,6 +14,7 @@ import {
15
14
import { classNames } from "@cap/utils" ;
16
15
import { Clapperboard , Zap } from "lucide-react" ;
17
16
import { motion } from "motion/react" ;
17
+ import Image from "next/image" ;
18
18
import Link from "next/link" ;
19
19
import { usePathname } from "next/navigation" ;
20
20
import { Suspense , use , useEffect , useState } from "react" ;
@@ -131,8 +131,8 @@ export const Navbar = () => {
131
131
132
132
return (
133
133
< >
134
- < header className = "fixed top-4 left-0 right-0 z-[51] md :top-10 animate-in fade-in slide-in-from-top-4 duration-500" >
135
- < nav className = "p-2 mx-auto w-full max-w-[calc(100%-20px)] bg-white rounded-full border backdrop-blur-md md :max-w-fit border-zinc-200 h-fit" >
134
+ < header className = "fixed top-4 left-0 right-0 z-[51] lg :top-10 animate-in fade-in slide-in-from-top-4 duration-500" >
135
+ < nav className = "p-2 mx-auto w-full max-w-[calc(100%-20px)] bg-white rounded-full border backdrop-blur-md lg :max-w-fit border-zinc-200 h-fit" >
136
136
< div className = "flex gap-12 justify-between items-center mx-auto max-w-4xl h-full transition-all" >
137
137
< div className = "flex items-center" >
138
138
< Link passHref href = "/home" >
@@ -146,7 +146,7 @@ export const Navbar = () => {
146
146
} }
147
147
/>
148
148
</ Link >
149
- < div className = "hidden md :flex" >
149
+ < div className = "hidden lg :flex" >
150
150
< NavigationMenu >
151
151
< NavigationMenuList className = "space-x-0" >
152
152
{ Links . map ( ( link ) => (
@@ -169,9 +169,9 @@ export const Navbar = () => {
169
169
href = { sublink . href }
170
170
className = "block p-3 space-y-1 leading-none no-underline rounded-md transition-all duration-200 outline-none select-none hover:bg-gray-2 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"
171
171
>
172
- < div className = "flex items-center gap-2 text-base font-medium leading-none transition-colors duration-200 text-zinc-700 group-hover:text-zinc-900" >
172
+ < div className = "flex gap-2 items-center text-base font-medium leading-none transition-colors duration-200 text-zinc-700 group-hover:text-zinc-900" >
173
173
{ sublink . icon && sublink . icon }
174
- < span className = "text-gray-12 font-semibold " >
174
+ < span className = "font-semibold text-gray-12" >
175
175
{ sublink . label }
176
176
</ span >
177
177
</ div >
@@ -206,7 +206,24 @@ export const Navbar = () => {
206
206
</ NavigationMenu >
207
207
</ div >
208
208
</ div >
209
- < div className = "hidden items-center space-x-2 md:flex" >
209
+ < div className = "hidden items-center space-x-2 lg:flex" >
210
+ < Button
211
+ variant = "outline"
212
+ icon = {
213
+ < Image
214
+ src = "/github.svg"
215
+ alt = "Github"
216
+ width = { 16 }
217
+ height = { 16 }
218
+ />
219
+ }
220
+ target = "_blank"
221
+ href = "https://github.com/CapSoftware/Cap"
222
+ size = "sm"
223
+ className = "w-full font-medium sm:w-auto"
224
+ >
225
+ Github
226
+ </ Button >
210
227
< Suspense
211
228
fallback = {
212
229
< Button
@@ -234,7 +251,7 @@ export const Navbar = () => {
234
251
</ div >
235
252
< button
236
253
type = "button"
237
- className = "flex md :hidden"
254
+ className = "flex lg :hidden"
238
255
onClick = { ( ) => setShowMobileMenu ( ! showMobileMenu ) }
239
256
>
240
257
< div className = "flex flex-col gap-[5px] mr-1" >
0 commit comments