@codesinger0/shared-components 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Menu.jsx +32 -34
- package/package.json +1 -1
package/dist/components/Menu.jsx
CHANGED
|
@@ -62,43 +62,41 @@ const Menu = ({
|
|
|
62
62
|
|
|
63
63
|
// Desktop Menu Component
|
|
64
64
|
const DesktopMenu = () => (
|
|
65
|
-
<nav className="sticky top-0 z-50 bg-menu
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<nav className="sticky top-0 z-50 bg-menu border-b-2 border-primary">
|
|
66
|
+
{/* Parent container with two vertically stacked sections */}
|
|
67
|
+
<div className="w-full">
|
|
68
|
+
|
|
69
|
+
{/* Top section - Children content (full width) */}
|
|
70
|
+
{children && (
|
|
71
|
+
<div className="w-full">
|
|
72
|
+
{children}
|
|
73
|
+
</div>
|
|
74
|
+
)}
|
|
71
75
|
|
|
72
|
-
{/*
|
|
73
|
-
<div className="
|
|
74
|
-
{/*
|
|
75
|
-
<div className="flex
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
>
|
|
94
|
-
{item.label}
|
|
95
|
-
</Link>
|
|
96
|
-
)
|
|
97
|
-
))}
|
|
98
|
-
</div>
|
|
76
|
+
{/* Bottom section - Menu navigation bar */}
|
|
77
|
+
<div className="w-full px-6 py-4 flex justify-between items-center">
|
|
78
|
+
{/* Left side - Auth buttons */}
|
|
79
|
+
<div className="flex items-center">
|
|
80
|
+
{AuthButtonsComponent && <AuthButtonsComponent />}
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
{/* Center - Menu items */}
|
|
84
|
+
<div className="flex items-center space-x-6 space-x-reverse" dir="rtl">
|
|
85
|
+
{navigationItems.map((item, index) => (
|
|
86
|
+
item.adminRoute && !isAdmin ? null : (
|
|
87
|
+
<Link
|
|
88
|
+
key={index}
|
|
89
|
+
to={item.href}
|
|
90
|
+
onClick={() => handleMenuItemClick(item)}
|
|
91
|
+
className={`subtitle font-normal cursor-pointer menu-item-hover px-4 py-2 rounded-md text transition-colors duration-500 ease-in-out hover:text-primary ${menuItemClassName}`}
|
|
92
|
+
>
|
|
93
|
+
{item.label}
|
|
94
|
+
</Link>
|
|
95
|
+
)
|
|
96
|
+
))}
|
|
99
97
|
</div>
|
|
100
98
|
|
|
101
|
-
{/*
|
|
99
|
+
{/* Right side - Logo */}
|
|
102
100
|
<Link to="/" className={`text-primary font-bold text-xl ml-8 ${logoClassName}`}>
|
|
103
101
|
<div className="text-primary font-bold text-xl ml-8">
|
|
104
102
|
<div className="relative w-24 h-12 lg:w-32 lg:h-16 overflow-hidden flex items-center justify-center">
|