hds-web 1.1.8 → 1.2.0
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 +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/HDS/components/Buttons/button.js +1 -1
- package/src/HDS/components/Cards/Misc/talkCard.js +1 -1
- package/src/HDS/components/Headers/v3Header.js +7 -6
- package/src/HDS/components/Hero/h2.js +56 -36
- package/src/styles/tailwind.css +36 -0
package/package.json
CHANGED
@@ -28,7 +28,7 @@ const Buttonclasses = {
|
|
28
28
|
},
|
29
29
|
'tonal': {
|
30
30
|
'default': {
|
31
|
-
'base': 'db:w-fit tb:w-fit w-full
|
31
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center bg-blue-200 text-blue-600',
|
32
32
|
'hover': 'hover:bg-blue-700 hover:text-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
33
33
|
'focus': 'focus:bg-blue-100 focus:text-blue-600 focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none',
|
34
34
|
},
|
@@ -26,7 +26,7 @@ export default function TalkCard(props) {
|
|
26
26
|
/>
|
27
27
|
|
28
28
|
<Typography className='my-2 text-blue-800' textStyle='h5'>{props.title}</Typography>
|
29
|
-
{props.para && <Typography className='
|
29
|
+
{props.para && <Typography className='text-neutral-700 [&>p]:pb-2 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 [&>ul>li]:last:pb-0' textStyle='body1'>
|
30
30
|
<ReactMarkdown>{props.para}</ReactMarkdown>
|
31
31
|
</Typography>}
|
32
32
|
|
@@ -142,14 +142,14 @@ export default function V3Header(props) {
|
|
142
142
|
)
|
143
143
|
|
144
144
|
return (
|
145
|
-
<Popover className="relative
|
145
|
+
<Popover className="relative">
|
146
146
|
<div className="flex items-center bg-neutral-50 justify-between p-6 md:justify-start md:space-x-6">
|
147
147
|
<div>
|
148
|
-
<a href=
|
149
|
-
<Icon variant={'hasuraPrimary'} strokeColor={''} />
|
148
|
+
<a href={props.headerUrl} className="flex items-center">
|
149
|
+
<Icon height='w-[103px] h-[33px]' variant={'hasuraPrimary'} strokeColor={''} />
|
150
150
|
</a>
|
151
151
|
</div>
|
152
|
-
<div className="
|
152
|
+
<div className="tb:hidden">
|
153
153
|
<Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
|
154
154
|
<span className="sr-only">Open menu</span>
|
155
155
|
<div className=' gap-6 flex'>
|
@@ -158,7 +158,7 @@ export default function V3Header(props) {
|
|
158
158
|
</div>
|
159
159
|
</Popover.Button>
|
160
160
|
</div>
|
161
|
-
<div className="hidden
|
161
|
+
<div className="hidden tb:flex tb:flex-1 tb:items-center tb:justify-between">
|
162
162
|
<Popover.Group as="nav" className="flex space-x-6">
|
163
163
|
{headerListfn(props.HEADER_LIST)}
|
164
164
|
</Popover.Group>
|
@@ -364,5 +364,6 @@ V3Header.defaultProps = {
|
|
364
364
|
]
|
365
365
|
},
|
366
366
|
|
367
|
-
]
|
367
|
+
],
|
368
|
+
headerUrl:'https://hasura.io/'
|
368
369
|
}
|
@@ -9,6 +9,19 @@ import { v4 as uuidv4 } from 'uuid';
|
|
9
9
|
|
10
10
|
export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize }) {
|
11
11
|
const [valumeMuteIcon, setValumeMuteIcon] = useState("volumex");
|
12
|
+
|
13
|
+
const scrollToNextDiv = (element) => {
|
14
|
+
const nextDiv = element.nextElementSibling;
|
15
|
+
if (nextDiv) {
|
16
|
+
nextDiv.scrollIntoView({ behavior: 'smooth' });
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
20
|
+
const handleClick = (event) => {
|
21
|
+
const arrowIcon = event.target;
|
22
|
+
const arrowContainer = arrowIcon.parentNode;
|
23
|
+
scrollToNextDiv(arrowContainer);
|
24
|
+
};
|
12
25
|
const videoMute = () => {
|
13
26
|
if (heroData.video_url) {
|
14
27
|
const videoEle = document.getElementById("hero_vid");
|
@@ -95,34 +108,34 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
95
108
|
const heroButton = () => (
|
96
109
|
heroData.buttons && (
|
97
110
|
<div className={" gap-6 flex items-center tb:justify-center tb-l:justify-start db:justify-start pt-6" + ((heroData.video_url) ? " tb:justify-center" : " tb:justify-start")}>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
111
|
+
|
112
|
+
|
113
|
+
{heroData.buttons[0] &&
|
114
|
+
<HDSButton
|
102
115
|
type="secondary"
|
103
116
|
btnTextColorClass={HDSColor('text-neutral-0')}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
117
|
+
leftIconVariant='none'
|
118
|
+
rightIconVariant='none'
|
119
|
+
label={heroData.buttons[0].cta_text}
|
120
|
+
state='default'
|
121
|
+
size='lg'
|
122
|
+
rightAnimatedArrow='true'
|
123
|
+
rightAnimatedArrowColor='#ffffff'
|
124
|
+
/>
|
125
|
+
}
|
126
|
+
{heroData.buttons[1] && <HDSButton
|
127
|
+
type="primaryLink"
|
128
|
+
btnTextColorClass={HDSColor('text-neutral-0')}
|
129
|
+
leftIconVariant='none'
|
130
|
+
rightIconVariant='none'
|
131
|
+
label={heroData.buttons[1].cta_text}
|
132
|
+
state='default'
|
133
|
+
size='lg'
|
134
|
+
rightAnimatedArrow='true'
|
135
|
+
rightAnimatedArrowColor='#ffffff'
|
136
|
+
/>}
|
137
|
+
|
138
|
+
|
126
139
|
</div>
|
127
140
|
)
|
128
141
|
)
|
@@ -153,20 +166,20 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
153
166
|
|
154
167
|
const imageCard = (heroData) => (
|
155
168
|
heroData.imageUrl && (
|
156
|
-
<div className="
|
157
|
-
<img src={heroData.imageUrl} alt={heroData.imageAlt} className='w-full
|
169
|
+
<div className="">
|
170
|
+
<img src={heroData.imageUrl} alt={heroData.imageAlt} className='w-full' />
|
158
171
|
</div>
|
159
172
|
)
|
160
173
|
)
|
161
|
-
|
174
|
+
|
162
175
|
const videoGradientBg = HDSColor(heroData.video_gradient_bg);
|
163
176
|
return (
|
164
177
|
<div className="">
|
165
178
|
<div className="">
|
166
179
|
<div className={"max-w-7xl mx-auto px-20 py-20 rounded-3xl overflow-hidden " + ((heroData.bg_color) ? heroData.bg_color : "")} >
|
167
180
|
<div className="w-full">
|
168
|
-
<div className={"tb-l:flex tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
|
169
|
-
<div className='w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
|
181
|
+
<div className={"tb-l:flex tb-l:justify-between tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
|
182
|
+
<div className='max-w-[29.18rem] w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
|
170
183
|
>
|
171
184
|
{
|
172
185
|
heroData.tag_line && (
|
@@ -188,14 +201,18 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
188
201
|
|
189
202
|
{
|
190
203
|
heroData.description && (
|
191
|
-
<Typography textStyle="sub1" className="
|
204
|
+
<Typography textStyle="sub1" className="db:text-left text-neutral-0 [&>*]:mb-8 last:[&>*]:mb-0">{heroData.description}</Typography>
|
192
205
|
)
|
193
206
|
}
|
194
207
|
{heroButton(heroData)}
|
195
208
|
|
196
|
-
|
209
|
+
|
197
210
|
</div>
|
211
|
+
<div className="">
|
212
|
+
|
213
|
+
|
198
214
|
{imageCard(heroData)}
|
215
|
+
</div>
|
199
216
|
</div>
|
200
217
|
|
201
218
|
{LinkCardsFn(heroData)}
|
@@ -203,9 +220,12 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
203
220
|
</div>
|
204
221
|
</div>
|
205
222
|
{
|
206
|
-
scrollArrow && (
|
207
|
-
|
208
|
-
|
223
|
+
heroData.scrollArrow && (
|
224
|
+
<div className="flex justify-center flex-row" onClick={(e) => scrollToNextDiv(e.currentTarget)}>
|
225
|
+
<div className="flex bg-neutral-0 shadow-md -mt-5 animate-bounce justify-center rounded-full items-center w-12 h-12" >
|
226
|
+
<Icon variant='chevrondowndouble' strokeClass='stroke-neutral-800' height='h-6 w-6' />
|
227
|
+
</div>
|
228
|
+
</div>
|
209
229
|
)
|
210
230
|
}
|
211
231
|
</div>
|
package/src/styles/tailwind.css
CHANGED
@@ -1365,6 +1365,10 @@ select {
|
|
1365
1365
|
height: 100%;
|
1366
1366
|
}
|
1367
1367
|
|
1368
|
+
.h-\[33px\] {
|
1369
|
+
height: 33px;
|
1370
|
+
}
|
1371
|
+
|
1368
1372
|
.max-h-\[26\.25\] {
|
1369
1373
|
max-height: 26.25;
|
1370
1374
|
}
|
@@ -1491,6 +1495,14 @@ select {
|
|
1491
1495
|
width: 100vw;
|
1492
1496
|
}
|
1493
1497
|
|
1498
|
+
.w-\[104px\] {
|
1499
|
+
width: 104px;
|
1500
|
+
}
|
1501
|
+
|
1502
|
+
.w-\[103px\] {
|
1503
|
+
width: 103px;
|
1504
|
+
}
|
1505
|
+
|
1494
1506
|
.min-w-\[15rem\] {
|
1495
1507
|
min-width: 15rem;
|
1496
1508
|
}
|
@@ -1559,6 +1571,10 @@ select {
|
|
1559
1571
|
max-width: min-content;
|
1560
1572
|
}
|
1561
1573
|
|
1574
|
+
.max-w-\[29\.18rem\] {
|
1575
|
+
max-width: 29.18rem;
|
1576
|
+
}
|
1577
|
+
|
1562
1578
|
.flex-1 {
|
1563
1579
|
flex: 1 1 0%;
|
1564
1580
|
}
|
@@ -8015,6 +8031,10 @@ select {
|
|
8015
8031
|
max-width: 530px;
|
8016
8032
|
}
|
8017
8033
|
|
8034
|
+
.tb\:flex-1 {
|
8035
|
+
flex: 1 1 0%;
|
8036
|
+
}
|
8037
|
+
|
8018
8038
|
.tb\:grid-cols-2 {
|
8019
8039
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
8020
8040
|
}
|
@@ -8043,6 +8063,10 @@ select {
|
|
8043
8063
|
justify-content: center;
|
8044
8064
|
}
|
8045
8065
|
|
8066
|
+
.tb\:justify-between {
|
8067
|
+
justify-content: space-between;
|
8068
|
+
}
|
8069
|
+
|
8046
8070
|
.tb\:gap-0 {
|
8047
8071
|
gap: 0px;
|
8048
8072
|
}
|
@@ -8572,6 +8596,14 @@ select {
|
|
8572
8596
|
justify-content: flex-start;
|
8573
8597
|
}
|
8574
8598
|
|
8599
|
+
.tb-l\:justify-end {
|
8600
|
+
justify-content: flex-end;
|
8601
|
+
}
|
8602
|
+
|
8603
|
+
.tb-l\:justify-between {
|
8604
|
+
justify-content: space-between;
|
8605
|
+
}
|
8606
|
+
|
8575
8607
|
.tb-l\:gap-0 {
|
8576
8608
|
gap: 0px;
|
8577
8609
|
}
|
@@ -9056,6 +9088,10 @@ select {
|
|
9056
9088
|
padding-bottom: 0px;
|
9057
9089
|
}
|
9058
9090
|
|
9091
|
+
.last\:\[\&\>p\]\:pb-0>p:last-child {
|
9092
|
+
padding-bottom: 0px;
|
9093
|
+
}
|
9094
|
+
|
9059
9095
|
.\[\&\>span\]\:pb-2>span {
|
9060
9096
|
padding-bottom: 0.5rem;
|
9061
9097
|
}
|