@codesinger0/shared-components 1.0.25 → 1.0.27

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.
@@ -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
  >
@@ -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
  ))}
@@ -105,11 +114,16 @@ const LargeItemCard = ({
105
114
 
106
115
  {/* Floating Image Container (desktop only, unchanged behavior) */}
107
116
  <div
108
- className={`hidden lg:block absolute transform -translate-x-1/2 left-1/2 lg:top-8 ${reverse
109
- ? 'lg:left-16 lg:transform-none lg:translate-x-0'
110
- : 'lg:left-auto lg:right-16 lg:transform-none lg:translate-x-0'
111
- }`}
112
- style={{ zIndex: 10, width: '600px', maxWidth: '90vw' }}
117
+ className="hidden lg:block absolute"
118
+ style={{
119
+ zIndex: 10,
120
+ width: '600px',
121
+ maxWidth: '90vw',
122
+ top: '2rem',
123
+ left: reverse ? '4rem' : 'auto',
124
+ right: reverse ? 'auto' : '4rem',
125
+ transform: 'none'
126
+ }}
113
127
  >
114
128
  <div className="relative">
115
129
  <motion.div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [