@codesinger0/shared-components 1.1.50 → 1.1.52
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.
|
@@ -44,7 +44,8 @@ const IntroSection = ({
|
|
|
44
44
|
<img
|
|
45
45
|
src={introImage}
|
|
46
46
|
alt={introTitle || "Introduction image"}
|
|
47
|
-
className="w-full h-auto rounded-lg shadow-lg object-
|
|
47
|
+
className="w-full h-auto rounded-lg shadow-lg object-contain"
|
|
48
|
+
style={{ maxHeight: introHeight }}
|
|
48
49
|
onError={(e) => {
|
|
49
50
|
e.target.style.display = 'none';
|
|
50
51
|
console.warn('Failed to load intro image:', introImage);
|
package/dist/components/Menu.jsx
CHANGED
|
@@ -103,23 +103,25 @@ const Menu = ({
|
|
|
103
103
|
{AuthButtonsComponent && <AuthButtonsComponent />}
|
|
104
104
|
</div>
|
|
105
105
|
|
|
106
|
-
{/* Right side - Menu items */}
|
|
107
|
-
<div className="flex
|
|
108
|
-
|
|
109
|
-
item
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
106
|
+
{/* Center / Right side - Menu items */}
|
|
107
|
+
<div className="flex-1 flex justify-center">
|
|
108
|
+
<div className="flex items-center space-x-6 space-x-reverse" dir="rtl">
|
|
109
|
+
{navigationItems.map((item, index) => (
|
|
110
|
+
item.adminRoute && !isAdmin ? null : (
|
|
111
|
+
<Link
|
|
112
|
+
key={index}
|
|
113
|
+
to={item.href}
|
|
114
|
+
onClick={() => handleMenuItemClick(item)}
|
|
115
|
+
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}`}
|
|
116
|
+
>
|
|
117
|
+
{item.label}
|
|
118
|
+
</Link>
|
|
119
|
+
)
|
|
120
|
+
))}
|
|
121
|
+
</div>
|
|
120
122
|
</div>
|
|
121
123
|
|
|
122
|
-
{/* Render logo here if no children */}
|
|
124
|
+
{/* Right Side Render logo here if no children */}
|
|
123
125
|
{!children && (
|
|
124
126
|
<Link to="/" className={`flex-shrink-0 ${logoClassName}`}>
|
|
125
127
|
<div className="relative w-24 h-12 lg:w-32 lg:h-16 overflow-hidden flex items-center justify-center">
|