@codesinger0/shared-components 1.0.23 → 1.0.24

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.
@@ -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,7 +69,7 @@ const Hero = ({
58
69
  transition={{ duration: 0.8 }}
59
70
  className="mb-8"
60
71
  >
61
- <h1 className="main-title mb-4">
72
+ <h1 className={titleClass + " mb-4"}>
62
73
  {title}
63
74
  </h1>
64
75
  <p className="main-subtitle mb-4">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [