diy-template-components 1.0.51 → 1.0.53

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/build/index.es.js CHANGED
@@ -1561,7 +1561,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1561
1561
  justifyContent: 'center',
1562
1562
  flexDirection: 'column',
1563
1563
  alignItems: 'center',
1564
- padding: '64px 128px 55px 128px',
1564
+ padding: '64px 128px 24px 128px',
1565
1565
  '&, & *, & *:before, & *:after': {
1566
1566
  fontFamily: theme?.typography?.fontFamily,
1567
1567
  boxSizing: 'border-box'
@@ -1645,7 +1645,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1645
1645
  display: 'flex',
1646
1646
  justifyContent: 'space-between',
1647
1647
  width: '100%',
1648
- padding: '42px 0 0 0'
1648
+ padding: '24px 0 0 0'
1649
1649
  },
1650
1650
  bottomLeftText: {
1651
1651
  fontSize: '16px',
@@ -1681,7 +1681,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1681
1681
  width: '60%',
1682
1682
  justifyContent: 'flex-end',
1683
1683
  alignItems: 'center',
1684
- gap: '5%'
1684
+ gap: '8px'
1685
1685
  },
1686
1686
  poweredDivImg: {
1687
1687
  width: '100px !important'
@@ -2798,12 +2798,12 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2798
2798
  flexDirection: 'column',
2799
2799
  alignItems: 'center',
2800
2800
  justifyContent: 'center',
2801
- width: '770px',
2801
+ width: '1000px',
2802
2802
  margin: 'auto'
2803
2803
  },
2804
2804
  content: {
2805
2805
  display: 'flex',
2806
- width: 'calc(100% - 100px)',
2806
+ width: 'calc(100% - 200px)',
2807
2807
  alignItems: 'center',
2808
2808
  background: theme?.palette?.background?.default,
2809
2809
  boxShadow: theme?.shadows?.primary,
@@ -2887,7 +2887,8 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2887
2887
  },
2888
2888
  '@media screen and (max-width: 767px)': {
2889
2889
  contentContainer: {
2890
- width: '100%'
2890
+ width: '100%',
2891
+ gap: '8px'
2891
2892
  },
2892
2893
  content: {
2893
2894
  display: 'flex',
@@ -3071,7 +3072,8 @@ const useSectionStyles$6 = createUseStyles(theme => {
3071
3072
  color: theme?.palette?.font?.invertedDefault,
3072
3073
  wordBreak: ({
3073
3074
  wordBreakValue
3074
- }) => wordBreakValue || 'break-word'
3075
+ }) => wordBreakValue || 'break-word',
3076
+ lineHeight: '80px'
3075
3077
  },
3076
3078
  description: {
3077
3079
  color: theme?.palette?.font?.invertedDefault,
@@ -3097,7 +3099,8 @@ const useSectionStyles$6 = createUseStyles(theme => {
3097
3099
  },
3098
3100
  '@media screen and (max-width: 767px)': {
3099
3101
  heading: {
3100
- fontSize: theme.typography.fontSize.h2
3102
+ fontSize: theme.typography.fontSize.h2,
3103
+ lineHeight: '40px'
3101
3104
  },
3102
3105
  partialBackground: {
3103
3106
  display: 'none'
@@ -3518,7 +3521,7 @@ const useSectionStyles$4 = createUseStyles(theme => ({
3518
3521
  contentContainer: {
3519
3522
  display: 'flex',
3520
3523
  alignItems: 'center',
3521
- gap: '16px'
3524
+ gap: '128px'
3522
3525
  },
3523
3526
  title: {
3524
3527
  fontSize: theme.typography.fontSize.h6,
@@ -3588,7 +3591,8 @@ const useSectionStyles$4 = createUseStyles(theme => ({
3588
3591
  display: 'flex',
3589
3592
  flexDirection: 'column',
3590
3593
  justifyContent: 'flex-start',
3591
- textAlign: 'center'
3594
+ textAlign: 'center',
3595
+ gap: '16px'
3592
3596
  },
3593
3597
  inputContainer: {
3594
3598
  display: 'block',
@@ -3649,7 +3653,7 @@ async function postApiCallForm(baseURLs, data, extraProps) {
3649
3653
  const inputStyles = createUseStyles(theme => ({
3650
3654
  inputField: {
3651
3655
  width: '100%',
3652
- maxWidth: '314px',
3656
+ // maxWidth: '314px',
3653
3657
  background: theme?.palette?.background?.default,
3654
3658
  border: `1px solid ${theme?.palette?.border?.secondary}`,
3655
3659
  borderRadius: theme?.shape?.borderRadius?.regular,
@@ -3995,6 +3999,12 @@ const useTestimonialStyles = createUseStyles(theme => ({
3995
3999
  // wordBreak: 'break-word',
3996
4000
  // textOverflow: 'ellipsis'
3997
4001
  // },
4002
+ testimonialText: {
4003
+ textAlign: 'center'
4004
+ },
4005
+ testimonialHeader: {
4006
+ textAlign: 'center'
4007
+ },
3998
4008
  userImageDummy: {
3999
4009
  width: '48px',
4000
4010
  height: '48px',
@@ -4397,7 +4407,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4397
4407
  width: '100%',
4398
4408
  display: 'flex',
4399
4409
  alignItems: 'center',
4400
- marginTop: '16px',
4410
+ // marginTop: '16px',
4401
4411
  borderRadius: '8px'
4402
4412
  },
4403
4413
  iframeContainer: {
@@ -4442,7 +4452,8 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4442
4452
  },
4443
4453
  '@media (max-width: 767px)': {
4444
4454
  videoCarousel: {
4445
- flexDirection: 'column'
4455
+ flexDirection: 'column',
4456
+ gap: '24px'
4446
4457
  },
4447
4458
  videoCarouselContainer: {
4448
4459
  height: 'max-content'
@@ -4672,7 +4683,7 @@ const useVideoStyles = createUseStyles(theme => {
4672
4683
  padding: '16px',
4673
4684
  width: 'calc(100% - 12px)',
4674
4685
  height: 'calc(100% - 24px)',
4675
- margin: '12px 6px'
4686
+ margin: '0px 6px 16px 6px'
4676
4687
  },
4677
4688
  iframe: {
4678
4689
  borderRadius: '8px 8px 0 0'
@@ -4867,7 +4878,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4867
4878
  margin: ({
4868
4879
  slidesToShow,
4869
4880
  cardsCount
4870
- } = {}) => cardsCount > slidesToShow ? `6px 30px 6px 10px` : `6px 0 6px 0`,
4881
+ } = {}) => cardsCount > slidesToShow ? `6px 25px 6px 0px` : `6px 0 6px 0`,
4871
4882
  height: 'calc(100% - 12px)'
4872
4883
  },
4873
4884
  cardContent: {
@@ -4964,7 +4975,7 @@ function Info({
4964
4975
  }
4965
4976
  } = useContext(PageContext);
4966
4977
  const theme = useTheme();
4967
- const slidesToShow = isMobile ? 1 : 4;
4978
+ const slidesToShow = isMobile ? 1 : 3.99;
4968
4979
  const [nodeData] = sectionData.components;
4969
4980
  const carouselList = nodeData?.contentList?.components;
4970
4981
  const cardsCount = carouselList?.length;
@@ -5086,7 +5097,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5086
5097
  display: 'grid',
5087
5098
  gridTemplateColumns: '1fr 1fr',
5088
5099
  gap: '48px',
5089
- padding: '48px 0px'
5100
+ padding: '32px 0px'
5090
5101
  },
5091
5102
  textPara: {
5092
5103
  color: theme?.palette?.font?.primary,
@@ -5101,6 +5112,12 @@ const useSectionStyles$2 = createUseStyles(theme => ({
5101
5112
  lineHeight: '22px',
5102
5113
  gap: '16px',
5103
5114
  padding: '16px 0px'
5115
+ },
5116
+ subHeading: {
5117
+ textAlign: 'center'
5118
+ },
5119
+ title: {
5120
+ textAlign: 'center'
5104
5121
  }
5105
5122
  }
5106
5123
  }));
@@ -5166,7 +5183,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5166
5183
  padding: ({
5167
5184
  isMobile,
5168
5185
  cardsCount
5169
- } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px` : cardsCount === 1 ? `${theme.spacing.padding.small}px ${theme.spacing.padding.small}px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px` : `${theme.spacing.padding.small}px 0px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
5186
+ } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px` : cardsCount === 1 ? `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px` : `${theme.spacing.padding.small}px 0px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
5170
5187
  '&, & *, & *:before, & *:after': {
5171
5188
  fontFamily: theme?.typography?.fontFamily,
5172
5189
  boxSizing: 'border-box'
@@ -5205,7 +5222,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5205
5222
  singleCard: {
5206
5223
  borderRadius: '24px',
5207
5224
  margin: '0 1px',
5208
- width: isMobile => isMobile ? 'calc(100% - 24px)' : 'calc(100% - 24px)',
5225
+ width: 'calc(100% - 24px)',
5209
5226
  position: 'relative',
5210
5227
  paddingBottom: '59.83%' // keeping aspect ratio 585x350
5211
5228
  },
@@ -5221,7 +5238,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5221
5238
  },
5222
5239
  padding: ({
5223
5240
  cardsCount
5224
- }) => cardsCount === 1 ? '0px 100px' : ''
5241
+ }) => cardsCount === 1 ? '0px 150px' : ''
5225
5242
  },
5226
5243
  carouselImage: {
5227
5244
  height: ({
@@ -5244,7 +5261,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5244
5261
  lineHeight: '70px',
5245
5262
  letterSpacing: '-3px',
5246
5263
  color: theme?.palette?.font?.default,
5247
- marginTop: '8px',
5264
+ marginTop: '0px',
5248
5265
  marginBottom: theme.spacing.margin.tiny,
5249
5266
  overflow: 'hidden',
5250
5267
  whiteSpace: 'nowrap',
@@ -5269,7 +5286,8 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5269
5286
  carouselImage: {
5270
5287
  height: ({
5271
5288
  cardsCount
5272
- }) => cardsCount === 1 ? '360px' : ''
5289
+ }) => cardsCount === 1 ? '360px' : '',
5290
+ borderRadius: "16px"
5273
5291
  },
5274
5292
  singleCard: {
5275
5293
  width: ({
@@ -5660,8 +5678,12 @@ const useTextGridStyles = createUseStyles(theme => ({
5660
5678
  margin: '16px 0 !important',
5661
5679
  lineHeight: '22px'
5662
5680
  },
5681
+ subheading: {
5682
+ textAlign: "center"
5683
+ },
5663
5684
  heading: {
5664
- letterSpacing: '-1px'
5685
+ textAlign: 'center',
5686
+ letterSpacing: '0'
5665
5687
  }
5666
5688
  }
5667
5689
  }));
@@ -5782,7 +5804,8 @@ const useCourseStyles = createUseStyles(theme => {
5782
5804
  lineHeight: '70px',
5783
5805
  color: theme?.palette?.font?.default,
5784
5806
  marginTop: '8px',
5785
- marginBottom: theme.spacing.margin.tiny
5807
+ marginBottom: theme.spacing.margin.tiny,
5808
+ textAlign: 'center'
5786
5809
  // overflow: 'hidden',
5787
5810
  // whiteSpace: 'nowrap',
5788
5811
  // textOverflow: 'ellipsis',
@@ -5969,7 +5992,8 @@ const useCourseStyles = createUseStyles(theme => {
5969
5992
  // fontSize: '24px',
5970
5993
  lineHeight: '36px',
5971
5994
  color: theme?.palette?.font?.default,
5972
- margin: '0px 0 12px 0'
5995
+ margin: '0px 0 12px 0',
5996
+ textAlign: 'center'
5973
5997
  // overflow: 'hidden',
5974
5998
  // whiteSpace: 'nowrap',
5975
5999
  // textOverflow: 'ellipsis'
@@ -6369,7 +6393,7 @@ const useTeamStyles = createUseStyles(theme => {
6369
6393
  teamDetailsSubHeading: {
6370
6394
  fontSize: theme.typography.fontSize.body,
6371
6395
  lineHeight: '24px',
6372
- margin: '12px 0 0',
6396
+ margin: '6px 0 0',
6373
6397
  color: theme?.palette?.font?.primary
6374
6398
  },
6375
6399
  '@media (max-width: 767px)': {
@@ -6393,8 +6417,9 @@ const useTeamStyles = createUseStyles(theme => {
6393
6417
  },
6394
6418
  singleSlideContainer: {
6395
6419
  padding: '24px',
6396
- width: 'calc(100% - 8px)',
6397
- margin: '12px 4px'
6420
+ width: 'calc(100% - 16px)',
6421
+ margin: '12px 4px',
6422
+ minHeight: '260px'
6398
6423
  },
6399
6424
  teamDetailsContainer: {
6400
6425
  textAlign: 'center'
@@ -6577,27 +6602,29 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6577
6602
  leftContainer: {
6578
6603
  width: '65%',
6579
6604
  display: 'flex',
6580
- flexDirection: 'column',
6581
- justifyContent: 'space-between'
6605
+ flexDirection: 'column'
6606
+ // justifyContent: 'space-between'
6582
6607
  },
6608
+
6583
6609
  subtitle: {
6584
6610
  // margin: '0 0 40px 0',
6585
- fontSize: theme.typography.fontSize.h6,
6611
+ fontSize: theme.typography.fontSize.h5,
6586
6612
  color: theme?.palette?.font?.default,
6587
6613
  lineHeight: '32px',
6588
- wordBreak: 'break-word'
6614
+ wordBreak: 'break-word',
6615
+ marginBottom: '32px'
6589
6616
  },
6590
6617
  addressContainer: {
6591
6618
  display: 'flex',
6592
6619
  alignItems: 'flex-start',
6593
6620
  flexDirection: 'column',
6594
- width: '80%'
6621
+ width: '80%',
6622
+ gap: "16px"
6595
6623
  },
6596
6624
  addressRow: {
6597
6625
  display: 'flex',
6598
6626
  alignItems: 'flex-start',
6599
6627
  justifyContent: 'center',
6600
- padding: '16px 0',
6601
6628
  wordBreak: 'break-word'
6602
6629
  },
6603
6630
  addressImg: {
@@ -6606,7 +6633,8 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6606
6633
  addressText: {
6607
6634
  fontSize: theme.typography.fontSize.h6,
6608
6635
  color: theme?.palette?.font?.default,
6609
- lineHeight: '24px'
6636
+ lineHeight: '24px',
6637
+ fontSize: '16px'
6610
6638
  },
6611
6639
  rightContainer: {
6612
6640
  width: '50%',
@@ -6622,6 +6650,9 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6622
6650
  },
6623
6651
  btnContainer: {},
6624
6652
  '@media screen and (max-width: 767px)': {
6653
+ addressContainer: {
6654
+ gap: '0px'
6655
+ },
6625
6656
  section: {
6626
6657
  display: 'flex',
6627
6658
  flexDirection: 'column',
@@ -6987,21 +7018,25 @@ const useSectionStyles = createUseStyles(theme => ({
6987
7018
  width: '100%',
6988
7019
  display: 'flex',
6989
7020
  justifyContent: 'space-between',
6990
- wordBreak: 'break-word'
7021
+ wordBreak: 'break-word',
7022
+ gap: "56px"
6991
7023
  },
6992
7024
  leftContainer: {
6993
7025
  display: 'flex',
6994
7026
  flexDirection: 'column',
6995
- justifyContent: 'space-between',
6996
7027
  flex: 1
7028
+ // justifyContent: 'space-between',
7029
+ // flex: 1
6997
7030
  },
7031
+
6998
7032
  subtitle: {
6999
- margin: '0 0 auto 0',
7033
+ // margin: '0 0 auto 0',
7000
7034
  fontSize: theme.typography.fontSize.h6,
7001
7035
  color: theme?.palette?.font?.default,
7002
- lineHeight: '32px',
7003
- margin: '16px 0',
7004
- textAlign: 'center'
7036
+ // lineHeight: '32px',
7037
+ // margin: '16px 0',
7038
+ textAlign: 'center',
7039
+ marginBottom: '32px'
7005
7040
  },
7006
7041
  addressContainer: {
7007
7042
  display: 'flex',
@@ -7011,9 +7046,10 @@ const useSectionStyles = createUseStyles(theme => ({
7011
7046
  position: 'relative'
7012
7047
  },
7013
7048
  telephoneImage: {
7014
- width: '80%'
7049
+ width: '100%'
7015
7050
  },
7016
7051
  rightContainer: {
7052
+ flex: 1,
7017
7053
  width: '50%',
7018
7054
  display: 'flex',
7019
7055
  flexDirection: 'column',
@@ -7026,7 +7062,7 @@ const useSectionStyles = createUseStyles(theme => ({
7026
7062
  },
7027
7063
  inputField: {
7028
7064
  width: '100%',
7029
- maxWidth: '314px',
7065
+ // maxWidth: '314px',
7030
7066
  background: theme?.palette?.background?.default,
7031
7067
  border: `1px solid ${theme?.palette?.border?.secondary}`,
7032
7068
  borderRadius: theme?.shape?.borderRadius?.regular,
@@ -7077,7 +7113,8 @@ const useSectionStyles = createUseStyles(theme => ({
7077
7113
  },
7078
7114
  contentContainer: {
7079
7115
  flexDirection: 'column',
7080
- marginTop: '8px'
7116
+ // marginTop: '8px'
7117
+ gap: '8px'
7081
7118
  },
7082
7119
  leftContainer: {
7083
7120
  width: '100%',
@@ -7093,9 +7130,12 @@ const useSectionStyles = createUseStyles(theme => ({
7093
7130
  textAlign: 'center'
7094
7131
  },
7095
7132
  subtitle: {
7096
- margin: '4px 0 24px 0',
7133
+ // margin: '4px 0 24px 0',
7134
+ marginTop: '16px',
7097
7135
  textAlign: 'center',
7098
- lineHeight: '26px'
7136
+ fontSize: '14px',
7137
+ lineHeight: '20px',
7138
+ marginBottom: "32px"
7099
7139
  },
7100
7140
  addressRow: {
7101
7141
  // padding: '12px 0'