hds-web 1.28.5 → 1.28.7
Sign up to get free protection for your applications and to get access to all the features.
- 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/assets/icons/verifiedBlue.svg +4 -0
- package/src/HDS/components/common-components/Icon/IconMap.js +2 -0
- package/src/HDS/foundation/Typography/Typography.js +1 -1
- package/src/HDS/modules/Cards/aboutSection.js +26 -27
- package/src/HDS/modules/Faq/faq.js +4 -3
- package/src/index.css +1 -0
- package/src/styles/tailwind.css +14 -0
- package/tailwind.config.js +1 -0
package/package.json
CHANGED
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M9.01447 1.91542C8.40071 2.43846 7.6376 2.75455 6.83377 2.8187C4.95794 2.96839 3.46839 4.45794 3.3187 6.33377C3.25455 7.1376 2.93846 7.90071 2.41542 8.51447C1.19486 9.94672 1.19486 12.0533 2.41542 13.4855C2.93846 14.0993 3.25455 14.8624 3.3187 15.6662C3.46839 17.5421 4.95794 19.0316 6.83377 19.1813C7.6376 19.2455 8.40071 19.5615 9.01447 20.0846C10.4467 21.3051 12.5533 21.3051 13.9855 20.0846C14.5993 19.5615 15.3624 19.2455 16.1662 19.1813C18.0421 19.0316 19.5316 17.5421 19.6813 15.6662C19.7455 14.8624 20.0615 14.0993 20.5846 13.4855C21.8051 12.0533 21.8051 9.94672 20.5846 8.51447C20.0615 7.90071 19.7455 7.1376 19.6813 6.33377C19.5316 4.45794 18.0421 2.96839 16.1662 2.8187C15.3624 2.75455 14.5993 2.43846 13.9855 1.91542C12.5533 0.69486 10.4467 0.69486 9.01447 1.91542Z" fill="#1E56E3"/>
|
3
|
+
<path d="M8.5 11L10.5 13L15 8.5M6.83377 2.8187C7.6376 2.75455 8.40071 2.43846 9.01447 1.91542C10.4467 0.69486 12.5533 0.69486 13.9855 1.91542C14.5993 2.43846 15.3624 2.75455 16.1662 2.8187C18.0421 2.96839 19.5316 4.45794 19.6813 6.33377C19.7455 7.1376 20.0615 7.90071 20.5846 8.51447C21.8051 9.94672 21.8051 12.0533 20.5846 13.4855C20.0615 14.0993 19.7455 14.8624 19.6813 15.6662C19.5316 17.5421 18.0421 19.0316 16.1662 19.1813C15.3624 19.2455 14.5993 19.5615 13.9855 20.0846C12.5533 21.3051 10.4467 21.3051 9.01447 20.0846C8.40071 19.5615 7.6376 19.2455 6.83377 19.1813C4.95794 19.0316 3.46839 17.5421 3.3187 15.6662C3.25455 14.8624 2.93846 14.0993 2.41542 13.4855C1.19486 12.0533 1.19486 9.94672 2.41542 8.51447C2.93846 7.90071 3.25455 7.1376 3.3187 6.33377C3.46839 4.45794 4.95794 2.96839 6.83377 2.8187Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
+
</svg>
|
@@ -1207,8 +1207,10 @@ import {ReactComponent as YoutubeCIcon} from "../../../assets/icons/youtubecolor
|
|
1207
1207
|
import {ReactComponent as Facebookblue} from "../../../assets/icons/facebookblue.svg"
|
1208
1208
|
import {ReactComponent as Linkedinblue} from "../../../assets/icons/linkedinblue.svg"
|
1209
1209
|
import {ReactComponent as AIBotIcon} from "../../../assets/icons/bot.svg"
|
1210
|
+
import {ReactComponent as VerifiedIcon} from "../../../assets/icons/verifiedBlue.svg"
|
1210
1211
|
|
1211
1212
|
const iconReferenceMap = {
|
1213
|
+
verifiedBlue: VerifiedIcon,
|
1212
1214
|
aibot:AIBotIcon,
|
1213
1215
|
facebookBlue: Facebookblue,
|
1214
1216
|
linkedinBlue: Linkedinblue,
|
@@ -44,7 +44,7 @@ export default function Typography(props) {
|
|
44
44
|
'body3c-semi-bold': 'text-hds-m-body3c-semi-bold tb:text-hds-t-body3c-semi-bold db:text-hds-d-body3c-semi-bold',
|
45
45
|
'body3c-bold': 'text-hds-m-body3c-bold tb:text-hds-t-body3c-bold db:text-hds-d-body3c-bold',
|
46
46
|
'quote': 'font-petrona font-normal italic text-hds-m-quote tb:text-hds-t-quote db:text-hds-d-quote',
|
47
|
-
'code1': 'text-hds-m-code1 tb:text-hds-t-code1 db:text-hds-d-code1',
|
47
|
+
'code1': 'font-firaCode text-hds-m-code1 tb:text-hds-t-code1 db:text-hds-d-code1',
|
48
48
|
'code2': 'text-hds-m-code2 tb:text-hds-t-code2 db:text-hds-d-code2',
|
49
49
|
}
|
50
50
|
return React.createElement(
|
@@ -9,17 +9,17 @@ export default function AboutSection(props) {
|
|
9
9
|
<div className="divide-y divide-neutral-200">
|
10
10
|
<div className=" pb-8">
|
11
11
|
<div>
|
12
|
-
<div className="w-14 h-14 rounded-full border border-neutral-300 ">
|
12
|
+
<div className=" w-14 h-14 relative rounded-full border border-neutral-300 ">
|
13
13
|
<img alt={props.title ?? 'connectorImage'} src={props.imgUrl} className="rounded-full w-full " />
|
14
|
+
{props.is_verified && <div className="absolute top-8 left-10">
|
15
|
+
<Icon
|
16
|
+
height={'h-5 w-5 stroke-[1.5px]'}
|
17
|
+
variant='verifiedBlue'
|
14
18
|
|
19
|
+
/>
|
20
|
+
</div>}
|
15
21
|
</div>
|
16
|
-
|
17
|
-
<Icon
|
18
|
-
height={'h-5 w-5 stroke-[1.5px]'}
|
19
|
-
variant='checkverified01'
|
20
|
-
strokeClass='stroke-blue-600'
|
21
|
-
/>
|
22
|
-
</div> */}
|
22
|
+
|
23
23
|
{props.tags &&
|
24
24
|
<div className="gap-2 pt-8 flex flex-wrap">
|
25
25
|
{props.tags.map((tag, index) => (
|
@@ -36,7 +36,7 @@ export default function AboutSection(props) {
|
|
36
36
|
{props.title && <div className='pt-4 text-hds-t-h3 text-neutral-1000'>{props.title}</div>}
|
37
37
|
{props.description && <Typography textStyle='sub2' className='pt-2 text-neutral-500'>{props.description}</Typography>}
|
38
38
|
</div>
|
39
|
-
<a href={props.btnLink} className='mt-4 flex' >
|
39
|
+
{props.btnLink && <a href={props.btnLink} className='mt-4 flex' >
|
40
40
|
<HDSButton
|
41
41
|
type="secondary"
|
42
42
|
label={props.btnLabel ?? 'Deployment guide'}
|
@@ -45,37 +45,37 @@ export default function AboutSection(props) {
|
|
45
45
|
rightAnimatedArrow='true'
|
46
46
|
rightAnimatedArrowColor='#3970FD'
|
47
47
|
/>
|
48
|
-
</a>
|
48
|
+
</a>}
|
49
49
|
|
50
50
|
</div>
|
51
51
|
<div className="py-8 ">
|
52
52
|
<Typography textStyle='h6' className='text-neutral-500 uppercase'>{props.aboutTitle ?? 'About'}</Typography>
|
53
53
|
<div className="pt-4 flex flex-col gap-2">
|
54
|
-
<div className="flex gap-2">
|
54
|
+
{props.versionValue && <div className="flex gap-2">
|
55
55
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.version ?? 'Version'}</Typography>
|
56
56
|
<Badges
|
57
57
|
color='blue'
|
58
58
|
children={props.versionValue}
|
59
|
-
|
59
|
+
// text_color='text-neutral-0'
|
60
60
|
/>
|
61
|
-
</div>
|
62
|
-
<div className="flex gap-2 items-center">
|
61
|
+
</div>}
|
62
|
+
{props.typeValue && <div className="flex gap-2 items-center">
|
63
63
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.typeText ?? 'Type'}</Typography>
|
64
|
-
<Icon
|
64
|
+
<Icon
|
65
65
|
height={'h-5 w-5 stroke-[1.5px]'}
|
66
|
-
variant='github'
|
67
|
-
|
66
|
+
variant='github'
|
67
|
+
/>
|
68
68
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.typeValue}</Typography>
|
69
69
|
|
70
|
-
</div>
|
71
|
-
<div className="flex gap-2">
|
70
|
+
</div>}
|
71
|
+
{props.releasedValue && <div className="flex gap-2">
|
72
72
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.releasedText ?? 'Released'}</Typography>
|
73
73
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.releasedValue}</Typography>
|
74
|
-
</div>
|
75
|
-
<div className="flex gap-2">
|
74
|
+
</div>}
|
75
|
+
{props.lastUpdateValue && <div className="flex gap-2">
|
76
76
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.lastUpdatedText ?? 'Last Updated'}</Typography>
|
77
77
|
<Typography textStyle='body1-medium' className='text-neutral-500'>{props.lastUpdateValue}</Typography>
|
78
|
-
</div>
|
78
|
+
</div>}
|
79
79
|
{props.githubRepoLink && <a href={props.githubRepoLink} className="flex gap-2 items-center">
|
80
80
|
<Icon
|
81
81
|
height={'h-5 w-5 stroke-[1.5px]'}
|
@@ -99,7 +99,7 @@ export default function AboutSection(props) {
|
|
99
99
|
</div>
|
100
100
|
<div className="py-8">
|
101
101
|
<Typography textStyle='h6' className='text-neutral-500 uppercase'>{props.creator ?? 'Creator'}</Typography>
|
102
|
-
<a href={props.hasuraIncUrl} className="flex gap-2 items-center pt-4">
|
102
|
+
{props.hasuraIncUrl && <a href={props.hasuraIncUrl} className="flex gap-2 items-center pt-4">
|
103
103
|
|
104
104
|
<Typography
|
105
105
|
textStyle='body1-medium'
|
@@ -112,14 +112,13 @@ export default function AboutSection(props) {
|
|
112
112
|
variant='linkexternal01'
|
113
113
|
strokeClass='stroke-blue-600'
|
114
114
|
/>
|
115
|
-
</a>
|
116
|
-
<Typography
|
115
|
+
</a>}
|
116
|
+
{props.Email && <Typography
|
117
117
|
textStyle='body1-medium'
|
118
118
|
className='text-neutral-500 pt-2'
|
119
119
|
>
|
120
120
|
{props.Email ?? 'support@hasura.io'}
|
121
|
-
</Typography>
|
122
|
-
|
121
|
+
</Typography>}
|
123
122
|
</div>
|
124
123
|
</div>
|
125
124
|
</>
|
@@ -17,7 +17,7 @@ function DefaultAccordion(props) {
|
|
17
17
|
animate={{ opacity: 1 }}
|
18
18
|
transition={{ duration: 0.3, opacity: { ease: "easeIn" } }}
|
19
19
|
className='h-5 w-5 mt-3.5'>
|
20
|
-
<div className=' h-5 cursor-pointer' >
|
20
|
+
<div className='w-5 h-5 cursor-pointer' >
|
21
21
|
<div
|
22
22
|
aria-hidden="true"
|
23
23
|
className={` block absolute h-[2px] w-[14px] bg-blue-600 transform transition duration-300 `}
|
@@ -35,7 +35,9 @@ function DefaultAccordion(props) {
|
|
35
35
|
{props.accordionData && props.accordionData.map((item, index) => (
|
36
36
|
<div
|
37
37
|
key={index}
|
38
|
-
className="py-6 flex items-start"
|
38
|
+
className="py-6 flex items-start"
|
39
|
+
onClick={() => handleOpen(index)}
|
40
|
+
>
|
39
41
|
<div
|
40
42
|
className='pr-4'
|
41
43
|
>
|
@@ -45,7 +47,6 @@ function DefaultAccordion(props) {
|
|
45
47
|
|
46
48
|
<motion.div
|
47
49
|
className="cursor-pointer "
|
48
|
-
onClick={() => handleOpen(index)}
|
49
50
|
initial={{ opacity: 0 }}
|
50
51
|
animate={{ opacity: 1 }}
|
51
52
|
exit={{ opacity: 1 }}
|
package/src/index.css
CHANGED
package/src/styles/tailwind.css
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@1,200&display=swap');
|
2
2
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
|
4
|
+
|
3
5
|
/*
|
4
6
|
! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com
|
5
7
|
*/
|
@@ -928,6 +930,10 @@ select{
|
|
928
930
|
left: 50%;
|
929
931
|
}
|
930
932
|
|
933
|
+
.left-10{
|
934
|
+
left: 2.5rem;
|
935
|
+
}
|
936
|
+
|
931
937
|
.left-14{
|
932
938
|
left: 3.5rem;
|
933
939
|
}
|
@@ -1012,6 +1018,10 @@ select{
|
|
1012
1018
|
top: 1.25rem;
|
1013
1019
|
}
|
1014
1020
|
|
1021
|
+
.top-8{
|
1022
|
+
top: 2rem;
|
1023
|
+
}
|
1024
|
+
|
1015
1025
|
.top-\[112px\]{
|
1016
1026
|
top: 112px;
|
1017
1027
|
}
|
@@ -6749,6 +6759,10 @@ select{
|
|
6749
6759
|
text-indent: 2rem;
|
6750
6760
|
}
|
6751
6761
|
|
6762
|
+
.font-firaCode{
|
6763
|
+
font-family: Fira Code, monospace;
|
6764
|
+
}
|
6765
|
+
|
6752
6766
|
.font-petrona{
|
6753
6767
|
font-family: Petrona, serif;
|
6754
6768
|
}
|