hds-web 1.36.7 → 1.36.9

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.
@@ -1,85 +1,14 @@
1
1
  import React from "react";
2
- import { Typography } from "../../../foundation/Typography";
3
- import { Icon } from "../../common-components";
4
2
 
5
- export default function FlyoutD(props) {
3
+ export default function FlyoutD() {
6
4
  return (
7
- <div className="flex flex-col justify-between">
8
- <a
9
- href={props.link}
10
- className="flex flex-col gap-4 tb-l:gap-0 tb-l:flex-col w-full h-full justify-between group/icon px-6 "
11
- >
12
- {props.IconVariant && (
13
- <div className="w-full h-full tb-l:pb-6">
14
- {/* <div className=" p-2.5 rounded-2xl w-14 h-14 tb-l:w-full tb-xl:w-[175px] tb-l:h-[124px] bg-neutral-150 items-center justify-center transition-all duration-300 flex group-hover/icon:bg-blue-200">
15
- <Icon
16
- height=" tb-l:h-12 tb-l:w-12 h-6 w-6"
17
- variant={props.IconVariant}
18
- className=" stroke-neutral-800 group-hover/icon:stroke-blue-600 cursor-pointer transition-all duration-300"
19
- />
20
- </div> */}
21
- <img
22
- src={`https://res.cloudinary.com/dh8fp23nd/image/upload/v1712003758/v3-federation_1_hmumso.png`}
23
- className=" rounded-lg w-14 h-14 tb-l:w-full tb-xl:min-w-[175px] tb-l:h-[124px] flex border border-neutral-200 bg-blue-200"
24
- alt="hasura-ddn-illus"
25
- />
26
- </div>
27
- )}
28
- <div className="flex flex-col gap-1 w-full h-full">
29
- {props.btnLabel && (
30
- <div className="flex items-center">
31
- <Typography
32
- textStyle="body3c-medium"
33
- className="text-neutral-900 whitespace-nowrap group-hover/icon:text-blue-600 transition-all duration-300 "
34
- >
35
- {props.btnLabel}
36
- </Typography>
37
- </div>
38
- )}
39
- {props.description && (
40
- <div>
41
- <Typography
42
- textStyle="body3c"
43
- className="text-neutral-600 line-clamp-5"
44
- >
45
- {props.description}
46
- </Typography>
47
- </div>
48
- )}
49
- </div>
50
- </a>
51
- <a
52
- href={`https://hasura.io/blog/announcing-hasura-data-delivery-network-beta`}
53
- className="w-full mt-4 inline-block pr-6 ml-3"
54
- >
55
- <div className="flex group/icon py-2 pr-3 rounded-lg flex-row w-full justify-between tb:min-w-[150px] items-center hover:bg-neutral-100 pl-3">
56
- <div className="flex gap-2 flex-row items-center">
57
- <div className="flex rounded-lg items-center group-hover:bg-white">
58
- <Icon
59
- height={
60
- "h-5 w-5 stroke-2 " + "group-hover/icon:stroke-blue-500 "
61
- }
62
- variant={`bookopen01`}
63
- strokeClass={`stroke-neutral-500`}
64
- />
65
- </div>
66
- <Typography
67
- textStyle="body3c-medium"
68
- className="text-neutral-1000 group-hover/icon:text-blue-600 hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip"
69
- >
70
- Read announcement
71
- </Typography>
72
- </div>
73
- <div className="flex group-hover/icon:translate-x-1 transform transition-all duration-200 ease-in-out ">
74
- <Icon
75
- height={
76
- "h-4 w-4 stroke-2 invisible group-hover/icon:visible transition-all ease-in-out "
77
- }
78
- variant={"chevronright"}
79
- strokeClass={"stroke-blue-500"}
80
- />
81
- </div>
82
- </div>
5
+ <div className="">
6
+ <a href={`https://hasura.io/ddn`}>
7
+ <img
8
+ src="https://res.cloudinary.com/dh8fp23nd/image/upload/v1716906625/Frame_12754_2_iaixzx.png"
9
+ alt="Hasura DDN"
10
+ className="w-full min-w-[204px] max-w-[204px] mt-2 tb-l:mt-0"
11
+ />
83
12
  </a>
84
13
  </div>
85
14
  );
@@ -20,8 +20,6 @@ const updatePGParam = (originalLink, websiteKey) => {
20
20
  } else return originalLink;
21
21
  };
22
22
 
23
- const isBrowser = typeof window !== "undefined";
24
-
25
23
  export default function V3Header(props) {
26
24
  const listSize = props.HEADER_LIST.length;
27
25
  const [mobileNavOpen, setmobileNavOpen] = useState(false);
@@ -53,6 +51,8 @@ export default function V3Header(props) {
53
51
  };
54
52
 
55
53
  const handleDropdownLeave = (index) => {
54
+ // return null;
55
+
56
56
  setDropdownVisibility((prevVisibility) => {
57
57
  const updatedVisibility = [...prevVisibility];
58
58
  updatedVisibility[index] = false;
@@ -564,11 +564,11 @@ V3Header.defaultProps = {
564
564
  title: "Product",
565
565
  primaryCard: {
566
566
  iconVariant: "layersthree01",
567
- mainDescription: `Discover Hasura's core capabilities for automating the building, securing, optimizing, and deploying of APIs.`,
568
- primaryBtnLabel: "Hasura Data API Platform",
567
+ mainDescription: `Enable your backend team to deliver an incredible unified API on all your data effortlessly.`,
568
+ primaryBtnLabel: "What is Hasura?",
569
569
  primaryBtnCTA: "/products",
570
570
  strokeClass: "stroke-neutral-800",
571
- tertiaryBtn: [
571
+ secondaryBtn: [
572
572
  {
573
573
  cta_leftVariantIcon: "checksquarebroken",
574
574
  cta_leftVariantIconColor: "#6C737F",
@@ -576,98 +576,74 @@ V3Header.defaultProps = {
576
576
  cta_link: "/pricing",
577
577
  },
578
578
  ],
579
- secondaryBtn: [
579
+ tertiaryBtn: [
580
580
  {
581
581
  cta_leftVariantIcon: "zap",
582
582
  cta_leftVariantIconColor: "#6C737F",
583
- cta_text: "Deployment Options",
583
+ cta_text: "Get Started",
584
584
  cta_link: "/products/deployment",
585
585
  },
586
586
  ],
587
587
  },
588
588
  secondaryCardArr: [
589
589
  {
590
+ label: "CONNECTORS",
590
591
  childArray: [
591
592
  {
592
593
  description: "",
593
- href: "/products/instant-api",
594
- icon: "lightning01",
595
- name: "Instant API",
596
- strokeClass: "stroke-neutral-500",
597
- },
598
- {
599
- description: "",
600
- href: "/products/authorization",
601
- icon: "eye",
602
- name: "Authorization",
594
+ href: "/connectors/postgres",
595
+ icon: "database01",
596
+ name: "PostgreSQL",
603
597
  strokeClass: "stroke-neutral-500",
604
598
  },
605
599
  {
606
600
  description: "",
607
- href: "/products/performance",
608
- icon: "speedometer03",
609
- name: "Performance",
601
+ href: "/connectors/mongodb",
602
+ icon: "database01",
603
+ name: "MongoDB",
610
604
  strokeClass: "stroke-neutral-500",
611
605
  },
612
606
  {
613
607
  description: "",
614
- href: "/products/federation",
615
- icon: "data",
616
- name: "Federation",
608
+ href: "/connectors#connectors-list",
609
+ icon: "database01",
610
+ name: "MySQL",
617
611
  strokeClass: "stroke-neutral-500",
618
612
  },
619
613
  {
620
614
  description: "",
621
- href: "/products/api-security",
622
- icon: "shieldtick",
623
- name: "API Security",
615
+ href: "/connectors#connectors-list",
616
+ icon: "database01",
617
+ name: "Snowflake",
624
618
  strokeClass: "stroke-neutral-500",
625
619
  },
626
620
  {
627
621
  description: "",
628
- href: "/products/observability",
629
- icon: "piechart01",
630
- name: "Observability",
622
+ href: "/connectors#connectors-list",
623
+ icon: "database01",
624
+ name: "Oracle",
631
625
  strokeClass: "stroke-neutral-500",
632
626
  },
633
- ],
634
- label: "CAPABILITIES",
635
- },
636
- {
637
- childArray: [
638
627
  {
639
628
  description: "",
640
- href: "/graphql/database",
629
+ href: "/connectors/sqlserver",
641
630
  icon: "database01",
642
- name: "All Databases",
631
+ name: "SQL Server",
643
632
  strokeClass: "stroke-neutral-500",
644
633
  },
645
634
  {
646
635
  description: "",
647
- href: "/graphql/database?category=planned",
648
- icon: "checksquare",
649
- name: "Planned Databases",
636
+ href: "/connectors#connectors-list",
637
+ icon: "database01",
638
+ name: "See all",
650
639
  strokeClass: "stroke-neutral-500",
651
640
  },
652
641
  ],
653
- label: "Data sources",
654
642
  },
655
643
  ],
656
644
  flyoutD: {
657
645
  link: "https://hasura.io/ddn",
658
- IconVariant: "aibot",
659
- btnLabel: "The future of data delivery",
660
- description:
661
- "Introducing Hasura Data Delivery Network – a new way to ship amazing APIs on all data!",
662
- childArray: [
663
- {
664
- description: "",
665
- href: "/products/instant-api",
666
- icon: "lightning01",
667
- name: "Instant API",
668
- strokeClass: "stroke-neutral-500",
669
- },
670
- ],
646
+ cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1716906625/Frame_12754_2_iaixzx.png`,
671
647
  },
672
648
  },
673
649
  {
@@ -1359,6 +1359,10 @@ select{
1359
1359
  margin-bottom: 1.5rem;
1360
1360
  }
1361
1361
 
1362
+ .mb-8{
1363
+ margin-bottom: 2rem;
1364
+ }
1365
+
1362
1366
  .mb-9{
1363
1367
  margin-bottom: 2.25rem;
1364
1368
  }
@@ -1519,18 +1523,15 @@ select{
1519
1523
  margin-top: 70px;
1520
1524
  }
1521
1525
 
1522
- .line-clamp-3{
1523
- overflow: hidden;
1524
- display: -webkit-box;
1525
- -webkit-box-orient: vertical;
1526
- -webkit-line-clamp: 3;
1526
+ .mr-6{
1527
+ margin-right: 1.5rem;
1527
1528
  }
1528
1529
 
1529
- .line-clamp-5{
1530
+ .line-clamp-3{
1530
1531
  overflow: hidden;
1531
1532
  display: -webkit-box;
1532
1533
  -webkit-box-orient: vertical;
1533
- -webkit-line-clamp: 5;
1534
+ -webkit-line-clamp: 3;
1534
1535
  }
1535
1536
 
1536
1537
  .block{
@@ -2055,6 +2056,10 @@ select{
2055
2056
  min-width: 18rem;
2056
2057
  }
2057
2058
 
2059
+ .min-w-\[204px\]{
2060
+ min-width: 204px;
2061
+ }
2062
+
2058
2063
  .min-w-\[20px\]{
2059
2064
  min-width: 20px;
2060
2065
  }
@@ -2097,6 +2102,10 @@ select{
2097
2102
  min-width: 100%;
2098
2103
  }
2099
2104
 
2105
+ .min-w-\[56px\]{
2106
+ min-width: 56px;
2107
+ }
2108
+
2100
2109
  .max-w-2xl{
2101
2110
  max-width: 42rem;
2102
2111
  }
@@ -2129,6 +2138,10 @@ select{
2129
2138
  max-width: 18rem;
2130
2139
  }
2131
2140
 
2141
+ .max-w-\[204px\]{
2142
+ max-width: 204px;
2143
+ }
2144
+
2132
2145
  .max-w-\[20px\]{
2133
2146
  max-width: 20px;
2134
2147
  }
@@ -6727,10 +6740,6 @@ select{
6727
6740
  padding-right: 12rem;
6728
6741
  }
6729
6742
 
6730
- .pr-6{
6731
- padding-right: 1.5rem;
6732
- }
6733
-
6734
6743
  .pr-7{
6735
6744
  padding-right: 1.75rem;
6736
6745
  }
@@ -10518,10 +10527,6 @@ select{
10518
10527
  visibility: visible;
10519
10528
  }
10520
10529
 
10521
- .group\/card:hover .group-hover\/card\:visible{
10522
- visibility: visible;
10523
- }
10524
-
10525
10530
  .group\/eventListing:hover .group-hover\/eventListing\:visible{
10526
10531
  visibility: visible;
10527
10532
  }
@@ -10548,12 +10553,6 @@ select{
10548
10553
  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));
10549
10554
  }
10550
10555
 
10551
- .group\/card:hover .group-hover\/card\:translate-x-1{
10552
- --tw-translate-x: 0.25rem;
10553
- -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));
10554
- 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));
10555
- }
10556
-
10557
10556
  .group\/eventListing:hover .group-hover\/eventListing\:translate-x-\[0\.15rem\]{
10558
10557
  --tw-translate-x: 0.15rem;
10559
10558
  -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));
@@ -10619,11 +10618,6 @@ select{
10619
10618
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
10620
10619
  }
10621
10620
 
10622
- .group\/icon:hover .group-hover\/icon\:bg-blue-200{
10623
- --tw-bg-opacity: 1;
10624
- background-color: rgb(223 232 255 / var(--tw-bg-opacity));
10625
- }
10626
-
10627
10621
  .group:hover .group-hover\:bg-amber-300{
10628
10622
  --tw-bg-opacity: 1;
10629
10623
  background-color: rgb(255 206 112 / var(--tw-bg-opacity));
@@ -10695,10 +10689,6 @@ select{
10695
10689
  stroke: #3970FD;
10696
10690
  }
10697
10691
 
10698
- .group\/icon:hover .group-hover\/icon\:stroke-blue-600{
10699
- stroke: #1E56E3;
10700
- }
10701
-
10702
10692
  .group:hover .group-hover\:stroke-blue-500{
10703
10693
  stroke: #3970FD;
10704
10694
  }
@@ -10730,6 +10720,11 @@ select{
10730
10720
  color: rgb(30 86 227 / var(--tw-text-opacity));
10731
10721
  }
10732
10722
 
10723
+ .group\/card:hover .group-hover\/card\:text-neutral-1000{
10724
+ --tw-text-opacity: 1;
10725
+ color: rgb(0 6 21 / var(--tw-text-opacity));
10726
+ }
10727
+
10733
10728
  .group\/icon:hover .group-hover\/icon\:text-blue-600{
10734
10729
  --tw-text-opacity: 1;
10735
10730
  color: rgb(30 86 227 / var(--tw-text-opacity));
@@ -10944,8 +10939,8 @@ select{
10944
10939
  position: absolute;
10945
10940
  }
10946
10941
 
10947
- .tb\:left-6{
10948
- left: 1.5rem;
10942
+ .tb\:left-3{
10943
+ left: 0.75rem;
10949
10944
  }
10950
10945
 
10951
10946
  .tb\:left-auto{
@@ -11120,6 +11115,10 @@ select{
11120
11115
  width: 100%;
11121
11116
  }
11122
11117
 
11118
+ .tb\:min-w-\[140px\]{
11119
+ min-width: 140px;
11120
+ }
11121
+
11123
11122
  .tb\:min-w-\[150px\]{
11124
11123
  min-width: 150px;
11125
11124
  }
@@ -11148,6 +11147,22 @@ select{
11148
11147
  min-width: 500px;
11149
11148
  }
11150
11149
 
11150
+ .tb\:min-w-\[130px\]{
11151
+ min-width: 130px;
11152
+ }
11153
+
11154
+ .tb\:min-w-\[120px\]{
11155
+ min-width: 120px;
11156
+ }
11157
+
11158
+ .tb\:min-w-\[116px\]{
11159
+ min-width: 116px;
11160
+ }
11161
+
11162
+ .tb\:min-w-\[135px\]{
11163
+ min-width: 135px;
11164
+ }
11165
+
11151
11166
  .tb\:max-w-\[17rem\]{
11152
11167
  max-width: 17rem;
11153
11168
  }
@@ -12020,6 +12035,10 @@ select{
12020
12035
  margin-top: 0px;
12021
12036
  }
12022
12037
 
12038
+ .tb-l\:-ml-2{
12039
+ margin-left: -0.5rem;
12040
+ }
12041
+
12023
12042
  .tb-l\:block{
12024
12043
  display: block;
12025
12044
  }
@@ -12036,14 +12055,6 @@ select{
12036
12055
  display: none;
12037
12056
  }
12038
12057
 
12039
- .tb-l\:h-12{
12040
- height: 3rem;
12041
- }
12042
-
12043
- .tb-l\:h-\[124px\]{
12044
- height: 124px;
12045
- }
12046
-
12047
12058
  .tb-l\:h-full{
12048
12059
  height: 100%;
12049
12060
  }
@@ -12056,14 +12067,6 @@ select{
12056
12067
  width: 50%;
12057
12068
  }
12058
12069
 
12059
- .tb-l\:w-12{
12060
- width: 3rem;
12061
- }
12062
-
12063
- .tb-l\:w-\[170px\]{
12064
- width: 170px;
12065
- }
12066
-
12067
12070
  .tb-l\:w-\[38\%\]{
12068
12071
  width: 38%;
12069
12072
  }
@@ -12312,21 +12315,11 @@ select{
12312
12315
  }
12313
12316
  }
12314
12317
 
12315
- @media (min-width: 970px){
12316
- .tb-xl\:w-\[175px\]{
12317
- width: 175px;
12318
- }
12319
-
12320
- .tb-xl\:w-\[223px\]{
12321
- width: 223px;
12322
- }
12323
-
12324
- .tb-xl\:min-w-\[175px\]{
12325
- min-width: 175px;
12318
+ @media (min-width: 1024px){
12319
+ .lg\:mr-6{
12320
+ margin-right: 1.5rem;
12326
12321
  }
12327
- }
12328
12322
 
12329
- @media (min-width: 1024px){
12330
12323
  .lg\:flex{
12331
12324
  display: flex;
12332
12325
  }
@@ -12339,6 +12332,10 @@ select{
12339
12332
  height: auto;
12340
12333
  }
12341
12334
 
12335
+ .lg\:min-w-\[56px\]{
12336
+ min-width: 56px;
12337
+ }
12338
+
12342
12339
  .lg\:grid-cols-2{
12343
12340
  grid-template-columns: repeat(2, minmax(0, 1fr));
12344
12341
  }
@@ -12366,6 +12363,10 @@ select{
12366
12363
  padding-right: 2.25rem;
12367
12364
  }
12368
12365
 
12366
+ .lg\:pt-2{
12367
+ padding-top: 0.5rem;
12368
+ }
12369
+
12369
12370
  .db-s\:mb-0{
12370
12371
  margin-bottom: 0px;
12371
12372
  }