mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Replace NavigationMenu with custom NavMenu hover dropdowns: - Products: 3 featured hero cards (Node/Explorer/MPC) + 5-column category grid + SDK footer - Solutions: Enterprise/Startup panels + Use Cases/By Role/By Chain columns - Hover-to-open on desktop (150ms close delay), click on mobile - Full-viewport-width backdrop-blur dropdowns matching hanzo.ai pattern Also fix API deployment: increase probe timeouts, add ENVIRONMENT=staging
18 lines
497 B
TypeScript
18 lines
497 B
TypeScript
"use client"
|
|
|
|
import { useState, useEffect } from "react"
|
|
|
|
export function useMediaQuery(query: string): boolean {
|
|
const [matches, setMatches] = useState(false)
|
|
|
|
useEffect(() => {
|
|
const mediaQuery = window.matchMedia(query)
|
|
setMatches(mediaQuery.matches)
|
|
const handler = (event: MediaQueryListEvent) => setMatches(event.matches)
|
|
mediaQuery.addEventListener("change", handler)
|
|
return () => mediaQuery.removeEventListener("change", handler)
|
|
}, [query])
|
|
|
|
return matches
|
|
}
|