@codesinger0/shared-components 1.0.24 → 1.0.26

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.
@@ -72,10 +72,10 @@ const Hero = ({
72
72
  <h1 className={titleClass + " mb-4"}>
73
73
  {title}
74
74
  </h1>
75
- <p className="main-subtitle mb-4">
75
+ <p className={subtitleClass + " mb-4"}>
76
76
  {subtitle}
77
77
  </p>
78
- <p className="main-content mb-12">
78
+ <p className={miniSubtitleClass + " mb-12"}>
79
79
  {miniSubtitle}
80
80
  </p>
81
81
  {additionalElements}
@@ -86,7 +86,13 @@ const Hero = ({
86
86
  </div>
87
87
 
88
88
  <motion.div
89
- className="absolute bottom-8 left-1/2 transform -translate-x-1/2 z-100"
89
+ className="absolute"
90
+ style={{
91
+ bottom: '2rem',
92
+ left: '50%',
93
+ transform: 'translateX(-50%)',
94
+ zIndex: 100
95
+ }}
90
96
  animate={{ y: [0, 10, 0] }}
91
97
  transition={{ duration: 2, repeat: Infinity }}
92
98
  >
@@ -104,10 +110,10 @@ const Hero = ({
104
110
  <div className="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center">
105
111
  {/* Text Content */}
106
112
  <div className="text-center lg:text-right order-2 lg:order-1">
107
- <h2 className="title mb-6">
113
+ <h2 className={introTitleClass + " mb-6"}>
108
114
  {introTitle}
109
115
  </h2>
110
- <p className="subtitle leading-relaxed" style={{ whiteSpace: 'pre-line' }}>
116
+ <p className={introContentClass + " leading-relaxed"} style={{ whiteSpace: 'pre-line' }}>
111
117
  {introContent}
112
118
  </p>
113
119
  </div>
@@ -12,12 +12,21 @@ const LargeItemCard = ({
12
12
  reverse = false,
13
13
  price,
14
14
  discountPrice,
15
- icons = []
15
+ icons = [],
16
+ classNames = {}
16
17
  }) => {
18
+ const {
19
+ card: cardClass = 'glass-card',
20
+ title: titleClass = 'title',
21
+ subtitle: subtitleClass = 'subtitle',
22
+ content: contentClass = 'content-text',
23
+ price: priceClass = 'text-price',
24
+ } = classNames;
25
+
17
26
  return (
18
27
  <section className="relative w-full overflow-visible py-16 px-4">
19
28
  {/* Background Section with Text Content */}
20
- <div className="glass-card relative" style={{ minHeight: '48vh', overflow: 'visible' }}>
29
+ <div className={cardClass + " relative"} style={{ minHeight: '48vh', overflow: 'visible' }}>
21
30
  <div className="max-w-7xl mx-auto px-6 pt-16">
22
31
  <div className="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
23
32
 
@@ -26,9 +35,9 @@ const LargeItemCard = ({
26
35
  className={`text-center lg:text-right space-y-6 ${reverse ? 'lg:order-2' : 'lg:order-1'}`}
27
36
  dir="rtl"
28
37
  >
29
- <h2 className="title">{title}</h2>
30
- <h3 className="subtitle">{subtitle}</h3>
31
- <p className="content-text max-w-md mx-auto lg:mx-0">{description}</p>
38
+ <h2 className={titleClass}>{title}</h2>
39
+ <h3 className={subtitleClass}>{subtitle}</h3>
40
+ <p className={contentClass + " max-w-md mx-auto lg:mx-0"}>{description}</p>
32
41
 
33
42
  {/* Price Section */}
34
43
  {price && (
@@ -36,7 +45,7 @@ const LargeItemCard = ({
36
45
  {discountPrice && discountPrice < price ? (
37
46
  <div className="space-y-1">
38
47
  <div className="flex items-center justify-center lg:justify-start gap-2">
39
- <span className="text-2xl font-bold text-price">
48
+ <span className={"text-2xl font-bold " + priceClass}>
40
49
  ₪{discountPrice}
41
50
  </span>
42
51
  <span className="text-sm content-text line-through">
@@ -51,7 +60,7 @@ const LargeItemCard = ({
51
60
  </div>
52
61
  </div>
53
62
  ) : (
54
- <span className="text-2xl font-bold text-price">
63
+ <span className={"text-2xl font-bold " + priceClass}>
55
64
  ₪{price}
56
65
  </span>
57
66
  )}
@@ -68,7 +77,7 @@ const LargeItemCard = ({
68
77
  {icons.length > 0 && (
69
78
  <div className="flex flex-wrap justify-center lg:justify-start gap-10 mt-6">
70
79
  {icons.map((icon, index) => (
71
- <div key={index} className="flex flex-col items-center justify-center content-text rounded-lg shadow-sm pb-10">
80
+ <div key={index} className={contentClass + "flex flex-col items-center justify-center rounded-lg shadow-sm pb-10"}>
72
81
  {icon}
73
82
  </div>
74
83
  ))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [