hds-web 1.2.0 → 1.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -54,7 +54,7 @@ const Buttonclasses = {
54
54
  },
55
55
  'primaryLink': {
56
56
  'default': {
57
- 'base': 'db:w-fit tb:w-fit w-full justify-center text-blue-500',
57
+ 'base': 'db:w-fit tb:w-fit w-full justify-center ',
58
58
  'hover': 'hover:text-neutral-0',
59
59
  'focus': 'focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none focus:text-blue-600',
60
60
  },
@@ -62,7 +62,7 @@ const Buttonclasses = {
62
62
  },
63
63
  'secondaryLink': {
64
64
  'default': {
65
- 'base': 'db:w-fit tb:w-fit w-full justify-center text-neutral-800',
65
+ 'base': 'db:w-fit tb:w-fit w-full justify-center ',
66
66
  'hover': 'hover:text-neutral-900 ',
67
67
  'focus': 'focus:text-neutral-900 focus:outline-none focus:shadow-[0px_0px_0px_4px_#E5E7EB]',
68
68
  },
@@ -1,7 +1,8 @@
1
- import { Fragment } from 'react'
2
- import { Popover, Transition } from '@headlessui/react'
3
- import { Icon } from '../../common-components/Icon'
4
- import { Typography } from '../../../foundation/Typography'
1
+ import React from "react";;
2
+ import { Fragment } from 'react';
3
+ import { Popover, Transition } from '@headlessui/react';
4
+ import { Icon } from '../../common-components/Icon';
5
+ import { Typography } from '../../../foundation/Typography';
5
6
  export default function flyout(props) {
6
7
  const {
7
8
  label,
@@ -1,7 +1,8 @@
1
- import { Fragment } from 'react'
2
- import { Popover, Transition } from '@headlessui/react'
3
- import { Icon } from '../../common-components/Icon'
4
- import { Typography } from '../../../foundation/Typography'
1
+ import React from "react";
2
+ import { Fragment } from 'react';
3
+ import { Popover, Transition } from '@headlessui/react';
4
+ import { Icon } from '../../common-components/Icon';
5
+ import { Typography } from '../../../foundation/Typography';
5
6
  export default function FlyoutA(props) {
6
7
  const {
7
8
  label,
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Fragment } from 'react'
2
3
  import { Popover, Transition } from '@headlessui/react'
3
4
  import { ChevronDownIcon } from '@heroicons/react/20/solid'
@@ -4,65 +4,84 @@ import {HDSColor} from '../../../foundation/ColorPalette';
4
4
  import { Badges } from '../../BadgesCaption';
5
5
  import { ProfileAvatar } from '../../Avatars'
6
6
  import { Typography } from "../../../foundation/Typography";
7
+ import ReactMarkdown from "react-markdown";
7
8
 
8
9
 
9
10
  export default function TalkDetailCard(props) {
10
11
  const badgeLeftIconColor = HDSColor(props.badgeLeftIconColor);
11
12
  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
- }
13
+ <div className="grid grid-cols-1 tb:grid-cols-2 gap-16 db:gap-28 tb:gap-16">
14
+ <div>
15
+ {
16
+ props.badgeColor && (
17
+ <Badges
18
+ color={props.badgeColor}
19
+ size='sm'
20
+ >
21
+ {props.talk_type}
22
+ </Badges>
23
+ )
24
+ }
25
+ {
26
+ props.tag_line && (<Typography textStyle='h6' className='text-blue-600 uppercase pt-4 pb-2'>{props.tag_line}</Typography>)
27
+ }
28
+ {
29
+ props.title && (<Typography textStyle='h3' as='h3' className='text-blue-900 pb-4'>{props.title}</Typography>)
30
+ }
31
+ {
32
+ props.social_share && (
33
+ <div className='flex items-center pb-8 tb:pb-14'>
34
+ {
35
+ props.social_share.map((socialShare, i) => (
36
+ <a href={socialShare.share_url} className='mx-2 first:ml-0 last:mr-0'>
37
+ <img src={socialShare.img_url} alt={socialShare.img_alt} />
38
+ </a>
39
+ ))
40
+ }
41
+ </div>
42
+ )
43
+ }
44
+ {
45
+ props.speaker_card && (
46
+ <div>
47
+ <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6'>speakers</Typography>
48
+ {
49
+ props.speaker_card.map((speaker, i) => (
50
+ <div className='pb-4 last:pb-0'>
51
+ <ProfileAvatar
52
+ name={speaker.name}
53
+ size='md'
54
+ designation={speaker.designation}
55
+ imageUrl={speaker.speakerImgUrl}
56
+ avatarVariant="circle"
57
+ />
58
+ </div>
59
+ ))
60
+ }
61
+ </div>
62
+ )
63
+ }
64
+ </div>
65
+ <div>
66
+ <Typography textStyle="h4" as="h4" className="text-neutral-800 pb-4">About the Talk</Typography>
67
+ {
68
+ props.description && (
69
+ <Typography className='text-neutral-800 [&>p]:pb-2 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 last:[&>ul>li]:pb-0' textStyle='body1'>
70
+ <ReactMarkdown>{props.description}</ReactMarkdown>
71
+ </Typography>
72
+ )
73
+ }
74
+ </div>
56
75
  </div>
57
76
  )
58
77
  }
59
78
 
60
79
  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: '',
80
+ // badgeColor: 'green',
81
+ // badgeLeftIconColor: 'stroke-neutral-0',
82
+ // talk_type: 'Talk',
83
+ // tag_line: 'June 20-22, 2023 | VIRTUAL | Free',
84
+ // title: 'Deploying Hasura apps the fast way with the new Vercel integration',
85
+ // social_share: '',
86
+ // speaker_card: '',
68
87
  };
@@ -167,7 +167,7 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
167
167
  const imageCard = (heroData) => (
168
168
  heroData.imageUrl && (
169
169
  <div className="">
170
- <img src={heroData.imageUrl} alt={heroData.imageAlt} className='w-full' />
170
+ <img src={heroData.imageUrl} alt={heroData.imageAlt} className='tb-l:w-full w-1/2' />
171
171
  </div>
172
172
  )
173
173
  )
@@ -915,6 +915,10 @@ select {
915
915
  top: 0px;
916
916
  }
917
917
 
918
+ .bottom-10 {
919
+ bottom: 2.5rem;
920
+ }
921
+
918
922
  .isolate {
919
923
  isolation: isolate;
920
924
  }
@@ -1845,6 +1849,10 @@ select {
1845
1849
  gap: 25rem;
1846
1850
  }
1847
1851
 
1852
+ .gap-16 {
1853
+ gap: 4rem;
1854
+ }
1855
+
1848
1856
  .gap-x-1 {
1849
1857
  -webkit-column-gap: 0.25rem;
1850
1858
  column-gap: 0.25rem;
@@ -8140,6 +8148,10 @@ select {
8140
8148
  padding-top: 2.875rem;
8141
8149
  }
8142
8150
 
8151
+ .tb\:pb-14 {
8152
+ padding-bottom: 3.5rem;
8153
+ }
8154
+
8143
8155
  .tb\:text-left {
8144
8156
  text-align: left;
8145
8157
  }
@@ -8753,6 +8765,10 @@ select {
8753
8765
  gap: 9rem;
8754
8766
  }
8755
8767
 
8768
+ .db\:gap-28 {
8769
+ gap: 7rem;
8770
+ }
8771
+
8756
8772
  .db\:gap-x-10 {
8757
8773
  -webkit-column-gap: 2.5rem;
8758
8774
  column-gap: 2.5rem;
@@ -9108,6 +9124,10 @@ select {
9108
9124
  padding-bottom: 0px;
9109
9125
  }
9110
9126
 
9127
+ .last\:\[\&\>ul\>li\]\:pb-0>ul>li:last-child {
9128
+ padding-bottom: 0px;
9129
+ }
9130
+
9111
9131
  .\[\&\>ul\]\:ps-4>ul {
9112
9132
  -webkit-padding-start: 1rem;
9113
9133
  padding-inline-start: 1rem;