@codesinger0/shared-components 1.1.16 → 1.1.17

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.
@@ -13,7 +13,7 @@ const Hero = ({
13
13
  // Overlay
14
14
  opacity = 70,
15
15
  overlayColor = 'white',
16
-
16
+
17
17
  // Hero text props
18
18
  title,
19
19
  subtitle,
@@ -61,7 +61,13 @@ const Hero = ({
61
61
  {/* Content Overlay */}
62
62
  <div
63
63
  className="relative z-10 flex items-center justify-center h-full"
64
- style={{ backgroundColor: `rgba(255, 255, 255, ${opacity / 100})` }}
64
+ style={{
65
+ backgroundColor: `rgba(${overlayColor === 'white' ? '255, 255, 255' :
66
+ overlayColor === 'black' ? '0, 0, 0' :
67
+ overlayColor // allow custom rgb values like "128, 128, 128"
68
+ }, ${opacity / 100})`
69
+ }}
70
+
65
71
  >
66
72
  <div className="text-center px-0">
67
73
  <motion.div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [