hds-web 1.9.2 → 1.9.4
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/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/HDS/components/Cards/Misc/imageBadgeCard.js +0 -3
- package/src/HDS/components/Cards/Testimonials/testimonial.js +2 -2
- package/src/HDS/components/Cards/VideoCard/homeVC.js +19 -17
- package/src/HDS/components/Carousels/homeCarousel.js +6 -5
- package/src/HDS/modules/Cards/dataSourceCard.js +52 -0
- package/src/HDS/modules/Cards/index.js +1 -0
- package/src/HDS/modules/index.js +2 -1
- package/src/styles/tailwind.css +97 -0
package/package.json
CHANGED
@@ -8,10 +8,7 @@ return(
|
|
8
8
|
<>
|
9
9
|
<div className={`${HDSColor(card.cardBg)}bg-neutral-0 max-w-[700px] min-h-[245px] rounded-3xl p-8`}>
|
10
10
|
<div className='flex flex-col tb:flex-row justify-between gap-4'>
|
11
|
-
|
12
|
-
|
13
11
|
<div className='tb:max-w-[400px]'>
|
14
|
-
|
15
12
|
<Badges
|
16
13
|
color={card.badge.color}
|
17
14
|
children={card.badge.label}
|
@@ -25,7 +25,7 @@ export default function Testimonial(props) {
|
|
25
25
|
const Card1 = () => {
|
26
26
|
return (
|
27
27
|
<>
|
28
|
-
<div className={`${HDSColor(card.cardBg)}
|
28
|
+
<div className={`${HDSColor(card.cardBg)} rounded-2xl max-w-[220px] h-[428px] flex flex-col justify-between `}>
|
29
29
|
<div className="">
|
30
30
|
<div className=" pt-8 pl-6">
|
31
31
|
<img src="https://res.cloudinary.com/dh8fp23nd/image/upload/v1686737531/hasura-design-system/icons/optum_zn0bhw.png" alt="Card" className=" inline-block w-16 " />
|
@@ -53,7 +53,7 @@ export default function Testimonial(props) {
|
|
53
53
|
|
54
54
|
const Card2 = () => {
|
55
55
|
return (
|
56
|
-
<div className="
|
56
|
+
<div className="h-[428px]">
|
57
57
|
<div className={`${HDSColor(cardHover.cardBg)} bg-blue-500 rounded-2xl max-w-[221px] justify-between h-[442px] flex flex-col`}>
|
58
58
|
<div className=" ">
|
59
59
|
<div className="pt-8 pl-6 pr-12 ">
|
@@ -1,31 +1,33 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react';
|
2
2
|
import { Testimonial } from '../Testimonials';
|
3
3
|
|
4
4
|
export default function HomeVC(props) {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<div className='carouselShadow'>
|
8
|
-
<div className='w-[
|
9
|
-
<div className='
|
10
|
-
<div>
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
<div className='w-[620px] h-[476px] bg-base-1000 rounded-2xl border-2 border-neutral-300 flex justify-center items-center'>
|
9
|
+
<div className='w-[580px] h-[436px] bg-base-1000 rounded flex flex-col items-center justify-center overflow-hidden'>
|
10
|
+
<div className=''>
|
11
|
+
<div className=''>
|
12
|
+
<video
|
13
|
+
autoPlay
|
14
|
+
loop
|
15
|
+
muted
|
16
|
+
className=" object-fill max-w-full max-h-full scale-150"
|
17
|
+
src={props.video_url}
|
16
18
|
/>
|
17
|
-
|
18
|
-
|
19
|
+
<div className='w-full fixed flex-col flex items-center'>
|
20
|
+
<div className='fixed mx-auto top-[451px] w-[147px] h-[3px] bg-neutral-0/20' />
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div className='fixed top-[8px] left-[365px] filter-[16px]'>
|
19
24
|
|
20
|
-
|
25
|
+
<Testimonial {...props.testimonial} />
|
26
|
+
</div>
|
21
27
|
</div>
|
22
28
|
</div>
|
23
29
|
</div>
|
24
|
-
|
30
|
+
|
25
31
|
</div>
|
26
32
|
</>)
|
27
33
|
}
|
28
|
-
|
29
|
-
HomeVC.defaultProps= {
|
30
|
-
|
31
|
-
}
|
@@ -131,8 +131,8 @@ const carouselItems2 = [
|
|
131
131
|
const video_props =
|
132
132
|
[
|
133
133
|
{
|
134
|
-
|
135
|
-
video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4',
|
134
|
+
video_url: 'https://nutrien-prod-asset.s3.us-east-2.amazonaws.com/s3fs-public/video-thumbnails/2019-05/Nutrien-Banner-Loop-V4.mp4',
|
135
|
+
//video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4',
|
136
136
|
|
137
137
|
testimonial: {
|
138
138
|
card: {
|
@@ -364,11 +364,11 @@ export default function HomePageCarousePrimary(props) {
|
|
364
364
|
>
|
365
365
|
<div className="w-screen flex justify-center">
|
366
366
|
<div className="absolute z-30">
|
367
|
-
<div className={`snap-x w-[643px] h-[800px] items-center
|
367
|
+
<div className={`snap-x w-[643px] h-[800px] items-center z-10 inline-flex select-none overflow-x-hidden scrollbar-hide`}
|
368
368
|
ref={carouselRef}
|
369
369
|
>
|
370
370
|
{video_props.map((item, i) => (
|
371
|
-
<div className=" db:snap-center snap-center tb-m:snap-start mx-5 " key={i
|
371
|
+
<div className=" db:snap-center snap-center tb-m:snap-start mx-5 " key={i} ref={refs[i]}>
|
372
372
|
<div className=" select-none rounded-3xl object-contain ">
|
373
373
|
{React.createElement(VideoCard, item)}
|
374
374
|
</div>
|
@@ -384,7 +384,7 @@ export default function HomePageCarousePrimary(props) {
|
|
384
384
|
>
|
385
385
|
|
386
386
|
{cards.map((item, i) => {
|
387
|
-
|
387
|
+
|
388
388
|
// toggleBoolean();
|
389
389
|
return (
|
390
390
|
<>
|
@@ -434,3 +434,4 @@ export default function HomePageCarousePrimary(props) {
|
|
434
434
|
);
|
435
435
|
};
|
436
436
|
|
437
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Typography } from '../../foundation/Typography'
|
3
|
+
import { HDSButton} from '../../components/Buttons';
|
4
|
+
|
5
|
+
export default function DataSourcesCard(props) {
|
6
|
+
return (
|
7
|
+
<>
|
8
|
+
<div className="flex flex-col-reverse px-6 py-10 tb:px-0 tb:py-0 tb:flex-row tb:gap-[132px]">
|
9
|
+
|
10
|
+
<div className="flex flex-col tb:pl-20 tb:py-[104px]">
|
11
|
+
{props.title && props.description
|
12
|
+
&& (<div className="flex flex-col gap-4">
|
13
|
+
<Typography textStyle='h3' className='text-neutral-1000 tb:block hidden'>{props.title}</Typography>
|
14
|
+
<Typography textStyle='sub2' className='text-neutral-600 tb:mt-0 mt-4 '>{props.description}</Typography>
|
15
|
+
</div>)}
|
16
|
+
{props.CTA &&
|
17
|
+
<div className="mt-4 tb:mt-6 flex">
|
18
|
+
<a href={props.CTA['link']}>
|
19
|
+
<HDSButton
|
20
|
+
label={props.CTA['text']}
|
21
|
+
type={props.CTA['type'] || 'secondary'}
|
22
|
+
size='md'
|
23
|
+
rightAnimatedArrowColor="#3970FD"
|
24
|
+
/>
|
25
|
+
</a>
|
26
|
+
</div>}
|
27
|
+
</div>
|
28
|
+
{props.video_url && <div className="flex mt-4 tb:mt-0 tb:items-end">
|
29
|
+
<video
|
30
|
+
autoPlay
|
31
|
+
loop
|
32
|
+
muted
|
33
|
+
src={props.video_url}
|
34
|
+
className=" rounded-xl tb:rounded-none tb:rounded-tl-3xl"
|
35
|
+
/>
|
36
|
+
</div>}
|
37
|
+
<div className="tb:hidden pt-10">
|
38
|
+
<Typography textStyle='h3' className='text-neutral-1000'>{props.title}</Typography>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</>
|
42
|
+
)
|
43
|
+
}
|
44
|
+
|
45
|
+
DataSourcesCard.defaultProps = {
|
46
|
+
title:'100+ Data Sources',
|
47
|
+
description: 'description1',
|
48
|
+
CTA: {
|
49
|
+
text:'Button Label',
|
50
|
+
},
|
51
|
+
video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4'
|
52
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as DataSourcesCard } from './dataSourceCard';
|
package/src/HDS/modules/index.js
CHANGED
package/src/styles/tailwind.css
CHANGED
@@ -1013,6 +1013,18 @@ select{
|
|
1013
1013
|
left: 415px;
|
1014
1014
|
}
|
1015
1015
|
|
1016
|
+
.left-\[365px\]{
|
1017
|
+
left: 365px;
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
.top-\[451px\]{
|
1021
|
+
top: 451px;
|
1022
|
+
}
|
1023
|
+
|
1024
|
+
.top-\[8px\]{
|
1025
|
+
top: 8px;
|
1026
|
+
}
|
1027
|
+
|
1016
1028
|
.isolate{
|
1017
1029
|
isolation: isolate;
|
1018
1030
|
}
|
@@ -1598,6 +1610,22 @@ select{
|
|
1598
1610
|
height: 4rem;
|
1599
1611
|
}
|
1600
1612
|
|
1613
|
+
.h-\[3px\]{
|
1614
|
+
height: 3px;
|
1615
|
+
}
|
1616
|
+
|
1617
|
+
.h-\[436px\]{
|
1618
|
+
height: 436px;
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
.h-\[476px\]{
|
1622
|
+
height: 476px;
|
1623
|
+
}
|
1624
|
+
|
1625
|
+
.h-\[428px\]{
|
1626
|
+
height: 428px;
|
1627
|
+
}
|
1628
|
+
|
1601
1629
|
.max-h-\[26\.25\]{
|
1602
1630
|
max-height: 26.25;
|
1603
1631
|
}
|
@@ -1816,6 +1844,18 @@ select{
|
|
1816
1844
|
width: 763px;
|
1817
1845
|
}
|
1818
1846
|
|
1847
|
+
.w-\[147px\]{
|
1848
|
+
width: 147px;
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
.w-\[580px\]{
|
1852
|
+
width: 580px;
|
1853
|
+
}
|
1854
|
+
|
1855
|
+
.w-\[620px\]{
|
1856
|
+
width: 620px;
|
1857
|
+
}
|
1858
|
+
|
1819
1859
|
.min-w-\[11\.5rem\]{
|
1820
1860
|
min-width: 11.5rem;
|
1821
1861
|
}
|
@@ -2127,6 +2167,13 @@ select{
|
|
2127
2167
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
2128
2168
|
}
|
2129
2169
|
|
2170
|
+
.scale-150{
|
2171
|
+
--tw-scale-x: 1.5;
|
2172
|
+
--tw-scale-y: 1.5;
|
2173
|
+
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
2174
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
2175
|
+
}
|
2176
|
+
|
2130
2177
|
.transform{
|
2131
2178
|
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
2132
2179
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
@@ -3701,6 +3748,18 @@ select{
|
|
3701
3748
|
background-color: rgb(14 165 120 / 0.4);
|
3702
3749
|
}
|
3703
3750
|
|
3751
|
+
.bg-neutral-1000\/50{
|
3752
|
+
background-color: rgb(0 6 21 / 0.5);
|
3753
|
+
}
|
3754
|
+
|
3755
|
+
.bg-neutral-1000\/30{
|
3756
|
+
background-color: rgb(0 6 21 / 0.3);
|
3757
|
+
}
|
3758
|
+
|
3759
|
+
.bg-neutral-1000\/60{
|
3760
|
+
background-color: rgb(0 6 21 / 0.6);
|
3761
|
+
}
|
3762
|
+
|
3704
3763
|
.bg-opacity-30{
|
3705
3764
|
--tw-bg-opacity: 0.3;
|
3706
3765
|
}
|
@@ -6033,6 +6092,10 @@ select{
|
|
6033
6092
|
object-fit: cover;
|
6034
6093
|
}
|
6035
6094
|
|
6095
|
+
.object-fill{
|
6096
|
+
object-fit: fill;
|
6097
|
+
}
|
6098
|
+
|
6036
6099
|
.p-0{
|
6037
6100
|
padding: 0px;
|
6038
6101
|
}
|
@@ -9892,6 +9955,10 @@ select{
|
|
9892
9955
|
margin-top: -4px;
|
9893
9956
|
}
|
9894
9957
|
|
9958
|
+
.tb\:mt-6{
|
9959
|
+
margin-top: 1.5rem;
|
9960
|
+
}
|
9961
|
+
|
9895
9962
|
.tb\:block{
|
9896
9963
|
display: block;
|
9897
9964
|
}
|
@@ -10010,6 +10077,10 @@ select{
|
|
10010
10077
|
flex-direction: column-reverse;
|
10011
10078
|
}
|
10012
10079
|
|
10080
|
+
.tb\:items-end{
|
10081
|
+
align-items: flex-end;
|
10082
|
+
}
|
10083
|
+
|
10013
10084
|
.tb\:items-center{
|
10014
10085
|
align-items: center;
|
10015
10086
|
}
|
@@ -10050,6 +10121,10 @@ select{
|
|
10050
10121
|
gap: 31.5rem;
|
10051
10122
|
}
|
10052
10123
|
|
10124
|
+
.tb\:gap-\[132px\]{
|
10125
|
+
gap: 132px;
|
10126
|
+
}
|
10127
|
+
|
10053
10128
|
.tb\:gap-x-16{
|
10054
10129
|
-webkit-column-gap: 4rem;
|
10055
10130
|
column-gap: 4rem;
|
@@ -10063,6 +10138,14 @@ select{
|
|
10063
10138
|
border-radius: 1.5rem;
|
10064
10139
|
}
|
10065
10140
|
|
10141
|
+
.tb\:rounded-none{
|
10142
|
+
border-radius: 0px;
|
10143
|
+
}
|
10144
|
+
|
10145
|
+
.tb\:rounded-tl-3xl{
|
10146
|
+
border-top-left-radius: 1.5rem;
|
10147
|
+
}
|
10148
|
+
|
10066
10149
|
.tb\:border{
|
10067
10150
|
border-width: 1px;
|
10068
10151
|
}
|
@@ -10130,6 +10213,16 @@ select{
|
|
10130
10213
|
padding-bottom: 3.5rem;
|
10131
10214
|
}
|
10132
10215
|
|
10216
|
+
.tb\:py-0{
|
10217
|
+
padding-top: 0px;
|
10218
|
+
padding-bottom: 0px;
|
10219
|
+
}
|
10220
|
+
|
10221
|
+
.tb\:py-\[104px\]{
|
10222
|
+
padding-top: 104px;
|
10223
|
+
padding-bottom: 104px;
|
10224
|
+
}
|
10225
|
+
|
10133
10226
|
.tb\:pb-0{
|
10134
10227
|
padding-bottom: 0px;
|
10135
10228
|
}
|
@@ -10174,6 +10267,10 @@ select{
|
|
10174
10267
|
padding-top: 2.875rem;
|
10175
10268
|
}
|
10176
10269
|
|
10270
|
+
.tb\:pl-20{
|
10271
|
+
padding-left: 5rem;
|
10272
|
+
}
|
10273
|
+
|
10177
10274
|
.tb\:text-left{
|
10178
10275
|
text-align: left;
|
10179
10276
|
}
|