hds-web 1.34.0 → 1.34.2
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/package.json
CHANGED
@@ -117,6 +117,10 @@ export default function HeroLinkCard(props) {
|
|
117
117
|
);
|
118
118
|
};
|
119
119
|
|
120
|
+
const videoPlayerClass = props?.isLargeVideoPlayer
|
121
|
+
? "grid items-center relative db:max-w-[600px] tb:w-3/5 transition-opacity duration-700 ease-linear "
|
122
|
+
: "grid items-center relative db:max-w-[500px] tb:w-1/2 transition-opacity duration-700 ease-linear ";
|
123
|
+
|
120
124
|
return (
|
121
125
|
<div>
|
122
126
|
<div className="flex flex-col-reverse tb-l:flex tb-l:flex-row tb-l:justify-between gap-4">
|
@@ -127,7 +131,7 @@ export default function HeroLinkCard(props) {
|
|
127
131
|
>
|
128
132
|
{props && tabCard(props)}
|
129
133
|
</div>
|
130
|
-
<div className=
|
134
|
+
<div className={videoPlayerClass}>
|
131
135
|
<Typography
|
132
136
|
textStyle="h2"
|
133
137
|
as="h2"
|
@@ -1,63 +1,75 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Typography } from "../../foundation/Typography";
|
3
|
-
import { Icon } from
|
3
|
+
import { Icon } from "../../components/common-components/Icon";
|
4
4
|
import { Badges } from "../../components/BadgesCaption";
|
5
|
-
import {LiveStatus} from "../../components/BadgesCaption";
|
5
|
+
import { LiveStatus } from "../../components/BadgesCaption";
|
6
6
|
|
7
7
|
export default function EventListingCard(props) {
|
8
8
|
return (
|
9
9
|
<div className="group/eventListing rounded-3xl transition-all duration-300">
|
10
10
|
<div className="self-start rounded-t-3xl">
|
11
|
-
{
|
12
|
-
|
13
|
-
<div
|
14
|
-
<
|
15
|
-
|
16
|
-
{props.
|
11
|
+
{props.eventListingImg && (
|
12
|
+
<div className="relative">
|
13
|
+
<div>
|
14
|
+
<img
|
15
|
+
src={props.eventListingImg}
|
16
|
+
alt={props.title}
|
17
|
+
className={` rounded-t-3xl h-[179px] object-cover ${props.imgBG}`}
|
18
|
+
loading={props?.isCardLazyLoaded ? "lazy" : "eager"}
|
19
|
+
/>
|
20
|
+
{props.imgTagText && (
|
21
|
+
<div className=" scale-75 absolute top-2 -right-1">
|
17
22
|
<LiveStatus
|
18
|
-
statusCircleBgClass={props.circleBG ??
|
19
|
-
statusTextClass=
|
20
|
-
bgClass=
|
21
|
-
statusText={props.imgTagText ??
|
23
|
+
statusCircleBgClass={props.circleBG ?? "bg-red-400"}
|
24
|
+
statusTextClass="text-neutral-900"
|
25
|
+
bgClass="bg-neutral-0"
|
26
|
+
statusText={props.imgTagText ?? "Concluded"}
|
22
27
|
/>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
|
28
|
+
</div>
|
29
|
+
)}
|
26
30
|
</div>
|
27
|
-
|
28
|
-
|
29
|
-
}
|
31
|
+
</div>
|
32
|
+
)}
|
30
33
|
</div>
|
31
34
|
<div className="border border-neutral-200 group-hover/eventListing:border-opacity-0 transition-all duration-300 rounded-b-3xl">
|
32
35
|
<div className="p-6 pb-0">
|
33
|
-
{props.eventType &&
|
36
|
+
{props.eventType && (
|
34
37
|
<Badges
|
35
|
-
color={props.badgeColor ??
|
38
|
+
color={props.badgeColor ?? "green"}
|
36
39
|
children={props.eventType}
|
37
40
|
/>
|
38
|
-
}
|
39
|
-
{
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
}
|
44
|
-
|
41
|
+
)}
|
42
|
+
{props.title && (
|
43
|
+
<div className="text-neutral-1000 text-hds-m-h5 tb:text-hds-t-h5 py-2">
|
44
|
+
{props.title}
|
45
|
+
</div>
|
46
|
+
)}
|
45
47
|
</div>
|
46
48
|
|
47
|
-
{
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
{props.eventDate && (
|
50
|
+
<Typography
|
51
|
+
textStyle="body3-medium"
|
52
|
+
className="text-neutral-700 flex items-center duration-300 self-end p-6 pt-0"
|
53
|
+
>
|
54
|
+
{props.eventDate}
|
55
|
+
<div>
|
56
|
+
<Icon
|
57
|
+
className="z-10 stroke-2 group-hover/eventListing:translate-x-[0.15rem] group-hover/eventListing:transition-all group-hover/eventListing:duration-300"
|
58
|
+
height={`h-5 w-5`}
|
59
|
+
variant={"chevronright"}
|
60
|
+
strokeClass="stroke-neutral-500"
|
61
|
+
/>
|
54
62
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
63
|
+
<Icon
|
64
|
+
className="invisible stroke-2 group-hover/eventListing:transition-all group-hover/eventListing:delay-100 group-hover/eventListing:visible "
|
65
|
+
height={`h-5 w-5 -mt-5`}
|
66
|
+
variant="minus01"
|
67
|
+
strokeClass="stroke-neutral-500"
|
68
|
+
/>
|
69
|
+
</div>
|
70
|
+
</Typography>
|
71
|
+
)}
|
60
72
|
</div>
|
61
73
|
</div>
|
62
|
-
)
|
74
|
+
);
|
63
75
|
}
|