@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.
- package/dist/components/Hero.jsx +8 -2
- package/package.json +1 -1
package/dist/components/Hero.jsx
CHANGED
|
@@ -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={{
|
|
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
|