@codesinger0/shared-components 1.0.25 → 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.
package/dist/components/Hero.jsx
CHANGED
|
@@ -86,7 +86,13 @@ const Hero = ({
|
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
88
|
<motion.div
|
|
89
|
-
className="absolute
|
|
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="
|
|
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=
|
|
30
|
-
<h3 className=
|
|
31
|
-
<p className="
|
|
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
|
|
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
|
|
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
|
|
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
|
))}
|