Zbudowane przez deweloperów sztucznej inteligencji, dla agentów przyszłości.
diff --git a/src/components/Nav.jsx b/src/components/Nav.jsx
index 561caa6..15c656e 100644
--- a/src/components/Nav.jsx
+++ b/src/components/Nav.jsx
@@ -1,15 +1,58 @@
-import React, { useState } from 'react';
+'use client'
+import { useState, useEffect } from 'react'
+import Link from 'next/link'
+import { usePathname } from 'next/navigation'
+
+const icons = {
+ news: (
+
+ ),
+ products: (
+
+ ),
+ ai: (
+
+ ),
+ contact: (
+
+ ),
+}
+
+const NavLink = ({ href, label, icon, active }) => (
+
+
{icon}
+
{label}
+
+)
const Nav = () => {
- const [menuOpen, setMenuOpen] = useState(false);
+ const [menuOpen, setMenuOpen] = useState(false)
+ const [compact, setCompact] = useState(false)
+ const pathname = usePathname()
+
+ useEffect(() => {
+ const onScroll = () => setCompact(window.scrollY > 60)
+ window.addEventListener('scroll', onScroll, { passive: true })
+ return () => window.removeEventListener('scroll', onScroll)
+ }, [])
return (
-