hds-web 1.5.6 → 1.5.8
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 +1 -1
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +1 -1
- package/src/HDS/components/Cards/ImageBox/imagebox.js +50 -0
- package/src/HDS/components/Cards/ImageBox/index.js +1 -0
- package/src/HDS/components/Headers/v3Header.js +17 -7
- package/src/HDS/components/Hero/h3.js +243 -1
- package/src/HDS/components/Tabs/tab.js +0 -3
- package/src/styles/tailwind.css +8 -8
package/package.json
CHANGED
@@ -5,7 +5,7 @@ import { FlyoutB, FlyoutA } from '../Menu'
|
|
5
5
|
|
6
6
|
export default function DropdownA(props) {
|
7
7
|
return (
|
8
|
-
<div className='flex flex-col tb:flex-row gap-2'>
|
8
|
+
<div className='flex mx-auto w-screen flex-col tb:flex-row gap-2'>
|
9
9
|
<div className=' bg-neutral-0 rounded-2xl tb:min-w-[28.063rem]'>
|
10
10
|
<FlyoutB
|
11
11
|
{...props.primaryCard}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { HDSButton } from "../../Buttons";
|
3
|
+
import { Typography } from "../../../foundation/Typography";
|
4
|
+
import { HDSColor } from "../../../foundation/ColorPalette";
|
5
|
+
|
6
|
+
export default function ImageBox(props) {
|
7
|
+
const {
|
8
|
+
button,
|
9
|
+
cta_text,
|
10
|
+
description,
|
11
|
+
className,
|
12
|
+
imgUrl,
|
13
|
+
imgAlt,
|
14
|
+
titleTextColor = 'text-neutral-1000',
|
15
|
+
imageClasses,
|
16
|
+
} = props;
|
17
|
+
return (
|
18
|
+
<div className={className}>
|
19
|
+
{imgUrl &&
|
20
|
+
<div>
|
21
|
+
<img src={imgUrl} alt={imgAlt} className={imageClasses} />
|
22
|
+
</div>}
|
23
|
+
{title && (
|
24
|
+
<Typography textStyle='h3' className={HDSColor(titleTextColor)}>{title}</Typography>
|
25
|
+
)
|
26
|
+
}
|
27
|
+
{description && (
|
28
|
+
<Typography textStyle='body1'>{description}</Typography>
|
29
|
+
)
|
30
|
+
|
31
|
+
}
|
32
|
+
{button.btnLabel && (
|
33
|
+
<a href={button.cta_link}>
|
34
|
+
<HDSButton
|
35
|
+
label={button.cta_text}
|
36
|
+
type={button.cta_type}
|
37
|
+
leftIconVariant='none'
|
38
|
+
rightIconVariant='none'
|
39
|
+
state='default'
|
40
|
+
size='md'
|
41
|
+
rightAnimatedArrow={true}
|
42
|
+
rightAnimatedArrowColor='#3970FD'
|
43
|
+
/>
|
44
|
+
</a>
|
45
|
+
)
|
46
|
+
|
47
|
+
}
|
48
|
+
</div>
|
49
|
+
)
|
50
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as ImageBox} from './imagebox'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, {useState} from 'react';
|
2
2
|
import { Fragment } from 'react';
|
3
3
|
import { Popover, Transition } from '@headlessui/react';
|
4
4
|
import { Icon } from '../common-components/Icon';
|
@@ -34,6 +34,7 @@ function classNames(...classes) {
|
|
34
34
|
|
35
35
|
export default function V3Header(props) {
|
36
36
|
|
37
|
+
const [isShowing, setIsShowing] = useState(false)
|
37
38
|
|
38
39
|
const dropdown = (solutions) => (
|
39
40
|
<Transition
|
@@ -46,9 +47,7 @@ export default function V3Header(props) {
|
|
46
47
|
leaveTo="opacity-0 translate-y-1"
|
47
48
|
>
|
48
49
|
<Popover.Panel className="fixed left-0 ml z-10 mt-3 transform ">
|
49
|
-
|
50
|
-
<Icon variant='triangle' height='h-6 w-6 fill-neutral-100' strokeClass='stroke-neutral-100' />
|
51
|
-
</div>
|
50
|
+
|
52
51
|
<div className=" p-2 bg-neutral-100 rounded-lg">
|
53
52
|
|
54
53
|
<V3Dropdown
|
@@ -117,17 +116,28 @@ export default function V3Header(props) {
|
|
117
116
|
(
|
118
117
|
<>
|
119
118
|
{HEADER_LIST.map((item, index) => (
|
120
|
-
<Popover className="relative">
|
121
|
-
{({ open
|
119
|
+
<Popover className="relative" key={index}>
|
120
|
+
{({ open }) => (
|
122
121
|
<>
|
123
122
|
<Popover.Button
|
124
123
|
className={classNames(
|
125
124
|
open ? '' : 'text-gray-500',
|
126
125
|
'group inline-flex items-center rounded-md bg-white hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2'
|
127
126
|
)}
|
127
|
+
onMouseEnter={() => setIsShowing(true)}
|
128
|
+
onMouseLeave={() => setIsShowing(false)}
|
129
|
+
|
128
130
|
>
|
131
|
+
<div className='flex flex-col items-center'>
|
129
132
|
<Typography textStyle='body3c-medium' className=''>{`${item['title']}`}</Typography>
|
130
|
-
{
|
133
|
+
{open && (
|
134
|
+
<div className='absolute z-20 top-8'>
|
135
|
+
<Icon variant='triangle' height='h-4 w-4' strokeClass='stroke-neutral-1000' />
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
)}
|
140
|
+
</div>
|
131
141
|
</Popover.Button>
|
132
142
|
<div className=''>
|
133
143
|
{dropdown(item['titleDropdown'])}
|
@@ -47,7 +47,6 @@ const tabCard = (Content) => (
|
|
47
47
|
)
|
48
48
|
|
49
49
|
export default function HeroCapability(props) {
|
50
|
-
console.log(props.heroData);
|
51
50
|
|
52
51
|
const LinkCardsFn = (heroData) => {
|
53
52
|
return (
|
@@ -160,3 +159,246 @@ export default function HeroCapability(props) {
|
|
160
159
|
</div>
|
161
160
|
)
|
162
161
|
}
|
162
|
+
|
163
|
+
HeroCapability.defaultProps={
|
164
|
+
heroData : {
|
165
|
+
tabContent: {
|
166
|
+
'Performance': {
|
167
|
+
heroBgColor:'bg-green-500',
|
168
|
+
title: 'Blazing-fast APIs at Global Scale ',
|
169
|
+
subTitle: 'Hasura optimizes your API performance up to 10x faster with end-to-end caching, while scaling both vertically and horizontally.',
|
170
|
+
videoUrl: "https://res.cloudinary.com/dh8fp23nd/video/upload/v1683307555/hasura-con-2023/tg_hascon23_homepage_ue29jn.mp4",
|
171
|
+
videoPoster: "https://res.cloudinary.com/dh8fp23nd/image/upload/v1685017301/Group_2608667_gu6idw.png",
|
172
|
+
subTitleTextColor: 'text-neutral-0',
|
173
|
+
titleTextColor: 'text-neutral-0',
|
174
|
+
bgColorTab: 'bg-neutral-1000',
|
175
|
+
pillColor:'bg-pink-500',
|
176
|
+
button: [
|
177
|
+
{
|
178
|
+
cta_text: 'Get Started',
|
179
|
+
btnBg: '',
|
180
|
+
bg_color: 'bg-blue-900',
|
181
|
+
|
182
|
+
cta_link: '',
|
183
|
+
cta_type:''
|
184
|
+
},
|
185
|
+
{
|
186
|
+
cta_text: 'Get Started',
|
187
|
+
btnBg: '',
|
188
|
+
bg_color: 'bg-blue-900',
|
189
|
+
cta_link: '',
|
190
|
+
cta_type:''
|
191
|
+
}
|
192
|
+
],
|
193
|
+
linkCards: [
|
194
|
+
{
|
195
|
+
titleTextColor: 'text-neutral-0',
|
196
|
+
descTextColor: 'text-neutral-0',
|
197
|
+
iconVariant: 'videorecorder',
|
198
|
+
iconStrokeColor: '#3970FD',
|
199
|
+
iconArrowVariant: 'arrownarrowupright',
|
200
|
+
iconArrowStrokeColor: 'blue-400',
|
201
|
+
title: 'Webinar',
|
202
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
203
|
+
|
204
|
+
|
205
|
+
},
|
206
|
+
{
|
207
|
+
cardBgColor: 'bg-pink-300',
|
208
|
+
cardHoverBg: 'bg-pink-900',
|
209
|
+
iconVariant: 'videorecorder',
|
210
|
+
iconStrokeColor: '#3970FD',
|
211
|
+
iconArrowVariant: 'arrownarrowupright',
|
212
|
+
iconArrowStrokeColor: 'blue-400',
|
213
|
+
title: 'Webinar',
|
214
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
215
|
+
|
216
|
+
|
217
|
+
},
|
218
|
+
{
|
219
|
+
cardBgColor: 'bg-pink-300',
|
220
|
+
cardHoverBg: 'bg-pink-900',
|
221
|
+
iconVariant: 'videorecorder',
|
222
|
+
iconStrokeColor: '#3970FD',
|
223
|
+
iconArrowVariant: 'arrownarrowupright',
|
224
|
+
iconArrowStrokeColor: 'blue-400',
|
225
|
+
title: 'Webinar',
|
226
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
227
|
+
|
228
|
+
|
229
|
+
},
|
230
|
+
],
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
},
|
236
|
+
'Company': {
|
237
|
+
heroBgColor:'bg-blue-500',
|
238
|
+
title: 'Leverage Hasura’s Authorization Engine',
|
239
|
+
subTitle: 'Hasura optimizes your API performance up to 10x faster with end-to-end caching, while scaling both vertically and horizontally.ss',
|
240
|
+
videoUrl: "https://res.cloudinary.com/dh8fp23nd/video/upload/v1683307555/hasura-con-2023/tg_hascon23_homepage_ue29jn.mp4",
|
241
|
+
videoPoster: "https://res.cloudinary.com/dh8fp23nd/image/upload/v1685017301/Group_2608667_gu6idw.png",
|
242
|
+
imgUrl:'',
|
243
|
+
subTitleTextColor: 'text-neutral-0',
|
244
|
+
titleTextColor: 'text-neutral-0',
|
245
|
+
bgColorTab: 'bg-neutral-1000',
|
246
|
+
pillColor:'bg-amber-500',
|
247
|
+
button: [
|
248
|
+
{
|
249
|
+
cta_text: 'Get Started',
|
250
|
+
btnBg: '',
|
251
|
+
bg_color: 'bg-blue-900',
|
252
|
+
|
253
|
+
cta_link: '',
|
254
|
+
cta_type:''
|
255
|
+
},
|
256
|
+
{
|
257
|
+
cta_text: 'Get Started',
|
258
|
+
btnBg: '',
|
259
|
+
bg_color: 'bg-blue-900',
|
260
|
+
cta_link: '',
|
261
|
+
cta_type:''
|
262
|
+
}
|
263
|
+
],
|
264
|
+
linkCards: [
|
265
|
+
{
|
266
|
+
titleTextColor: 'text-neutral-0',
|
267
|
+
descTextColor: 'text-neutral-0',
|
268
|
+
iconVariant: 'videorecorder',
|
269
|
+
iconStrokeColor: '#3970FD',
|
270
|
+
iconArrowVariant: 'arrownarrowupright',
|
271
|
+
iconArrowStrokeColor: 'blue-400',
|
272
|
+
title: 'Webinar',
|
273
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
274
|
+
|
275
|
+
|
276
|
+
},
|
277
|
+
{
|
278
|
+
cardBgColor: 'bg-pink-300',
|
279
|
+
cardHoverBg: 'bg-pink-900',
|
280
|
+
iconVariant: 'videorecorder',
|
281
|
+
iconStrokeColor: '#3970FD',
|
282
|
+
iconArrowVariant: 'arrownarrowupright',
|
283
|
+
iconArrowStrokeColor: 'blue-400',
|
284
|
+
title: 'Webinar',
|
285
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
286
|
+
|
287
|
+
|
288
|
+
},
|
289
|
+
{
|
290
|
+
cardBgColor: 'bg-pink-300',
|
291
|
+
cardHoverBg: 'bg-pink-900',
|
292
|
+
iconVariant: 'videorecorder',
|
293
|
+
iconStrokeColor: '#3970FD',
|
294
|
+
iconArrowVariant: 'arrownarrowupright',
|
295
|
+
iconArrowStrokeColor: 'blue-400',
|
296
|
+
title: 'Webinar',
|
297
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
298
|
+
|
299
|
+
|
300
|
+
},
|
301
|
+
],
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
},
|
307
|
+
'Authorization': {
|
308
|
+
heroBgColor:'bg-cyan-500',
|
309
|
+
title: 'Blazing-fast APIs at Global Scale ',
|
310
|
+
subTitle: 'Hasura optimizes your API performance up to 10x faster with end-to-end caching, while scaling both vertically and horizontally.',
|
311
|
+
videoUrl: "https://res.cloudinary.com/dh8fp23nd/video/upload/v1683307555/hasura-con-2023/tg_hascon23_homepage_ue29jn.mp4",
|
312
|
+
videoPoster: "https://res.cloudinary.com/dh8fp23nd/image/upload/v1685017301/Group_2608667_gu6idw.png",
|
313
|
+
imgUrl:'',
|
314
|
+
subTitleTextColor: 'text-neutral-0',
|
315
|
+
titleTextColor: 'text-neutral-0',
|
316
|
+
bgColorTab: 'bg-pink-500',
|
317
|
+
pillColor:'bg-neutral-500',
|
318
|
+
button: [
|
319
|
+
{
|
320
|
+
cta_text: 'Get Started',
|
321
|
+
btnBg: '',
|
322
|
+
bg_color: 'bg-blue-900',
|
323
|
+
|
324
|
+
cta_link: '',
|
325
|
+
cta_type:''
|
326
|
+
},
|
327
|
+
{
|
328
|
+
cta_text: 'Get Started',
|
329
|
+
btnBg: '',
|
330
|
+
bg_color: 'bg-blue-900',
|
331
|
+
cta_link: '',
|
332
|
+
cta_type:''
|
333
|
+
}
|
334
|
+
],
|
335
|
+
linkCards: [
|
336
|
+
{
|
337
|
+
titleTextColor: 'text-neutral-0',
|
338
|
+
descTextColor: 'text-neutral-0',
|
339
|
+
iconVariant: 'videorecorder',
|
340
|
+
iconStrokeColor: '#3970FD',
|
341
|
+
iconArrowVariant: 'arrownarrowupright',
|
342
|
+
iconArrowStrokeColor: 'blue-400',
|
343
|
+
title: 'Webinar',
|
344
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
345
|
+
|
346
|
+
|
347
|
+
},
|
348
|
+
{
|
349
|
+
cardBgColor: 'bg-pink-300',
|
350
|
+
cardHoverBg: 'bg-pink-900',
|
351
|
+
iconVariant: 'videorecorder',
|
352
|
+
iconStrokeColor: '#3970FD',
|
353
|
+
iconArrowVariant: 'arrownarrowupright',
|
354
|
+
iconArrowStrokeColor: 'blue-400',
|
355
|
+
title: 'Webinar',
|
356
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
357
|
+
|
358
|
+
|
359
|
+
},
|
360
|
+
{
|
361
|
+
cardBgColor: 'bg-pink-300',
|
362
|
+
cardHoverBg: 'bg-pink-900',
|
363
|
+
iconVariant: 'videorecorder',
|
364
|
+
iconStrokeColor: '#3970FD',
|
365
|
+
iconArrowVariant: 'arrownarrowupright',
|
366
|
+
iconArrowStrokeColor: 'blue-400',
|
367
|
+
title: 'Webinar',
|
368
|
+
description: 'Model Level Authorization System for GraphQL with Hasura',
|
369
|
+
|
370
|
+
|
371
|
+
},
|
372
|
+
],
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
},
|
378
|
+
},
|
379
|
+
|
380
|
+
navTabs: [
|
381
|
+
{
|
382
|
+
current: true,
|
383
|
+
name: 'Performance'
|
384
|
+
},
|
385
|
+
{
|
386
|
+
current: 'false',
|
387
|
+
name: 'Company'
|
388
|
+
},
|
389
|
+
{
|
390
|
+
current: 'false',
|
391
|
+
name: 'Authorization'
|
392
|
+
},
|
393
|
+
{
|
394
|
+
current: 'false',
|
395
|
+
name: 'Observability'
|
396
|
+
},
|
397
|
+
{
|
398
|
+
current: 'false',
|
399
|
+
name: 'API Security'
|
400
|
+
}
|
401
|
+
]
|
402
|
+
}
|
403
|
+
|
404
|
+
}
|
@@ -40,9 +40,6 @@ export default function Tab(props) {
|
|
40
40
|
function tabClass(name) {
|
41
41
|
let classActive = ' text-neutral-0 transition-all rounded-full ' + pillColorClass;
|
42
42
|
let clasnInActive = ' text-neutral-500 flex-nowrap rounded-full';
|
43
|
-
|
44
|
-
console.log(classActive, clasnInActive, 'heeelo');
|
45
|
-
|
46
43
|
if (activeTab.name === name) {
|
47
44
|
return classActive;
|
48
45
|
}
|
package/src/styles/tailwind.css
CHANGED
@@ -939,6 +939,10 @@ select {
|
|
939
939
|
top: 0.5rem;
|
940
940
|
}
|
941
941
|
|
942
|
+
.top-8 {
|
943
|
+
top: 2rem;
|
944
|
+
}
|
945
|
+
|
942
946
|
.isolate {
|
943
947
|
isolation: isolate;
|
944
948
|
}
|
@@ -951,6 +955,10 @@ select {
|
|
951
955
|
z-index: 10;
|
952
956
|
}
|
953
957
|
|
958
|
+
.z-20 {
|
959
|
+
z-index: 20;
|
960
|
+
}
|
961
|
+
|
954
962
|
.z-50 {
|
955
963
|
z-index: 50;
|
956
964
|
}
|
@@ -1213,10 +1221,6 @@ select {
|
|
1213
1221
|
margin-left: 30px;
|
1214
1222
|
}
|
1215
1223
|
|
1216
|
-
.ml-\[9\.55rem\] {
|
1217
|
-
margin-left: 9.55rem;
|
1218
|
-
}
|
1219
|
-
|
1220
1224
|
.mr-1 {
|
1221
1225
|
margin-right: 0.25rem;
|
1222
1226
|
}
|
@@ -4758,10 +4762,6 @@ select {
|
|
4758
4762
|
--tw-gradient-to-position: ;
|
4759
4763
|
}
|
4760
4764
|
|
4761
|
-
.fill-neutral-100 {
|
4762
|
-
fill: #F3F4F6;
|
4763
|
-
}
|
4764
|
-
|
4765
4765
|
.stroke-amber-100 {
|
4766
4766
|
stroke: #FFF3D4;
|
4767
4767
|
}
|