hds-web 1.20.2 → 1.20.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 +3 -3
- package/package.json +1 -1
- package/src/HDS/components/Buttons/button.js +6 -8
- package/src/HDS/components/Cards/Misc/talkcard2.js +4 -4
- package/src/HDS/components/Headers/v3Header.js +21 -7
- package/src/styles/tailwind.css +32 -4
package/package.json
CHANGED
@@ -47,7 +47,7 @@ const Buttonclasses = {
|
|
47
47
|
'default': {
|
48
48
|
'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-neutral-0 text-neutral-0 ',
|
49
49
|
|
50
|
-
'hover': 'hover:text-neutral-0 hover:border-
|
50
|
+
'hover': 'hover:text-neutral-0 hover:border-2 hover:border-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
51
51
|
|
52
52
|
'focus': 'focus:text-neutrak-0 focus:border-2 border-neutral-0 focus:outline-none focus:text-neutral-0',
|
53
53
|
},
|
@@ -56,11 +56,11 @@ const Buttonclasses = {
|
|
56
56
|
|
57
57
|
'ghost': {
|
58
58
|
'default': {
|
59
|
-
'base': 'db:w-fit tb:w-fit w-full justify-center text-
|
60
|
-
'hover': ' ',
|
61
|
-
'focus': 'focus:outline-none',
|
59
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center text-blue-600',
|
60
|
+
'hover': 'hover:bg-blue-100 hover:text-blue-600',
|
61
|
+
'focus': 'focus:text-blue-700 focus:outline-none',
|
62
62
|
},
|
63
|
-
'disabled': '
|
63
|
+
'disabled': 'text-neutral-300',
|
64
64
|
},
|
65
65
|
'primaryLink': {
|
66
66
|
'default': {
|
@@ -116,7 +116,6 @@ export default function Button(props) {
|
|
116
116
|
btnTextColorClass,
|
117
117
|
btnTextHoverClass,
|
118
118
|
btnBgColorClass,
|
119
|
-
btnbgHoverClass,
|
120
119
|
rightIconVariant,
|
121
120
|
rightIconColor,
|
122
121
|
leftIconVariant,
|
@@ -157,8 +156,7 @@ export default function Button(props) {
|
|
157
156
|
'group',
|
158
157
|
defaultClasses,
|
159
158
|
className,
|
160
|
-
HDSColor(btnTextHoverClass)
|
161
|
-
HDSColor(btnbgHoverClass)
|
159
|
+
HDSColor(btnTextHoverClass)
|
162
160
|
|
163
161
|
].join(' ');
|
164
162
|
|
@@ -17,7 +17,7 @@ export default function TalkCard2(props) {
|
|
17
17
|
|
18
18
|
return (
|
19
19
|
|
20
|
-
<
|
20
|
+
<div className="grid">
|
21
21
|
<div className={`flex flex-col tb-l:flex-row tb-l:justify-between `}>
|
22
22
|
<div className={"px-6 pt-6 tb-l:px-8 tb-l:pb-6 tb-l:border-r tb-l:border-r-neutral-200"}>
|
23
23
|
<div className="flex flex-row flex-wrap tb:gap-3 gap-2">
|
@@ -52,7 +52,7 @@ export default function TalkCard2(props) {
|
|
52
52
|
<div className="flex pb-6 tb-l:pb-0">
|
53
53
|
{props.readUrl &&
|
54
54
|
props.para && (
|
55
|
-
<
|
55
|
+
<a href={props.readUrl}>
|
56
56
|
<HDSButton
|
57
57
|
label={props.videoUrl ? 'Watch Recording': 'Read more'}
|
58
58
|
type='secondaryLink'
|
@@ -67,7 +67,7 @@ export default function TalkCard2(props) {
|
|
67
67
|
animatedHoverStroke='stroke-blue-500'
|
68
68
|
btnTextHoverClass='hover:text-blue-500'
|
69
69
|
/>
|
70
|
-
</
|
70
|
+
</a>
|
71
71
|
)}
|
72
72
|
</div>
|
73
73
|
</div>
|
@@ -112,7 +112,7 @@ export default function TalkCard2(props) {
|
|
112
112
|
</div>}
|
113
113
|
</div>
|
114
114
|
</div>
|
115
|
-
</
|
115
|
+
</div>
|
116
116
|
|
117
117
|
)
|
118
118
|
|
@@ -6,12 +6,22 @@ import { V3Dropdown } from '../Cards/Dropdown'
|
|
6
6
|
import { HDSColor } from '../../foundation/ColorPalette';
|
7
7
|
import { motion } from "framer-motion"
|
8
8
|
import { AnimatePresence } from 'framer-motion';
|
9
|
-
|
9
|
+
import { AlgoliaSearch } from '../../helpers/AlgoliaSearch';
|
10
10
|
|
11
11
|
function classNames(...classes) {
|
12
12
|
return classes.filter(Boolean).join(' ')
|
13
13
|
}
|
14
14
|
|
15
|
+
const updatePGParam = (originalLink, websiteKey) => {
|
16
|
+
if(websiteKey){
|
17
|
+
const url = new URL(originalLink);
|
18
|
+
url.searchParams.set("pg", websiteKey);
|
19
|
+
return url.toString();
|
20
|
+
}
|
21
|
+
else return originalLink;
|
22
|
+
};
|
23
|
+
|
24
|
+
|
15
25
|
export default function V3Header(props) {
|
16
26
|
const listSize = props.HEADER_LIST.length;
|
17
27
|
const [mobileNavOpen, setmobileNavOpen] = useState(false);
|
@@ -21,6 +31,10 @@ export default function V3Header(props) {
|
|
21
31
|
const [currentTab, setCurrentTab] = useState('')
|
22
32
|
const [isShown, setIsShown] = useState(false)
|
23
33
|
const [isArrowActive, setIsArrowActive] = useState(false)
|
34
|
+
const signUpLink = 'https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default';
|
35
|
+
const logInLink = 'https://cloud.hasura.io/login?pg=sample-apps&plcmt=header&cta=log-in&tech=default'
|
36
|
+
const signupURL = updatePGParam(signUpLink, props.website_key)
|
37
|
+
const loginURL = updatePGParam(logInLink, props.website_key)
|
24
38
|
|
25
39
|
//testing
|
26
40
|
const [dropdownVisibility, setDropdownVisibility] = useState(Array(props.HEADER_LIST.length).fill(false));
|
@@ -264,7 +278,7 @@ export default function V3Header(props) {
|
|
264
278
|
</div>
|
265
279
|
<div className='hds-hidden-tbl flex z-[10] items-center gap-6'>
|
266
280
|
<div className={'h-full ' + ((mobileNavOpen) ? " hds-hidden" : "")}>
|
267
|
-
|
281
|
+
<AlgoliaSearch {...props} />
|
268
282
|
</div>
|
269
283
|
{!(isCompany || isDeveloper || isProduct) &&
|
270
284
|
(
|
@@ -294,14 +308,14 @@ export default function V3Header(props) {
|
|
294
308
|
|
295
309
|
<div className='hds-hidden tb-l:flex flex-row items-center gap-x-4 '>
|
296
310
|
|
297
|
-
|
311
|
+
<AlgoliaSearch {...props} />
|
298
312
|
|
299
313
|
<a href='/contact-us?type=hasuraenterprise' className='hds-hidden db:flex'>
|
300
314
|
<Typography textStyle='body3c-medium' className='text-neutral-800 hover:text-blue-600'>
|
301
315
|
Contact Sales
|
302
316
|
</Typography>
|
303
317
|
</a>
|
304
|
-
<a href=
|
318
|
+
<a href={loginURL} >
|
305
319
|
<HDSButton
|
306
320
|
label="Log In"
|
307
321
|
type='tonal'
|
@@ -315,7 +329,7 @@ export default function V3Header(props) {
|
|
315
329
|
className='hds-hidden tb-l:flex'
|
316
330
|
/>
|
317
331
|
</a>
|
318
|
-
<a href=
|
332
|
+
<a href={signupURL}>
|
319
333
|
|
320
334
|
<HDSButton
|
321
335
|
label="Get Started"
|
@@ -432,7 +446,7 @@ export default function V3Header(props) {
|
|
432
446
|
|
433
447
|
<div className='flex flex-row justify-around'>
|
434
448
|
<div className='w-full flex gap-2'>
|
435
|
-
<a href=
|
449
|
+
<a href={loginURL} className='w-1/2'>
|
436
450
|
<HDSButton
|
437
451
|
label="Log In"
|
438
452
|
type='tonal'
|
@@ -446,7 +460,7 @@ export default function V3Header(props) {
|
|
446
460
|
className=' !w-full'
|
447
461
|
/>
|
448
462
|
</a>
|
449
|
-
<a href=
|
463
|
+
<a href={signupURL} className='w-1/2'>
|
450
464
|
<HDSButton
|
451
465
|
label="Get Started"
|
452
466
|
type='primary'
|
package/src/styles/tailwind.css
CHANGED
@@ -8675,6 +8675,37 @@ select{
|
|
8675
8675
|
}
|
8676
8676
|
}
|
8677
8677
|
|
8678
|
+
.carousel-wrapper {
|
8679
|
+
display: grid;
|
8680
|
+
place-content: center;
|
8681
|
+
border-radius: 2rem;
|
8682
|
+
}
|
8683
|
+
|
8684
|
+
.carousel-content {
|
8685
|
+
position: relative;
|
8686
|
+
width: 10rem;
|
8687
|
+
height: 10rem;
|
8688
|
+
}
|
8689
|
+
|
8690
|
+
.carousel-item {
|
8691
|
+
position: absolute;
|
8692
|
+
width: 10rem;
|
8693
|
+
height: 10rem;
|
8694
|
+
background-position: center;
|
8695
|
+
background-size: cover;
|
8696
|
+
background-repeat: no-repeat;
|
8697
|
+
border-radius: 10rem;
|
8698
|
+
}
|
8699
|
+
|
8700
|
+
.carousel-btns {
|
8701
|
+
margin-top: 2rem;
|
8702
|
+
margin-bottom: 2rem;
|
8703
|
+
display: flex;
|
8704
|
+
justify-content: center;
|
8705
|
+
gap: 1rem;
|
8706
|
+
z-index: 6;
|
8707
|
+
}
|
8708
|
+
|
8678
8709
|
.placeholder\:text-neutral-500::-webkit-input-placeholder{
|
8679
8710
|
--tw-text-opacity: 1;
|
8680
8711
|
color: rgb(108 115 127 / var(--tw-text-opacity));
|
@@ -9115,10 +9146,6 @@ select{
|
|
9115
9146
|
border-width: 2px;
|
9116
9147
|
}
|
9117
9148
|
|
9118
|
-
.hover\:border-none:hover{
|
9119
|
-
border-style: none;
|
9120
|
-
}
|
9121
|
-
|
9122
9149
|
.hover\:border-blue-600:hover{
|
9123
9150
|
--tw-border-opacity: 1;
|
9124
9151
|
border-color: rgb(30 86 227 / var(--tw-border-opacity));
|
@@ -12131,3 +12158,4 @@ select{
|
|
12131
12158
|
-webkit-padding-start: 1rem;
|
12132
12159
|
padding-inline-start: 1rem;
|
12133
12160
|
}
|
12161
|
+
|