hds-web 1.0.0 → 1.0.2

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.
Files changed (48) hide show
  1. package/.github/workflows/chromatic.yml +26 -0
  2. package/dist/index.css +4 -2
  3. package/dist/index.es.css +4 -2
  4. package/dist/index.es.js +11 -3
  5. package/dist/index.js +11 -3
  6. package/package.json +7 -3
  7. package/src/HDS/assets/icons/HasuraPrimary.svg +10 -0
  8. package/src/HDS/components/Avatars/profileAvatar.js +26 -14
  9. package/src/HDS/components/BadgesCaption/badges.js +1 -1
  10. package/src/HDS/components/Buttons/button.js +25 -14
  11. package/src/HDS/components/Cards/Feedback/feedback.js +25 -0
  12. package/src/HDS/components/Cards/Feedback/index.js +1 -0
  13. package/src/HDS/components/Cards/Link/index.js +2 -0
  14. package/src/HDS/components/Cards/Link/link.js +86 -0
  15. package/src/HDS/components/Cards/Link/resources.js +53 -0
  16. package/src/HDS/components/Cards/Menu/flyoutB.js +64 -0
  17. package/src/HDS/components/Cards/Menu/index.js +2 -1
  18. package/src/HDS/components/Cards/Misc/iconCard.js +22 -0
  19. package/src/HDS/components/Cards/Misc/index.js +2 -1
  20. package/src/HDS/components/Cards/Misc/talkCard.js +48 -27
  21. package/src/HDS/components/Cards/TalkDetailCard/index.js +1 -0
  22. package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +68 -0
  23. package/src/HDS/components/Carousels/carouselCard.js +24 -13
  24. package/src/HDS/components/Headers/customHeader.js +50 -41
  25. package/src/HDS/components/Headers/v3Header.js +127 -100
  26. package/src/HDS/components/Hero/h1.js +189 -0
  27. package/src/HDS/components/Hero/h2.js +198 -0
  28. package/src/HDS/components/Hero/index.js +2 -0
  29. package/src/HDS/components/Snippet/CodeSnippet.js +58 -58
  30. package/src/HDS/components/Snippet/index.js +1 -1
  31. package/src/HDS/components/Tables/index.js +2 -1
  32. package/src/HDS/components/Tables/tableB.js +86 -0
  33. package/src/HDS/components/common-components/Icon/IconMap.js +11 -2
  34. package/src/HDS/components/index.js +2 -1
  35. package/src/HDS/foundation/Animations/featureCard.js +77 -0
  36. package/src/HDS/foundation/Animations/index.js +1 -0
  37. package/src/HDS/foundation/ColorPalette/color.js +96 -1
  38. package/src/HDS/index.js +2 -1
  39. package/src/HDS/modules/TextCard/index.js +1 -0
  40. package/src/HDS/modules/TextCard/textCard.js +132 -0
  41. package/src/HDS/modules/index.js +1 -0
  42. package/src/index.css +154 -0
  43. package/src/styles/tailwind.css +1533 -239
  44. package/tailwind.config.js +19 -0
  45. package/src/HDS/components/Avatars/selectors.js +0 -0
  46. package/src/HDS/components/Buttons/socialMediaButton.js +0 -78
  47. package/src/HDS/components/Cards/Misc/featureCard.js +0 -0
  48. package/src/HDS/foundation/Typography/translated.js +0 -20
@@ -0,0 +1,68 @@
1
+ import React from "react";
2
+ import PropTypes from 'prop-types';
3
+ import {HDSColor} from '../../../foundation/ColorPalette';
4
+ import { Badges } from '../../BadgesCaption';
5
+ import { ProfileAvatar } from '../../Avatars'
6
+ import { Typography } from "../../../foundation/Typography";
7
+
8
+
9
+ export default function TalkDetailCard(props) {
10
+ const badgeLeftIconColor = HDSColor(props.badgeLeftIconColor);
11
+ return (
12
+ <div>
13
+ <Badges
14
+ color={props.badgeColor}
15
+ leftIconColor={badgeLeftIconColor}
16
+ leftIconVariant='home03'
17
+ size='default'
18
+ >
19
+ {props.talk_type}
20
+ </Badges>
21
+ <Typography textStyle='h6' className='text-blue-600 uppercase pt-4 pb-2'>{props.tag_line}</Typography>
22
+ <Typography textStyle='h3' as='h3' className='text-blue-900 pb-4'>{props.title}</Typography>
23
+ {
24
+ props.social_share && (
25
+ <div className='flex items-center pb-14'>
26
+ {
27
+ props.social_share.map((socialShare, i) => (
28
+ <div className='mx-2 first:ml-0 last:mr-0'>
29
+ <img src={socialShare.img_url} alt={socialShare.img_alt} />
30
+ </div>
31
+ ))
32
+ }
33
+ </div>
34
+ )
35
+ }
36
+ {
37
+ props.speaker_card && (
38
+ <div>
39
+ <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6'>speakers</Typography>
40
+ {
41
+ props.speaker_card.map((speaker, i) => (
42
+ <div className='pb-4 last:pb-0'>
43
+ <ProfileAvatar
44
+ name={speaker.name}
45
+ size='md'
46
+ designation={speaker.designation}
47
+ imageUrl={speaker.speakerImgUrl}
48
+ avatarVariant="circle"
49
+ />
50
+ </div>
51
+ ))
52
+ }
53
+ </div>
54
+ )
55
+ }
56
+ </div>
57
+ )
58
+ }
59
+
60
+ TalkDetailCard.defaultProps = {
61
+ badgeColor: 'green',
62
+ badgeLeftIconColor: 'stroke-neutral-0',
63
+ talk_type: 'Talk',
64
+ tag_line: 'June 20-22, 2023 | VIRTUAL | Free',
65
+ title: 'Deploying Hasura apps the fast way with the new Vercel integration',
66
+ social_share: '',
67
+ speaker_card: '',
68
+ };
@@ -8,6 +8,8 @@ export default function Carouseltest(props) {
8
8
  const [visibleCardsContainerWidth, setvisibleCardsContainerWidth] = React.useState(0);
9
9
  const [cardWidth, setcardWidth] = React.useState(0);
10
10
  const [totalContainerWidth, setTotalContainerWidth] = React.useState(0);
11
+ const [totalClick, setTotalClick] = React.useState(1);
12
+ const [totalCards, setTotalCards] = React.useState(0);
11
13
  React.useEffect(() => {
12
14
  const visibleCardsContainerWidth = refs[0]?.current?.parentNode?.offsetWidth;
13
15
  setvisibleCardsContainerWidth(visibleCardsContainerWidth);
@@ -19,6 +21,15 @@ export default function Carouseltest(props) {
19
21
  return acc + rect.width + parseFloat(getComputedStyle(ref.current).marginLeft) + parseFloat(getComputedStyle(ref.current).marginRight);
20
22
  }, 0);
21
23
  setTotalContainerWidth(totalCardsWidth);
24
+ const noOfcardsinaview = (visibleCardsContainerWidth/cardWidth);
25
+ console.log('noOfcardsinaview',noOfcardsinaview)
26
+ const cardLength = props.length;
27
+ setTotalCards(cardLength);
28
+ console.log('cardLength',cardLength)
29
+ setTotalClick(2*(cardLength/noOfcardsinaview));
30
+
31
+
32
+
22
33
  }, []);
23
34
 
24
35
 
@@ -56,9 +67,9 @@ export default function Carouseltest(props) {
56
67
  });
57
68
  };
58
69
 
59
- const totalCards = props.cards.length;
60
70
  const nextCard = () => {
61
- if (currentCard >= totalCards - 1) {
71
+ console.log('currentCard', currentCard,'totalClick', totalClick );
72
+ if (currentCard >= totalCards-1 || currentCard > totalClick+1) {
62
73
  scrollToCard(0);
63
74
  } else {
64
75
  scrollToCard(currentCard + 1);
@@ -76,24 +87,24 @@ export default function Carouseltest(props) {
76
87
 
77
88
  let x = visibleCardsContainerWidth;
78
89
  let noOfcardsinaview = visibleCardsContainerWidth/cardWidth;
90
+
79
91
  let y = 1;
80
- console.log('noOfcardsinaview*currentCard',noOfcardsinaview*(currentCard+1));
92
+
81
93
  // if((noOfcardsinaview*(currentCard+1))<=totalCards){
82
94
  // let y = (totalContainerWidth/(noOfcardsinaview*visibleCardsContainerWidth))*(noOfcardsinaview*(currentCard+1));
83
95
 
84
96
  // }
85
97
  console.log(totalContainerWidth, visibleCardsContainerWidth, currentCard )
86
- let slider1 = (384/(totalCards*cardWidth)) * (328)* (currentCard+3);
98
+ let slider1 = (384/(totalCards*cardWidth)) * (328)* (currentCard+noOfcardsinaview);
87
99
  if(slider1>384){
88
100
  slider1 = 384;
89
101
  }
90
-
91
-
92
- console.log('x',x, 'slider1', slider1 );
93
-
94
-
95
-
96
- let sliderWidth = slider1+ 'px';
102
+ let roundOff = Math.floor(totalClick);
103
+ let slider2 = 384/(roundOff+Math.floor(noOfcardsinaview)+1);
104
+ let sliderWidth = 1;
105
+ sliderWidth = (slider2 * (currentCard+1))+ 'px';
106
+
107
+
97
108
  return (
98
109
  <div className=' '>
99
110
  <div className='bg-pink-500 w-96 rounded-md content-center h-1'>
@@ -115,11 +126,11 @@ export default function Carouseltest(props) {
115
126
  <span role="img" aria-label={`Arrow ${isLeft ? 'left' : 'right'}`}>
116
127
  {isLeft ?
117
128
 
118
- <Icon height={'h-6'} variant={'chevronleft'} strokeColor='#1F2A37' />
129
+ <Icon height={'h-6 w-6'} variant={'chevronleft'} strokeColor='#1F2A37' />
119
130
 
120
131
  :
121
132
 
122
- <Icon height={'h-6'} variant={'chevronright'} strokeColor='#1F2A37' />
133
+ <Icon height={'h-6 w-6'} variant={'chevronright'} strokeColor='#1F2A37' />
123
134
 
124
135
  }
125
136
  </span>
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import { useState } from 'react';
3
3
  import { Dialog } from '@headlessui/react';
4
4
  import { Icon } from '../common-components/Icon';
5
- import { Typography } from '../../foundation/Typography'
5
+ import { Typography } from '../../foundation/Typography';
6
+ import {HDSButton} from '../Buttons'
6
7
 
7
8
  export default function CustomHeader(props) {
8
9
  const {
@@ -15,8 +16,7 @@ export default function CustomHeader(props) {
15
16
  <header className="bg-white">
16
17
  <nav className="mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8" aria-label="Global">
17
18
  <a href="#" className="-m-1.5 p-1.5 flex">
18
- <Icon variant={'HasuraBlueLogo'} strokeColor={'#1EA7FD'} />
19
- <Typography className='ml-1.5' textStyle='h4'>{label}</Typography>
19
+ <Icon variant={'hasuraPrimary'} strokeColor={''} />
20
20
  </a>
21
21
  <div className="flex lg:hidden">
22
22
  <button
@@ -26,7 +26,7 @@ export default function CustomHeader(props) {
26
26
  >
27
27
  <span className="sr-only">Open main menu</span>
28
28
 
29
- <Icon height={'h-6'} variant={'searchsm'} strokeColor={'#3970FD'} />
29
+ <Icon height={'h-6'} variant={'menu05'} strokeColor={'#3970FD'} />
30
30
  </button>
31
31
  </div>
32
32
  <div className="hidden lg:flex lg:gap-x-12">
@@ -40,11 +40,12 @@ export default function CustomHeader(props) {
40
40
  </a>
41
41
  </div>
42
42
  </nav>
43
- <Dialog as="div" className="lg:hidden" open={mobileMenuOpen} onClose={setMobileMenuOpen}>
44
- <div className="fixed inset-0 z-10" />
45
- <Dialog.Panel className="fixed inset-y-0 right-0 z-10 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
46
- <div className="flex items-center justify-between">
47
- {/* <a href="#" className="-m-1.5 p-1.5">
43
+ <div className='transition-all '>
44
+ <Dialog as="div" className="lg:hidden" open={mobileMenuOpen} onClose={setMobileMenuOpen}>
45
+ <div className="fixed inset-0 z-10" />
46
+ <Dialog.Panel className="fixed border rounded-l-3xl inset-y-0 bg-neutral-0 max-w-min min-w-fit right-0 z-10 w-full overflow-y-auto bg-white px-6 py-6 sm:ring-1 sm:ring-gray-900/10">
47
+ <div className="flex items-center justify-end">
48
+ {/* <a href="#" className="-m-1.5 p-1.5">
48
49
  <span className="sr-only">Your Company</span>
49
50
  <img
50
51
  className="h-8 w-auto"
@@ -52,41 +53,49 @@ export default function CustomHeader(props) {
52
53
  alt=""
53
54
  />
54
55
  </a> */}
55
- <button
56
- type="button"
57
- className="-m-2.5 rounded-md p-2.5 text-gray-700"
58
- onClick={() => setMobileMenuOpen(false)}
59
- >
60
- <span className="sr-only">Close menu</span>
56
+ <button
57
+ type="button"
58
+ className="-m-2.5 rounded-md p-2.5 text-gray-700"
59
+ onClick={() => setMobileMenuOpen(false)}
60
+ >
61
+ <span className="sr-only">Close menu</span>
61
62
 
62
- <Icon height={'h-6'} variant={'home03'} strokeColor={'#3970FD'} />
63
- </button>
64
- </div>
65
- <div className="mt-6 flow-root">
66
- <div className="-my-6 divide-y divide-gray-500/10">
67
- <div className="space-y-2 py-6">
68
- {childArray.map((item) => (
69
- <a
70
- key={item.name}
71
- href={item.href}
72
- className="-mx-3 block rounded-lg py-2 px-3 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
73
- >
74
- {item.name}
75
- </a>
76
- ))}
77
- </div>
78
- <div className="py-6">
79
- <a
80
- href="#"
81
- className="-mx-3 block rounded-lg py-2.5 px-3 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
82
- >
83
- Log in
84
- </a>
63
+ <Icon height={'h-6'} variant={'xclose'} strokeColor={'#3970FD'} />
64
+ </button>
65
+ </div>
66
+ <div className="mt-6 flow-root">
67
+ <Typography textStyle='h6' className='text-neutral-400'>MENU</Typography>
68
+ <div className=" flex-col divide-y divide-blue-600/10">
69
+ <div className="space-y-2 py-6 pr-48">
70
+ {childArray.map((item) => (
71
+ <a
72
+ key={item.name}
73
+ href={item.href}
74
+ className="-mx-3 rounded-lg flex gap-5 py-2 px-3 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
75
+ >
76
+ <Icon height={'h-6'} variant={'home03'} strokeColor={'#6C737F'} />
77
+ {item.name}
78
+ </a>
79
+ ))}
80
+ </div>
81
+ <div className="py-6">
82
+ <HDSButton
83
+ leftIconVariant = 'none'
84
+ rightIconVariant = 'none'
85
+ label = 'Log In'
86
+ state = 'default'
87
+ size = 'sm'
88
+ rightAnimatedArrow = 'true'
89
+ rightAnimatedArrowColor = '#ffffff'
90
+ animatedHoverStroke = 'group-hover:stroke-neutral-0'
91
+ />
92
+ </div>
85
93
  </div>
86
94
  </div>
87
- </div>
88
- </Dialog.Panel>
89
- </Dialog>
95
+ </Dialog.Panel>
96
+ </Dialog>
97
+ </div>
98
+
90
99
  </header>
91
100
  )
92
101
  }
@@ -10,37 +10,37 @@ const solutions = [
10
10
  name: 'Analytics',
11
11
  description: 'Get a better understanding of where your traffic is coming from.',
12
12
  href: '#',
13
- icon: '',
13
+ icon: 'home03',
14
14
  },
15
15
  {
16
16
  name: 'Engagement',
17
17
  description: 'Speak directly to your customers in a more meaningful way.',
18
18
  href: '#',
19
- icon: '',
19
+ icon: 'home03',
20
20
  },
21
21
  {
22
22
  name: 'Security',
23
23
  description: 'Your customers’ data will be safe and secure.',
24
24
  href: '#',
25
- icon: ''
25
+ icon: 'home03'
26
26
  },
27
27
  {
28
28
  name: 'Integrations',
29
29
  description: "Connect with third-party tools that you're already using.",
30
30
  href: '#',
31
- icon: '',
31
+ icon: 'home03',
32
32
  },
33
33
  {
34
34
  name: 'Automations',
35
35
  description: 'Build strategic funnels that will drive your customers to convert',
36
36
  href: '#',
37
- icon: '',
37
+ icon: 'home03',
38
38
  },
39
39
  {
40
40
  name: 'Reports',
41
41
  description: 'Get detailed reports that will help you make more informed decisions ',
42
42
  href: '#',
43
- icon: '',
43
+ icon: 'home03',
44
44
  },
45
45
  ]
46
46
  const resources = [
@@ -61,22 +61,19 @@ function classNames(...classes) {
61
61
  export default function v3Header() {
62
62
  return (
63
63
  <Popover className="relative bg-white">
64
- <div className="flex items-center justify-between p-6 md:justify-start md:space-x-6">
64
+ <div className="flex items-center bg-neutral-50 justify-between p-6 md:justify-start md:space-x-6">
65
65
  <div>
66
66
  <a href="#" className="flex items-center">
67
- <Icon variant={'HasuraBlueLogo'} strokeColor={'#1EA7FD'} />
68
- <Typography className='ml-1.5' textStyle='h4'>HASURA</Typography>
67
+ <Icon variant={'hasuraPrimary'} strokeColor={''} />
69
68
  </a>
70
69
  </div>
71
70
  <div className="-my-2 -mr-2 md:hidden">
72
71
  <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
73
72
  <span className="sr-only">Open menu</span>
74
73
  <div className=' gap-6 flex'>
75
- <Icon height={'h-6'} variant={'searchsm'} strokeColor={'#3970FD'} />
76
- <Icon height={'h-6'} variant={'menu05'} strokeColor={'#3970FD'} />
74
+ <Icon height={'h-5 w-5'} variant={'searchsm'} strokeColor={'#3970FD'} />
75
+ <Icon height={'h-5 w-5'} variant={'menu05'} strokeColor={'#3970FD'} />
77
76
  </div>
78
-
79
-
80
77
  </Popover.Button>
81
78
  </div>
82
79
  <div className="hidden md:flex md:flex-1 md:items-center md:justify-between">
@@ -112,7 +109,7 @@ export default function v3Header() {
112
109
  >
113
110
  <Popover.Panel className="absolute z-10 -ml-4 mt-3 w-screen max-w-md transform lg:max-w-3xl">
114
111
  <div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
115
- <div className="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2">
112
+ <div className="relative grid gap-6 bg-neutral-0 px-5 py-6 sm:gap-8 sm:p-8 lg:grid-cols-2">
116
113
  {solutions.map((item) => (
117
114
  <a
118
115
  key={item.name}
@@ -120,6 +117,7 @@ export default function v3Header() {
120
117
  className="-m-3 flex items-start rounded-lg p-3 hover:bg-gray-50"
121
118
  >
122
119
  <div className="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-indigo-500 text-white sm:h-12 sm:w-12">
120
+
123
121
  {/* <item.icon className="h-6 w-6" aria-hidden="true" /> */}
124
122
  </div>
125
123
  <div className="ml-4">
@@ -161,69 +159,78 @@ export default function v3Header() {
161
159
  Pricing
162
160
  </a>
163
161
 
164
- {/* <Popover className="relative">
165
- {({ open }) => (
166
- <>
167
- <Popover.Button
168
- className={classNames(
169
- open ? 'text-gray-900' : 'text-gray-500',
170
- 'group inline-flex items-center rounded-md bg-white text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2'
171
- )}
172
- >
173
- <span>More</span>
174
- <Icon variant='home3'
175
- className={classNames(
176
- open ? 'text-gray-600' : 'text-gray-400',
177
- 'ml-2 h-5 w-5 group-hover:text-gray-500'
178
- )}
179
- aria-hidden="true"
180
- />
181
- <Icon variant={'home03'} strokeColor={'#1EA7FD'} />
182
- </Popover.Button>
162
+ <Popover className="relative">
163
+ {({ open }) => (
164
+ <>
165
+ <Popover.Button
166
+ className={classNames(
167
+ open ? 'text-gray-900' : 'text-gray-500',
168
+ 'group inline-flex items-center rounded-md bg-white text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2'
169
+ )}
170
+ >
171
+ <span>More</span>
172
+ <Icon variant='home03'
173
+ className={classNames(
174
+ open ? 'text-gray-600' : 'text-gray-400',
175
+ 'ml-2 h-5 w-5 group-hover:text-gray-500'
176
+ )}
177
+ aria-hidden="true"
178
+ />
179
+ <Icon variant={'home03'} strokeColor={'#1EA7FD'} />
180
+ </Popover.Button>
183
181
 
184
- <Transition
185
- as={Fragment}
186
- enter="transition ease-out duration-200"
187
- enterFrom="opacity-0 translate-y-1"
188
- enterTo="opacity-100 translate-y-0"
189
- leave="transition ease-in duration-150"
190
- leaveFrom="opacity-100 translate-y-0"
191
- leaveTo="opacity-0 translate-y-1"
192
- >
193
- <Popover.Panel className="absolute left-1/2 z-10 mt-3 w-screen max-w-xs -translate-x-1/2 transform px-2 sm:px-0">
194
- <div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
195
- <div className="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
196
- {resources.map((item) => (
197
- <a key={item.name} href={item.href} className="-m-3 block rounded-md p-3 hover:bg-gray-50">
198
- <p className="text-base font-medium text-gray-900">{item.name}</p>
199
- <p className="mt-1 text-sm text-gray-500">{item.description}</p>
200
- </a>
201
- ))}
202
- </div>
203
- </div>
204
- </Popover.Panel>
205
- </Transition>
206
- </>
207
- )}
208
- </Popover> */}
182
+ <Transition
183
+ as={Fragment}
184
+ enter="transition ease-out duration-200"
185
+ enterFrom="opacity-0 translate-y-1"
186
+ enterTo="opacity-100 translate-y-0"
187
+ leave="transition ease-in duration-150"
188
+ leaveFrom="opacity-100 translate-y-0"
189
+ leaveTo="opacity-0 translate-y-1"
190
+ >
191
+ <Popover.Panel className="absolute left-1/2 z-10 mt-3 w-screen max-w-xs -translate-x-1/2 transform px-2 sm:px-0">
192
+ <div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
193
+ <div className="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
194
+ {resources.map((item) => (
195
+ <a key={item.name} href={item.href} className="-m-3 block rounded-md p-3 hover:bg-gray-50">
196
+ <p className="text-base font-medium text-gray-900">{item.name}</p>
197
+ <p className="mt-1 text-sm text-gray-500">{item.description}</p>
198
+ </a>
199
+ ))}
200
+ </div>
201
+ </div>
202
+ </Popover.Panel>
203
+ </Transition>
204
+ </>
205
+ )}
206
+ </Popover>
209
207
  </Popover.Group>
210
208
 
211
209
 
212
210
  <div className="flex items-center gap-6 md:ml-12">
211
+
213
212
  <Icon height={'h-6'} variant={'searchsm'} strokeColor={'#3970FD'} />
214
213
  <HDSButton
215
- rightIconVariant="chevronright"
216
- rightIconColor='#3970FD'
217
214
  label="Log In"
218
- state="default"
219
- leftIconVariant=""
220
215
  type='tonal'
216
+ leftIconVariant='none'
217
+ rightIconVariant='none'
218
+ state='default'
219
+ size='sm'
220
+ rightAnimatedArrow='true'
221
+ rightAnimatedArrowColor='#3970FD'
222
+ animatedHoverStroke='group-hover:stroke-neutral-0'
221
223
  />
222
224
  <HDSButton
223
- rightIconVariant="chevronright"
224
225
  label="Get Started"
225
- state="default"
226
- leftIconVariant=""
226
+ type='primary'
227
+ leftIconVariant='none'
228
+ rightIconVariant='none'
229
+ state='default'
230
+ size='sm'
231
+ rightAnimatedArrow='true'
232
+ rightAnimatedArrowColor='#ffffff'
233
+ animatedHoverStroke='group-hover:stroke-neutral-0'
227
234
  />
228
235
 
229
236
  </div>
@@ -242,44 +249,46 @@ export default function v3Header() {
242
249
  leaveFrom="opacity-100 scale-100"
243
250
  leaveTo="opacity-0 scale-95"
244
251
  >
245
- <Popover.Panel focus className="absolute inset-x-0 top-0 origin-top-right transform p-2 transition md:hidden">
246
- <div className="divide-y-2 divide-gray-50 rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5">
247
- <div className="px-5 pt-5 pb-6">
248
- <div className="flex items-center justify-between">
249
- <div>
250
- <img
251
- className="h-8 w-auto"
252
- src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600"
253
- alt="Your Company"
254
- />
255
- </div>
252
+ <Popover.Panel focus className="absolute bg-neutral-0 inset-x-0 top-0 origin-top-right transform transition md:hidden">
253
+ <div className=" rounded-lg bg-white shadow-lg">
254
+ <div className="px-5 pt-5 pb-6">
255
+ <div className="flex items-center justify-end">
256
256
  <div className="-mr-2">
257
- <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
258
- <span className="sr-only">Close menu</span>
259
- {/* <Icon variant='home3' className="h-6 w-6" aria-hidden="true" /> */}
260
- <Icon height={'h-6'} variant={'menu05'} strokeColor={'#3970FD'} />
257
+ <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 w-full">
258
+ <Icon height={'h-5 w-5'} variant={'xclose'} strokeColor={'#3970FD'} />
261
259
  </Popover.Button>
262
260
  </div>
263
261
  </div>
264
- <div className="mt-6">
265
- <nav className="grid gap-6">
262
+ <div className="mt-6 ">
263
+ <div className='flex flex-col items-center'>
264
+ <img
265
+ className="inline-block w-full px-4 "
266
+ src="https://res.cloudinary.com/dh8fp23nd/image/upload/v1683015500/hasura-con-2023/engage_clgotb.png"
267
+ alt=""
268
+ />
269
+ </div>
270
+
271
+ <nav className="grid gap-8 p-6">
266
272
  {solutions.map((item) => (
267
273
  <a
268
274
  key={item.name}
269
275
  href={item.href}
270
- className="-m-3 flex items-center rounded-lg p-3 hover:bg-gray-50"
276
+ className="-m-3 bg-blue-100 flex items-center rounded-2xl px-6 py-4"
271
277
  >
272
- <div className="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-indigo-500 text-white">
273
- <item.icon className="h-6 w-6" aria-hidden="true" />
278
+
279
+ <div className="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-indigo-500 text-white">
280
+
281
+ <Icon height='h-5 w-5' variant={'home03'} strokeColor={'#3970FD'} />
282
+
274
283
  </div>
275
- <div className="ml-4 text-base font-medium text-gray-900">{item.name}</div>
284
+ <div className="ml-1 text-base font-medium text-gray-900">{item.name}</div>
276
285
  </a>
277
286
  ))}
278
287
  </nav>
279
288
  </div>
280
289
  </div>
281
290
  <div className="py-6 px-5">
282
- <div className="grid grid-cols-2 gap-4">
291
+ {/* <div className="grid grid-cols-2 gap-4">
283
292
  <a href="#" className="text-base font-medium text-gray-900 hover:text-gray-700">
284
293
  Pricing
285
294
  </a>
@@ -300,20 +309,38 @@ export default function v3Header() {
300
309
  {item.name}
301
310
  </a>
302
311
  ))}
303
- </div>
312
+ </div> */}
304
313
  <div className="mt-6">
305
- <a
306
- href="#"
307
- className="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700"
308
- >
309
- Sign up
310
- </a>
311
- <p className="mt-6 text-center text-base font-medium text-gray-500">
312
- Existing customer?{' '}
313
- <a href="#" className="text-indigo-600 hover:text-indigo-500">
314
- Sign in
315
- </a>
316
- </p>
314
+ <div className='flex flex-row justify-around'>
315
+ <div className='w-full'>
316
+ <HDSButton
317
+ label="Log In"
318
+ type='primary'
319
+ leftIconVariant='none'
320
+ rightIconVariant='none'
321
+ state='default'
322
+ size='sm'
323
+ rightAnimatedArrow='true'
324
+ rightAnimatedArrowColor='#ffffff'
325
+ animatedHoverStroke='group-hover:stroke-neutral-0'
326
+
327
+ />
328
+ </div>
329
+ <div className='w-full'>
330
+ <HDSButton
331
+ label="Sign up"
332
+ type='primary'
333
+ leftIconVariant='none'
334
+ rightIconVariant='none'
335
+ state='default'
336
+ size='sm'
337
+ rightAnimatedArrow='true'
338
+ rightAnimatedArrowColor='#ffffff'
339
+ animatedHoverStroke='group-hover:stroke-neutral-0'
340
+
341
+ />
342
+ </div>
343
+ </div>
317
344
  </div>
318
345
  </div>
319
346
  </div>