hds-web 1.39.1 → 1.39.3

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.
@@ -21,7 +21,7 @@ const updatePGParam = (originalLink, websiteKey) => {
21
21
  };
22
22
 
23
23
  export default function V3Header(props) {
24
- const listSize = props.HEADER_LIST.length;
24
+ // const listSize = props.HEADER_LIST.length;
25
25
 
26
26
  const [mobileNavOpen, setmobileNavOpen] = useState(false);
27
27
 
@@ -29,17 +29,19 @@ export default function V3Header(props) {
29
29
 
30
30
  const [isDeveloper, setIsDeveloper] = useState(false);
31
31
 
32
+ const [isResources, setIsResources] = useState(false);
33
+
32
34
  const [isCompany, setIsCompany] = useState(false);
33
35
 
34
36
  const [currentTab, setCurrentTab] = useState("");
35
37
 
36
- const [isShown, setIsShown] = useState(false);
38
+ // const [isShown, setIsShown] = useState(false);
37
39
 
38
40
  const [isArrowActive, setIsArrowActive] = useState(false);
39
41
 
40
42
  const signUpLink = props.signUpLink
41
43
  ? props.signUpLink
42
- : "https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default";
44
+ : "https://console.hasura.io";
43
45
 
44
46
  const logInLink = props.logInLink
45
47
  ? props.logInLink
@@ -172,6 +174,21 @@ export default function V3Header(props) {
172
174
  <>
173
175
  {renderDropdownContainer(headerList, 0)}
174
176
  {renderDropdownContainer(headerList, 1)}
177
+ {
178
+ <a href="/enterprise">
179
+ <Typography
180
+ className={
181
+ isDarkMode
182
+ ? "text-neutral-0 hover:text-blue-400 cursor-pointer"
183
+ : "hover:text-blue-600 cursor-pointer"
184
+ }
185
+ textStyle="body3c-medium"
186
+ >
187
+ {`Enterprise`}
188
+ </Typography>
189
+ </a>
190
+ }
191
+ {renderDropdownContainer(headerList, 2)}
175
192
  {
176
193
  <a href="/customers">
177
194
  <Typography
@@ -186,8 +203,6 @@ export default function V3Header(props) {
186
203
  </Typography>
187
204
  </a>
188
205
  }
189
- {renderDropdownContainer(headerList, 3)}
190
-
191
206
  {
192
207
  <a href="/pricing">
193
208
  <Typography
@@ -226,10 +241,21 @@ export default function V3Header(props) {
226
241
  primaryCard={HEADER_LIST[1]["primaryCard"]}
227
242
  secondaryCardArr={HEADER_LIST[1]["secondaryCardArr"]}
228
243
  tertiaryCard={HEADER_LIST[1]["tertiaryCard"]}
244
+ flyoutD={HEADER_LIST[1]["flyoutD"]}
245
+ />
246
+ </div>
247
+ )}
248
+ {isResources && (
249
+ <div className="product_resources">
250
+ <V3Dropdown
251
+ primaryCard={HEADER_LIST[2]["primaryCard"]}
252
+ secondaryCardArr={HEADER_LIST[2]["secondaryCardArr"]}
253
+ tertiaryCard={HEADER_LIST[2]["tertiaryCard"]}
254
+ flyoutD={HEADER_LIST[2]["flyoutD"]}
229
255
  />
230
256
  </div>
231
257
  )}
232
- {isCompany && (
258
+ {/* {isCompany && (
233
259
  <div className="product_company">
234
260
  <V3Dropdown
235
261
  primaryCard={HEADER_LIST[3]["primaryCard"]}
@@ -237,7 +263,7 @@ export default function V3Header(props) {
237
263
  tertiaryCard={HEADER_LIST[3]["tertiaryCard"]}
238
264
  />
239
265
  </div>
240
- )}
266
+ )} */}
241
267
  </div>
242
268
  </div>
243
269
  );
@@ -259,6 +285,7 @@ export default function V3Header(props) {
259
285
  function handleMbDropdownClose() {
260
286
  setmobileNavOpen(!mobileNavOpen);
261
287
  setIsDeveloper(false);
288
+ setIsResources(false);
262
289
  setIsCompany(false);
263
290
  setIsProduct(false);
264
291
  setCurrentTab("");
@@ -269,6 +296,7 @@ export default function V3Header(props) {
269
296
  }
270
297
  function handleBackClick() {
271
298
  setIsDeveloper(false);
299
+ setIsResources(false);
272
300
  setIsCompany(false);
273
301
  setIsProduct(false);
274
302
  setCurrentTab("");
@@ -285,12 +313,18 @@ export default function V3Header(props) {
285
313
  if (title === "Developer") {
286
314
  setIsDeveloper(true);
287
315
  }
316
+ if (title === "Resources") {
317
+ setIsResources(true);
318
+ }
288
319
  if (title === "Customers") {
289
320
  window.location.href = "/customers";
290
321
  }
291
322
  if (title === "Pricing") {
292
323
  window.location.href = "/pricing";
293
324
  }
325
+ if (title === "Enterprise") {
326
+ window.location.href = "/enterprise";
327
+ }
294
328
  if (title === "Product") {
295
329
  setIsProduct(true);
296
330
  }
@@ -304,10 +338,12 @@ export default function V3Header(props) {
304
338
  setCurrentTab("Product");
305
339
  } else if (isDeveloper) {
306
340
  setCurrentTab("Developer");
341
+ } else if (isResources) {
342
+ setCurrentTab("Resources");
307
343
  } else if (isCompany) {
308
344
  setCurrentTab("Company");
309
345
  }
310
- }, [isProduct, isDeveloper, isCompany]);
346
+ }, [isProduct, isDeveloper, isCompany, isResources]);
311
347
 
312
348
  // **************************** //
313
349
 
@@ -336,7 +372,7 @@ export default function V3Header(props) {
336
372
  <div className={"h-full " + (mobileNavOpen ? " hds-hidden" : "")}>
337
373
  {!props.hideSearch && <AlgoliaSearch {...props} />}
338
374
  </div>
339
- {!(isCompany || isDeveloper || isProduct) && (
375
+ {!(isCompany || isDeveloper || isProduct || isResources) && (
340
376
  <motion.div
341
377
  initial={{ opacity: 0 }}
342
378
  animate={{ opacity: 1 }}
@@ -435,7 +471,7 @@ export default function V3Header(props) {
435
471
  >
436
472
  <div className="bg-neutral-100 h-[calc(100%-80px)] rounded-2xl overflow-y-scroll scrollbar-hide">
437
473
  <div className="pt-6 pb-4 tb:mr-[12px] mr-[30px] min-h-[36px] flex flex-row justify-between items-center sticky top-0 bg-neutral-100 z-50 ">
438
- {(isCompany || isDeveloper || isProduct) && (
474
+ {(isCompany || isDeveloper || isProduct || isResources) && (
439
475
  <div
440
476
  className=" flex flex-row justify-start z-10"
441
477
  onClick={() => handleBackClick()}
@@ -460,7 +496,7 @@ export default function V3Header(props) {
460
496
  {currentTab}
461
497
  </Typography>
462
498
  </motion.div>
463
- {(isCompany || isDeveloper || isProduct) && (
499
+ {(isCompany || isDeveloper || isProduct || isResources) && (
464
500
  <motion.div
465
501
  initial={{ opacity: 0 }}
466
502
  animate={{ opacity: 1 }}
@@ -477,7 +513,7 @@ export default function V3Header(props) {
477
513
  )}
478
514
  </div>
479
515
  <AnimatePresence mode="wait" exit={false}>
480
- {isProduct || isDeveloper || isCompany ? (
516
+ {isProduct || isDeveloper || isCompany || isResources ? (
481
517
  <motion.div
482
518
  key="hey"
483
519
  exit={{ opacity: 0, y: [0, 300] }}
@@ -487,7 +523,7 @@ export default function V3Header(props) {
487
523
  exit: { duration: 0.3 },
488
524
  opacity: { ease: "easeIn" },
489
525
  }}
490
- when={isProduct || isDeveloper || isCompany}
526
+ when={isProduct || isDeveloper || isCompany || isResources}
491
527
  className="flex flex-col justify-between "
492
528
  >
493
529
  <div className="flex flex-col justify-between rounded-2xl h-full">
@@ -534,6 +570,48 @@ export default function V3Header(props) {
534
570
  />
535
571
  </div>
536
572
  ))}
573
+ <a href="https://hasura.io/enterprise">
574
+ <div
575
+ key={`Contact`}
576
+ className="flex justify-between items-center p-4 cursor-pointer group"
577
+ >
578
+ <div className="flex items-center justify-center gap-2">
579
+ {/* <Icon height="h-5 w-5" variant="home03" strokeColor="#3970FD" /> */}
580
+ <Typography
581
+ textStyle="body3c-medium"
582
+ className="text-neutral-700 hover:text-neutral-1000 transition-all duration-300 ease-in-out"
583
+ >
584
+ Enterprise
585
+ </Typography>
586
+ </div>
587
+ <Icon
588
+ height="h-5 w-5 stroke-[1.5px] group-hover:translate-x-1 ease-in-out transition duration-300"
589
+ variant="chevronright"
590
+ strokeClass="stroke-neutral-500"
591
+ />
592
+ </div>
593
+ </a>
594
+ <a href="https://hasura.io/customers">
595
+ <div
596
+ key={`Contact`}
597
+ className="flex justify-between items-center p-4 cursor-pointer group"
598
+ >
599
+ <div className="flex items-center justify-center gap-2">
600
+ {/* <Icon height="h-5 w-5" variant="home03" strokeColor="#3970FD" /> */}
601
+ <Typography
602
+ textStyle="body3c-medium"
603
+ className="text-neutral-700 hover:text-neutral-1000 transition-all duration-300 ease-in-out"
604
+ >
605
+ Customers
606
+ </Typography>
607
+ </div>
608
+ <Icon
609
+ height="h-5 w-5 stroke-[1.5px] group-hover:translate-x-1 ease-in-out transition duration-300"
610
+ variant="chevronright"
611
+ strokeClass="stroke-neutral-500"
612
+ />
613
+ </div>
614
+ </a>
537
615
  <a href="https://hasura.io/contact-us">
538
616
  <div
539
617
  key={`Contact`}
@@ -631,8 +709,7 @@ V3Header.defaultProps = {
631
709
  cta_leftVariantIcon: "zap",
632
710
  cta_leftVariantIconColor: "#6C737F",
633
711
  cta_text: "Get Started",
634
- cta_link:
635
- "https://cloud.hasura.io/signup?pg=nav&plcmt=product-dropdown&cta=get-started",
712
+ cta_link: "https://console.hasura.io/",
636
713
  },
637
714
  ],
638
715
  },
@@ -649,44 +726,51 @@ V3Header.defaultProps = {
649
726
  },
650
727
  {
651
728
  description: "",
652
- href: "/graphql/database/mongodb",
729
+ href: "/graphql/database/mysql",
653
730
  icon: "database01",
654
- name: "MongoDB",
731
+ name: "MySQL",
655
732
  strokeClass: "stroke-blue-500",
656
733
  },
657
734
  {
658
735
  description: "",
659
- href: "/graphql/database/mysql",
736
+ href: "/graphql/database/elasticsearch",
660
737
  icon: "database01",
661
- name: "MySQL",
738
+ name: "Elasticsearch",
662
739
  strokeClass: "stroke-blue-500",
663
740
  },
664
741
  {
665
742
  description: "",
666
- href: "/graphql/database/snowflake",
743
+ href: "/graphql/database/sql-server",
667
744
  icon: "database01",
668
- name: "Snowflake",
745
+ name: "SQL Server",
669
746
  strokeClass: "stroke-blue-500",
670
747
  },
671
748
  {
672
749
  description: "",
673
- href: "/graphql/database/oracle",
750
+ href: "/graphql/database/mongodb",
674
751
  icon: "database01",
675
- name: "Oracle",
752
+ name: "MongoDB",
676
753
  strokeClass: "stroke-blue-500",
677
754
  },
678
755
  {
679
756
  description: "",
680
- href: "/graphql/database/sql-server",
757
+ href: "/graphql/database/snowflake",
681
758
  icon: "database01",
682
- name: "SQL Server",
759
+ name: "Snowflake",
760
+ strokeClass: "stroke-blue-500",
761
+ },
762
+ {
763
+ description: "",
764
+ href: "/graphql/database/clickhouse",
765
+ icon: "database01",
766
+ name: "ClickHouse",
683
767
  strokeClass: "stroke-blue-500",
684
768
  },
685
769
  {
686
770
  description: "",
687
771
  href: "/graphql/database",
688
772
  icon: "database01",
689
- name: "See all",
773
+ name: "More",
690
774
  strokeClass: "stroke-blue-500",
691
775
  },
692
776
  ],
@@ -694,7 +778,8 @@ V3Header.defaultProps = {
694
778
  ],
695
779
  flyoutD: {
696
780
  link: "https://hasura.io/ddn",
697
- cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1716906625/Frame_12754_2_iaixzx.png`,
781
+ cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1721205269/Frame_2610016_1_jluh5u.png`,
782
+ cardImgAlt: "Hasura DDN",
698
783
  },
699
784
  },
700
785
  {
@@ -704,56 +789,16 @@ V3Header.defaultProps = {
704
789
  childArray: [
705
790
  {
706
791
  description: "",
707
- href: "/docs/latest/index/",
792
+ href: "/docs/3.0/index/",
708
793
  icon: "file02",
709
794
  name: "Documentation",
710
795
  strokeClass: "stroke-neutral-500",
711
796
  },
712
797
  {
713
798
  description: "",
714
- href: "/hub",
715
- icon: "hasura",
716
- name: "Hasura Hub",
717
- strokeClass: "stroke-neutral-500",
718
- },
719
- {
720
- description: "",
721
- href: "/reference-app/",
799
+ href: "/connectors",
722
800
  icon: "route",
723
- name: "Guides",
724
- strokeClass: "stroke-neutral-500",
725
- },
726
- {
727
- description: "",
728
- href: "/graphql/",
729
- icon: "asterisk02",
730
- name: "GraphQL Hub",
731
- strokeClass: "stroke-neutral-500",
732
- },
733
- {
734
- description: "",
735
- href: "https://cloud.hasura.io/public/graphiql",
736
- icon: "codebrowser",
737
- name: "GraphiQL",
738
- strokeClass: "stroke-neutral-500",
739
- },
740
- {
741
- description: "",
742
- href: "/changelog",
743
- icon: "gitpullrequest",
744
- name: "Changelog",
745
- strokeClass: "stroke-neutral-500",
746
- },
747
- ],
748
- label: "BUILD",
749
- },
750
- {
751
- childArray: [
752
- {
753
- description: "",
754
- href: "/blog",
755
- icon: "bookopen01",
756
- name: "Blog",
801
+ name: "Connector Hub",
757
802
  strokeClass: "stroke-neutral-500",
758
803
  },
759
804
  {
@@ -763,22 +808,8 @@ V3Header.defaultProps = {
763
808
  name: "Tutorials",
764
809
  strokeClass: "stroke-neutral-500",
765
810
  },
766
- {
767
- description: "",
768
- href: "/events",
769
- icon: "calendarplus02",
770
- name: "Events",
771
- strokeClass: "stroke-neutral-500",
772
- },
773
- {
774
- description: "",
775
- href: "/sample-apps/",
776
- icon: "box",
777
- name: "Resources",
778
- strokeClass: "stroke-neutral-500",
779
- },
780
811
  ],
781
- label: "Learn",
812
+ label: "BUILD",
782
813
  },
783
814
  {
784
815
  childArray: [
@@ -814,107 +845,64 @@ V3Header.defaultProps = {
814
845
  label: "Connect",
815
846
  },
816
847
  ],
817
- tertiaryCard: [
818
- {
819
- title: "HasuraCon 2023 is here!",
820
-
821
- title_colorClass: "text-neutral-900",
822
- img_url:
823
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/hascon_211daeb83a.png",
824
- },
825
- {
826
- title: "Top 6 Architecture Trends for API Development",
827
-
828
- title_colorClass: "text-neutral-900",
829
- img_url:
830
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/api_trends_0a035678d8.png",
831
- },
832
- {
833
- title: "Announcing Hasura integration with Snowflake",
834
-
835
- title_colorClass: "text-neutral-900",
836
- img_url:
837
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/snowflake_def20494db.png",
838
- },
839
- ],
840
- },
841
- {
842
- title: "Customers",
843
- href: "",
848
+ flyoutD: {
849
+ link: "https://hasura.io/events/community-call/latest",
850
+ cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1723398379/cc-blog-july_4_d9mzrf.png`,
851
+ cardImgAlt: "Hasura Community Call",
852
+ },
844
853
  },
845
-
846
854
  {
847
- title: "Company",
855
+ title: "Resources",
848
856
  secondaryCardArr: [
849
857
  {
850
858
  childArray: [
851
859
  {
852
860
  description: "",
853
- href: "/about/",
854
- icon: "pentool02",
855
- name: "Our Story",
861
+ href: "/blog",
862
+ icon: "bookopen01",
863
+ name: "Blogs",
864
+ strokeClass: "stroke-neutral-500",
865
+ },
866
+ {
867
+ description: "",
868
+ href: "/events?category=Webinar#wall-section",
869
+ icon: "videorecorder",
870
+ name: "Webinars",
856
871
  strokeClass: "stroke-neutral-500",
857
872
  },
858
873
  {
859
874
  description: "",
860
- href: "/partners",
861
- icon: "intersectcircle",
862
- name: "Partners",
875
+ href: "/graphql/",
876
+ icon: "home04",
877
+ name: "GraphQL Hub",
863
878
  strokeClass: "stroke-neutral-500",
864
879
  },
865
880
  {
866
881
  description: "",
867
- href: "/careers/",
868
- icon: "hearthand",
869
- name: "Work at Hasura",
882
+ href: "/events",
883
+ icon: "calendarplus02",
884
+ name: "Events",
885
+ strokeClass: "stroke-neutral-500",
886
+ },
887
+ {
888
+ description: "",
889
+ href: "/",
890
+ icon: "file05",
891
+ name: "Whitepapers",
892
+ strokeClass: "stroke-neutral-500",
893
+ },
894
+ {
895
+ description: "",
896
+ href: "https://supergraph.io/",
897
+ icon: "beziercurve02",
898
+ name: "Supergraph Manifesto",
870
899
  strokeClass: "stroke-neutral-500",
871
900
  },
872
- // {
873
- // description: '',
874
- // href: '/press/',
875
- // icon: 'headingsquare',
876
- // name: 'Newsroom',
877
- // strokeClass: 'stroke-neutral-500'
878
- // },
879
- // {
880
- // description: '',
881
- // href: '/brand',
882
- // icon: 'star06',
883
- // name: 'Brand',
884
- // strokeClass: 'stroke-neutral-500'
885
- // },
886
901
  ],
887
- label: "Company",
888
- },
889
- ],
890
- tertiaryCard: [
891
- {
892
- title: "HasuraCon 2023 is here!",
893
-
894
- title_colorClass: "text-neutral-900",
895
- img_url:
896
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/hascon_211daeb83a.png",
897
- },
898
- {
899
- title: "Top 6 Architecture Trends for API Development",
900
-
901
- title_colorClass: "text-neutral-900",
902
- img_url:
903
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/api_trends_0a035678d8.png",
904
- },
905
- {
906
- title: "Announcing Hasura integration with Snowflake",
907
-
908
- title_colorClass: "text-neutral-900",
909
- img_url:
910
- "https://res.cloudinary.com/hasura-cms-uploads/image/upload/v1687040455/snowflake_def20494db.png",
902
+ label: "RESOURCES",
911
903
  },
912
904
  ],
913
905
  },
914
- {
915
- title: "Pricing",
916
- href: "",
917
- },
918
906
  ],
919
907
  headerUrl: "/",
920
908
  };
@@ -11156,6 +11156,10 @@ select{
11156
11156
  min-width: 18rem;
11157
11157
  }
11158
11158
 
11159
+ .tb\:min-w-\[200px\]{
11160
+ min-width: 200px;
11161
+ }
11162
+
11159
11163
  .tb\:min-w-\[310px\]{
11160
11164
  min-width: 310px;
11161
11165
  }
@@ -11903,6 +11907,14 @@ select{
11903
11907
  }
11904
11908
 
11905
11909
  @media (min-width: 768px){
11910
+ .md\:ml-16{
11911
+ margin-left: 4rem;
11912
+ }
11913
+
11914
+ .md\:flex-row{
11915
+ flex-direction: row;
11916
+ }
11917
+
11906
11918
  .md\:px-6{
11907
11919
  padding-left: 1.5rem;
11908
11920
  padding-right: 1.5rem;
@@ -12329,6 +12341,10 @@ select{
12329
12341
  }
12330
12342
 
12331
12343
  @media (min-width: 1024px){
12344
+ .lg\:ml-0{
12345
+ margin-left: 0px;
12346
+ }
12347
+
12332
12348
  .lg\:flex{
12333
12349
  display: flex;
12334
12350
  }
@@ -12341,6 +12357,14 @@ select{
12341
12357
  height: auto;
12342
12358
  }
12343
12359
 
12360
+ .lg\:max-w-\[712px\]{
12361
+ max-width: 712px;
12362
+ }
12363
+
12364
+ .lg\:max-w-\[716px\]{
12365
+ max-width: 716px;
12366
+ }
12367
+
12344
12368
  .lg\:grid-cols-2{
12345
12369
  grid-template-columns: repeat(2, minmax(0, 1fr));
12346
12370
  }
@@ -12993,6 +13017,12 @@ select{
12993
13017
  }
12994
13018
  }
12995
13019
 
13020
+ @media (min-width: 1536px){
13021
+ .\32xl\:max-w-\[756px\]{
13022
+ max-width: 756px;
13023
+ }
13024
+ }
13025
+
12996
13026
  .\[\&\>\*\]\:mb-8>*{
12997
13027
  margin-bottom: 2rem;
12998
13028
  }