@codesinger0/shared-components 1.0.23 → 1.0.25
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 +17 -6
- package/package.json +1 -1
package/dist/components/Hero.jsx
CHANGED
|
@@ -26,8 +26,19 @@ const Hero = ({
|
|
|
26
26
|
introTitle,
|
|
27
27
|
introContent,
|
|
28
28
|
introImage,
|
|
29
|
-
onCtaClick
|
|
29
|
+
onCtaClick,
|
|
30
|
+
|
|
31
|
+
classNames = {}
|
|
30
32
|
}) => {
|
|
33
|
+
const {
|
|
34
|
+
title: titleClass = 'main-title',
|
|
35
|
+
subtitle: subtitleClass = 'main-subtitle',
|
|
36
|
+
miniSubtitle: miniSubtitleClass = 'main-content',
|
|
37
|
+
cta: ctaClass = '',
|
|
38
|
+
introTitle: introTitleClass = 'title',
|
|
39
|
+
introContent: introContentClass = 'subtitle'
|
|
40
|
+
} = classNames;
|
|
41
|
+
|
|
31
42
|
return (
|
|
32
43
|
<>
|
|
33
44
|
<section className="hero-section relative w-full overflow-hidden" style={{ height: mediaHeight }}>
|
|
@@ -58,13 +69,13 @@ const Hero = ({
|
|
|
58
69
|
transition={{ duration: 0.8 }}
|
|
59
70
|
className="mb-8"
|
|
60
71
|
>
|
|
61
|
-
<h1 className="
|
|
72
|
+
<h1 className={titleClass + " mb-4"}>
|
|
62
73
|
{title}
|
|
63
74
|
</h1>
|
|
64
|
-
<p className="
|
|
75
|
+
<p className={subtitleClass + " mb-4"}>
|
|
65
76
|
{subtitle}
|
|
66
77
|
</p>
|
|
67
|
-
<p className="
|
|
78
|
+
<p className={miniSubtitleClass + " mb-12"}>
|
|
68
79
|
{miniSubtitle}
|
|
69
80
|
</p>
|
|
70
81
|
{additionalElements}
|
|
@@ -93,10 +104,10 @@ const Hero = ({
|
|
|
93
104
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center">
|
|
94
105
|
{/* Text Content */}
|
|
95
106
|
<div className="text-center lg:text-right order-2 lg:order-1">
|
|
96
|
-
<h2 className="
|
|
107
|
+
<h2 className={introTitleClass + " mb-6"}>
|
|
97
108
|
{introTitle}
|
|
98
109
|
</h2>
|
|
99
|
-
<p className="
|
|
110
|
+
<p className={introContentClass + " leading-relaxed"} style={{ whiteSpace: 'pre-line' }}>
|
|
100
111
|
{introContent}
|
|
101
112
|
</p>
|
|
102
113
|
</div>
|