@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-cover"
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);
@@ -103,23 +103,25 @@ const Menu = ({
103
103
  {AuthButtonsComponent && <AuthButtonsComponent />}
104
104
  </div>
105
105
 
106
- {/* Right side - Menu items */}
107
- <div className="flex items-center space-x-6 space-x-reverse" dir="rtl">
108
- {navigationItems.map((item, index) => (
109
- item.adminRoute && !isAdmin ? null : (
110
- <Link
111
- key={index}
112
- to={item.href}
113
- onClick={() => handleMenuItemClick(item)}
114
- 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}`}
115
- >
116
- {item.label}
117
- </Link>
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">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [