@codesinger0/shared-components 1.1.76 → 1.1.78
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 +15 -3
- package/package.json +1 -1
package/dist/components/Hero.jsx
CHANGED
|
@@ -22,6 +22,8 @@ const Hero = ({
|
|
|
22
22
|
miniSubtitle,
|
|
23
23
|
additionalElements,
|
|
24
24
|
ctaText,
|
|
25
|
+
secondaryButtonLabel, // Optional secondary button label
|
|
26
|
+
onSecondaryClick, // Optional secondary button click handler
|
|
25
27
|
showArrow = true, // Show/hide animated arrow
|
|
26
28
|
|
|
27
29
|
// Introduction section props
|
|
@@ -100,9 +102,19 @@ const Hero = ({
|
|
|
100
102
|
{miniSubtitle}
|
|
101
103
|
</p>
|
|
102
104
|
{additionalElements}
|
|
103
|
-
<
|
|
104
|
-
{
|
|
105
|
-
|
|
105
|
+
<div className="flex flex-wrap gap-4 justify-center items-center">
|
|
106
|
+
{secondaryButtonLabel && onSecondaryClick && (
|
|
107
|
+
<button
|
|
108
|
+
onClick={onSecondaryClick}
|
|
109
|
+
className="px-6 py-3 border-2 border-primary text-primary bg-main rounded-lg font-semibold hover:bg-primary hover:text-primary-dark transition-all duration-300 shadow-lg"
|
|
110
|
+
>
|
|
111
|
+
{secondaryButtonLabel}
|
|
112
|
+
</button>
|
|
113
|
+
)}
|
|
114
|
+
<CTAButton onClick={onCtaClick} className="shadow-lg">
|
|
115
|
+
{ctaText}
|
|
116
|
+
</CTAButton>
|
|
117
|
+
</div>
|
|
106
118
|
</motion.div>
|
|
107
119
|
</div>
|
|
108
120
|
|