File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed
Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,34 @@ import {
1616 TooltipProvider ,
1717 TooltipTrigger ,
1818} from "@/components/ui/tooltip" ;
19+ import { useMediaQuery } from "@/hooks/use-media-query" ;
1920
2021const Navbar = ( ) => {
2122 const currentPath = usePathname ( ) ;
23+ const isLogoOnly = useMediaQuery ( "(max-width: 900px) and (min-width: 768px)" ) ;
2224 const { address } = useAccount ( ) ;
2325
2426 return (
25- < nav className = "flex items-center justify-between p-3 md :px-24 border-b-[1.5px] border-black" >
27+ < nav className = "flex items-center justify-between p-3 lg :px-24 border-b-[1.5px] border-black min-h-[66px] " >
2628 < div className = "flex items-center space-x-6 w-full" >
2729 < Link href = "/" >
28- < Image
29- src = "/hypercerts-header-logo.svg"
30- width = { 120 }
31- height = { 50 }
32- alt = "Hypercerts logo"
33- className = "min-w-[120px] lg:min-w-[160px]"
34- />
30+ { isLogoOnly ? (
31+ < Image
32+ src = "/hypercerts-logo.svg"
33+ width = { 28 }
34+ height = { 28 }
35+ alt = "Hypercerts logo"
36+ className = "min-w-[28px] min-h-[28px]"
37+ />
38+ ) : (
39+ < Image
40+ src = "/hypercerts-header-logo.svg"
41+ width = { 120 }
42+ height = { 50 }
43+ alt = "Hypercerts logo"
44+ className = "min-w-[160px]"
45+ />
46+ ) }
3547 </ Link >
3648 < div className = "hidden md:flex items-center justify-center space-x-2 w-full" >
3749 < Link
You can’t perform that action at this time.
0 commit comments