hds-web 1.34.8 → 1.34.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/HDS/modules/TextCard/textIconCard.js +82 -52
package/package.json
CHANGED
@@ -1,76 +1,106 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Typography } from "../../foundation/Typography";
|
3
3
|
import { HDSColor } from "../../foundation/ColorPalette";
|
4
|
-
import { HDSButton } from
|
5
|
-
import { Icon } from
|
4
|
+
import { HDSButton } from "../../components/Buttons";
|
5
|
+
import { Icon } from "../../components/common-components/Icon";
|
6
6
|
|
7
7
|
export default function TextIconCard(props) {
|
8
8
|
return (
|
9
9
|
<div className="tb-m:flex gap-14 gap-y-14 gap-x-14 tb:gap-12 db-s:gap-20 db:gap-24">
|
10
10
|
<div className="pb-10 tb-m:pb-0 db-s:max-w-[524px] tb-m:w-1/2 w-full flex flex-col justify-between">
|
11
11
|
<div>
|
12
|
-
{
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
12
|
+
{props.tagline && (
|
13
|
+
<Typography
|
14
|
+
textStyle="h6"
|
15
|
+
as="h6"
|
16
|
+
className="pb-2 uppercase text-blue-400"
|
17
|
+
>
|
18
|
+
{props.tagline}
|
19
|
+
</Typography>
|
20
|
+
)}
|
21
|
+
{props.title && (
|
22
|
+
<Typography
|
23
|
+
textStyle="h3"
|
24
|
+
as="h3"
|
25
|
+
className="pb-2 text-neutral-1000"
|
26
|
+
>
|
27
|
+
{props.title}
|
28
|
+
</Typography>
|
29
|
+
)}
|
30
|
+
{props.description && (
|
31
|
+
<Typography textStyle="sub2" className="pb-6 text-neutral-600">
|
32
|
+
{props.description}
|
33
|
+
</Typography>
|
34
|
+
)}
|
27
35
|
</div>
|
28
36
|
<div>
|
29
|
-
{
|
30
|
-
|
31
|
-
<
|
32
|
-
|
37
|
+
{props.imgUrl && (
|
38
|
+
<div className="pb-4 pt-2">
|
39
|
+
<img
|
40
|
+
className="max-w-[210px]"
|
41
|
+
src={props.imgUrl}
|
42
|
+
alt={props.title ? props.title : "Illu"}
|
43
|
+
/>
|
33
44
|
</div>
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<a href={props.button.cta_link} className="inline-flex " download target="_blank">
|
45
|
+
)}
|
46
|
+
{props.button && (
|
47
|
+
<a href={props.button.cta_link} className="inline-flex ">
|
38
48
|
<HDSButton
|
39
49
|
label={props.button.cta_text}
|
40
|
-
type={props.button.cta_type ||
|
41
|
-
leftIconVariant=
|
42
|
-
rightIconVariant=
|
43
|
-
state=
|
44
|
-
size=
|
50
|
+
type={props.button.cta_type || "secondary"}
|
51
|
+
leftIconVariant="none"
|
52
|
+
rightIconVariant="none"
|
53
|
+
state="default"
|
54
|
+
size="md"
|
45
55
|
rightAnimatedArrow={true}
|
46
|
-
rightAnimatedArrowColor={
|
56
|
+
rightAnimatedArrowColor={
|
57
|
+
props.button.rightAnimatedArrowColor || "#3970FD"
|
58
|
+
}
|
47
59
|
animatedHoverStroke="group-hover:stroke-blue-600"
|
48
60
|
btnTextHoverClass="hover:text-blue-600"
|
49
61
|
btnTextColorClass="text-blue-500"
|
50
62
|
/>
|
51
63
|
</a>
|
52
|
-
}
|
64
|
+
)}
|
53
65
|
</div>
|
54
66
|
</div>
|
55
|
-
{
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
67
|
+
{props.iconCards && (
|
68
|
+
<div className="flex-1 pt-10 tb-m:pt-0 border-t border-neutral-200 tb-m:border-t-0">
|
69
|
+
{props.iconCards.map((card, index) => (
|
70
|
+
<div
|
71
|
+
className="pb-6 tb:pb-10 tb-l:pb-16 last:pb-0 tb:flex"
|
72
|
+
key={index}
|
73
|
+
>
|
74
|
+
<div
|
75
|
+
className={
|
76
|
+
"w-12 h-12 min-w-[48px] rounded-full flex justify-center items-center mr-5 " +
|
77
|
+
(card.iconBgClass
|
78
|
+
? HDSColor(card.iconBgClass)
|
79
|
+
: "bg-blue-300")
|
80
|
+
}
|
81
|
+
>
|
82
|
+
<Icon
|
83
|
+
height={"h-6 w-6 stroke-[1.5px]"}
|
84
|
+
variant={card.iconName ? card.iconName : "cube02"}
|
85
|
+
strokeClass="stroke-neutral-1000"
|
86
|
+
/>
|
87
|
+
</div>
|
88
|
+
<div>
|
89
|
+
<Typography
|
90
|
+
textStyle="h4"
|
91
|
+
as="h4"
|
92
|
+
className="pb-2 pt-4 tb:pt-0 text-neutral-1000"
|
93
|
+
>
|
94
|
+
{card.title}
|
95
|
+
</Typography>
|
96
|
+
<Typography textStyle="body1" className="text-neutral-600">
|
97
|
+
{card.description}
|
98
|
+
</Typography>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
))}
|
102
|
+
</div>
|
103
|
+
)}
|
74
104
|
</div>
|
75
|
-
)
|
105
|
+
);
|
76
106
|
}
|