diy-template-components 0.2.77 → 0.2.79

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.js CHANGED
@@ -2000,7 +2000,6 @@ const fontWeight = {
2000
2000
  };
2001
2001
 
2002
2002
  function getTheme(colorTheme = 'blue', fontFamily = 'Arial', isMobile) {
2003
- console.log(isMobile, "isMobileisMobile");
2004
2003
  const palette = palettes[colorTheme] || palettes['blue'];
2005
2004
  const typography = {
2006
2005
  fontFamily: `"${fontFamily}", "Roboto", "Helvetica", "Arial", "sans-serif"`,
@@ -2282,7 +2281,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2282
2281
  subTitleHeading: {
2283
2282
  marginBottom: '8px',
2284
2283
  fontSize: theme.typography.fontSize.subHead,
2285
- color: theme?.palette?.font?.tertiary,
2284
+ color: theme?.palette?.font?.default,
2286
2285
  wordBreak: 'break-word',
2287
2286
  maxWidth: '100%'
2288
2287
  },
@@ -2290,7 +2289,9 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2290
2289
  margin: '0',
2291
2290
  fontSize: theme.typography.fontSize.h1,
2292
2291
  color: theme?.palette?.font?.default,
2293
- wordBreak: 'break-word'
2292
+ wordBreak: 'break-word',
2293
+ fontWeight: theme.typography.fontWeight.bold,
2294
+ lineHeight: 'normal'
2294
2295
  },
2295
2296
  description: {
2296
2297
  margin: `${theme.spacing.margin.tiny}px 0px`,
@@ -2688,10 +2689,11 @@ const useSectionStyles$7 = createUseStyles(theme => ({
2688
2689
  subTitleHeading: {
2689
2690
  marginBottom: '8px',
2690
2691
  fontSize: theme.typography.fontSize.subHead,
2691
- color: theme?.palette?.font?.tertiary,
2692
+ color: theme?.palette?.font?.default,
2692
2693
  alignItems: 'center',
2693
2694
  textAlign: 'center',
2694
2695
  wordBreak: 'break-word',
2696
+ letterSpacing: '3px',
2695
2697
  textTransform: 'uppercase'
2696
2698
  },
2697
2699
  heading: {
@@ -3140,18 +3142,21 @@ var index$j = /*#__PURE__*/Object.freeze({
3140
3142
  const useSectionStyles$5 = createUseStyles(theme => {
3141
3143
  return {
3142
3144
  section: {
3143
- paddingBottom: theme?.spacing?.padding?.regular,
3145
+ padding: ({
3146
+ isMobile
3147
+ } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
3144
3148
  '&, & *, & *:before, & *:after': {
3145
3149
  fontFamily: theme?.typography?.fontFamily,
3146
3150
  boxSizing: 'border-box'
3147
- },
3148
- '& h2,& h3': {
3149
- fontWeight: theme?.typography?.fontWeight?.medium,
3150
- '& b,& strong': {
3151
- fontWeight: theme?.typography?.fontWeight?.bold
3152
- }
3153
3151
  }
3152
+ // '& h2,& h3': {
3153
+ // fontWeight: theme?.typography?.fontWeight?.medium,
3154
+ // '& b,& strong': {
3155
+ // fontWeight: theme?.typography?.fontWeight?.bold
3156
+ // }
3157
+ // }
3154
3158
  },
3159
+
3155
3160
  sectionContainer: {
3156
3161
  margin: '0 auto',
3157
3162
  maxWidth: ({
@@ -3161,9 +3166,11 @@ const useSectionStyles$5 = createUseStyles(theme => {
3161
3166
  centerData: {
3162
3167
  display: 'flex',
3163
3168
  alignItems: 'center',
3164
- justifyContent: 'center',
3165
- padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
3169
+ justifyContent: 'center'
3170
+
3171
+ // padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
3166
3172
  },
3173
+
3167
3174
  imageContainerDiv: {
3168
3175
  width: '50%',
3169
3176
  position: 'relative'
@@ -3197,25 +3204,28 @@ const useSectionStyles$5 = createUseStyles(theme => {
3197
3204
  objectFit: 'cover'
3198
3205
  },
3199
3206
  textContainer: {
3200
- padding: `0 ${theme?.spacing?.padding?.xSmall}px`,
3207
+ marginLeft: '72px',
3201
3208
  textAlign: 'left',
3202
3209
  margin: '0 auto',
3203
3210
  width: '50%'
3204
3211
  },
3205
3212
  subTitleHeading: {
3206
3213
  marginBottom: '8px',
3207
- fontSize: `${theme?.typography?.fontSize?.subHead}px`,
3208
- color: theme?.palette?.font?.tertiary,
3214
+ fontSize: theme?.typography?.fontSize?.subHead,
3215
+ color: theme?.palette?.font?.default,
3209
3216
  wordBreak: 'break-word'
3210
3217
  },
3211
3218
  heading: {
3212
3219
  margin: '0',
3213
- fontSize: `${theme?.typography?.fontSize?.h1}px`,
3220
+ fontSize: theme?.typography?.fontSize?.h1,
3214
3221
  color: theme?.palette?.font?.default,
3215
- wordBreak: 'break-word'
3222
+ wordBreak: 'break-word',
3223
+ fontWeight: theme?.typography?.fontWeight?.bold,
3224
+ lineHeight: 'normal'
3216
3225
  },
3217
3226
  description: {
3218
- margin: '40px 0',
3227
+ marginTop: theme.spacing.margin.tiny,
3228
+ marginBottom: theme.spacing.margin.tiny,
3219
3229
  color: theme?.palette?.font?.primary,
3220
3230
  lineHeight: '24px',
3221
3231
  wordBreak: 'break-word'
@@ -3272,7 +3282,8 @@ function Section$2({
3272
3282
  isCustomWebsite
3273
3283
  } = React.useContext(PageContext);
3274
3284
  const classes = useSectionStyles$5({
3275
- isCustomWebsite
3285
+ isCustomWebsite,
3286
+ isMobile
3276
3287
  });
3277
3288
  return /*#__PURE__*/React__default["default"].createElement("div", {
3278
3289
  className: classes.centerData
@@ -3758,7 +3769,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
3758
3769
  } = {}) => containerWidth
3759
3770
  },
3760
3771
  testimonialText: {
3761
- color: theme?.palette?.font?.secondary,
3772
+ color: theme?.palette?.font?.default,
3762
3773
  fontSize: theme.typography.fontSize.subHead,
3763
3774
  wordBreak: 'break-word',
3764
3775
  textTransform: 'uppercase'
@@ -4241,7 +4252,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4241
4252
  lineHeight: '20px',
4242
4253
  letterSpacing: '3px',
4243
4254
  textTransform: 'uppercase',
4244
- color: theme.palette.font.tertiary,
4255
+ color: theme.palette.font.default,
4245
4256
  wordBreak: 'break-word',
4246
4257
  marginBottom: '8px'
4247
4258
  },
@@ -4446,7 +4457,8 @@ const useVideoStyles = createUseStyles(theme => {
4446
4457
  fontSize: theme.typography.fontSize.subHead,
4447
4458
  textTransform: 'uppercase',
4448
4459
  lineHeight: '20px',
4449
- color: theme?.palette?.font?.primary,
4460
+ color: theme?.palette?.font?.default,
4461
+ letterSpacing: '3px',
4450
4462
  wordBreak: 'break-word'
4451
4463
  },
4452
4464
  videoTitle: {
@@ -4658,14 +4670,15 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4658
4670
  '&, & *, & *:before, & *:after': {
4659
4671
  fontFamily: theme?.typography?.fontFamily,
4660
4672
  boxSizing: 'border-box'
4661
- },
4662
- '& h2,& h3': {
4663
- fontWeight: '500',
4664
- '& b,& strong': {
4665
- fontWeight: '700'
4666
- }
4667
4673
  }
4674
+ // '& h2,& h3': {
4675
+ // fontWeight: '500',
4676
+ // '& b,& strong': {
4677
+ // fontWeight: '700'
4678
+ // }
4679
+ // }
4668
4680
  },
4681
+
4669
4682
  sectionContainer: {
4670
4683
  margin: '0 auto',
4671
4684
  maxWidth: ({
@@ -4676,7 +4689,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4676
4689
  position: 'absolute',
4677
4690
  top: '0',
4678
4691
  left: '0',
4679
- height: '350px',
4692
+ height: '50%',
4680
4693
  background: theme?.palette?.background?.primary,
4681
4694
  width: '100%'
4682
4695
  },
@@ -4686,7 +4699,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4686
4699
  subTitleHeading: {
4687
4700
  width: '100%',
4688
4701
  fontSize: theme.typography.fontSize.subHead,
4689
- color: theme?.palette?.font?.tertiary,
4702
+ color: theme?.palette?.font?.default,
4690
4703
  textAlign: 'left',
4691
4704
  lineHeight: '20px',
4692
4705
  letterSpacing: '3px',
@@ -4724,6 +4737,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4724
4737
  cardHeading: {
4725
4738
  fontSize: theme.typography.fontSize.h5,
4726
4739
  lineHeight: '32px',
4740
+ fontWeight: theme.typography.fontWeight.bold,
4727
4741
  color: theme?.palette?.font?.default,
4728
4742
  margin: `${theme.spacing.margin.tiny}px 0px`,
4729
4743
  wordBreak: 'break-word'
@@ -4737,6 +4751,14 @@ const useSectionStyles$3 = createUseStyles(theme => ({
4737
4751
  borderRadius: '50%',
4738
4752
  background: theme?.palette?.background?.primary
4739
4753
  },
4754
+ buttonContainerClass: {
4755
+ marginRight: theme.spacing.margin.regular,
4756
+ display: 'flex',
4757
+ gap: '20px',
4758
+ alignItems: 'center',
4759
+ justifyContent: 'center',
4760
+ marginTop: theme.spacing.margin.tiny
4761
+ },
4740
4762
  cardPara: {
4741
4763
  fontSize: theme.typography.fontSize.subHead,
4742
4764
  lineHeight: '24px',
@@ -4855,7 +4877,8 @@ function Info({
4855
4877
  }
4856
4878
  })), cardsCount > slidesToShow ? /*#__PURE__*/React__default["default"].createElement(Carousel, {
4857
4879
  hideArrow: isMobile,
4858
- settings: settings
4880
+ settings: settings,
4881
+ buttonContainerClass: classes.buttonContainerClass
4859
4882
  }, carouselContent) : /*#__PURE__*/React__default["default"].createElement("div", {
4860
4883
  className: classes.contentRow
4861
4884
  }, carouselContent))));
@@ -4888,7 +4911,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
4888
4911
  subHeading: {
4889
4912
  fontSize: theme.typography.fontSize.subHead,
4890
4913
  marginBottom: '8px',
4891
- color: theme?.palette?.font?.tertiary,
4914
+ color: theme?.palette?.font?.default,
4892
4915
  wordBreak: 'break-word',
4893
4916
  textTransform: 'uppercase',
4894
4917
  letterSpacing: '3px'
@@ -5002,7 +5025,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5002
5025
  } = {}) => containerWidth
5003
5026
  },
5004
5027
  cardHeading: {
5005
- color: theme?.palette?.font?.secondary,
5028
+ color: theme?.palette?.font?.default,
5006
5029
  fontSize: theme.typography.fontSize.subHead,
5007
5030
  letterSpacing: '3px',
5008
5031
  wordBreak: 'break-word',
@@ -5164,7 +5187,7 @@ const useFaqListStyles = createUseStyles(theme => ({
5164
5187
  } = {}) => containerWidth
5165
5188
  },
5166
5189
  sectionSubheading: {
5167
- color: theme?.palette?.font.tertiary,
5190
+ color: theme?.palette?.font.default,
5168
5191
  fontSize: theme.typography.fontSize.subHead,
5169
5192
  marginBottom: '8px',
5170
5193
  wordBreak: 'break-word'
@@ -5319,7 +5342,8 @@ const useTextGridStyles = createUseStyles(theme => ({
5319
5342
  padding: ({
5320
5343
  isMobile
5321
5344
  } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
5322
- backgroundColor: theme?.palette?.background?.primary,
5345
+ // backgroundColor: theme?.palette?.background?.primary,
5346
+
5323
5347
  '&, & *, & *:before, & *:after': {
5324
5348
  fontFamily: theme?.typography?.fontFamily,
5325
5349
  boxSizing: 'border-box'
@@ -5342,7 +5366,7 @@ const useTextGridStyles = createUseStyles(theme => ({
5342
5366
  } = {}) => containerWidth
5343
5367
  },
5344
5368
  subheading: {
5345
- color: theme?.palette?.font.tertiary,
5369
+ color: theme?.palette?.font.default,
5346
5370
  fontSize: theme.typography.fontSize.subHead,
5347
5371
  lineHeight: '20px',
5348
5372
  letterSpacing: '3px',
@@ -5371,7 +5395,7 @@ const useTextGridStyles = createUseStyles(theme => ({
5371
5395
  borderRadius: theme?.shape?.borderRadius?.regular
5372
5396
  },
5373
5397
  nodeTitle: {
5374
- color: theme?.palette?.font.secondary,
5398
+ color: theme?.palette?.font.default,
5375
5399
  fontSize: theme.typography.fontSize.h3,
5376
5400
  fontWeight: theme.typography.fontWeight.bold,
5377
5401
  lineHeight: 'normal',
@@ -6014,7 +6038,8 @@ const useTeamStyles = createUseStyles(theme => {
6014
6038
  padding: ({
6015
6039
  isMobile
6016
6040
  } = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
6017
- backgroundColor: theme?.palette?.background?.primary,
6041
+ // backgroundColor: theme?.palette?.background?.primary,
6042
+
6018
6043
  '&, & *, & *:before, & *:after': {
6019
6044
  fontFamily: theme?.typography?.fontFamily,
6020
6045
  boxSizing: 'border-box'
@@ -6035,8 +6060,17 @@ const useTeamStyles = createUseStyles(theme => {
6035
6060
  lineHeight: '20px',
6036
6061
  letterSpacing: '3px',
6037
6062
  marginBottom: '8px',
6038
- color: theme?.palette?.font?.primary,
6039
- wordBreak: 'break-word'
6063
+ color: theme?.palette?.font?.default,
6064
+ wordBreak: 'break-word',
6065
+ position: 'relative'
6066
+ },
6067
+ partialBackground: {
6068
+ position: 'absolute',
6069
+ top: '0',
6070
+ left: '0',
6071
+ height: '50%',
6072
+ background: theme?.palette?.background?.primary,
6073
+ width: '100%'
6040
6074
  },
6041
6075
  teamTitle: {
6042
6076
  fontSize: theme.typography.fontSize.h2,
@@ -6044,7 +6078,8 @@ const useTeamStyles = createUseStyles(theme => {
6044
6078
  lineHeight: '70px',
6045
6079
  letterSpacing: '-3px',
6046
6080
  wordBreak: 'break-word',
6047
- color: theme?.palette?.font?.default
6081
+ color: theme?.palette?.font?.default,
6082
+ position: 'relative'
6048
6083
  },
6049
6084
  sliderContainer: {
6050
6085
  margin: '0 -20px'
@@ -6206,6 +6241,8 @@ function TeamCard({
6206
6241
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6207
6242
  className: classes.sectionContainer
6208
6243
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6244
+ className: classes.partialBackground
6245
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
6209
6246
  className: classes.teamHeading
6210
6247
  }, /*#__PURE__*/React__default["default"].createElement("span", {
6211
6248
  ref: teamData?.teamHeading?.refSetter,
@@ -7476,6 +7513,7 @@ var index$4 = /*#__PURE__*/Object.freeze({
7476
7513
  });
7477
7514
 
7478
7515
  const useCoursePromotionPage = createUseStyles(theme => {
7516
+ debugger;
7479
7517
  return {
7480
7518
  courseSuperContainer: {
7481
7519
  display: 'flex',
@@ -7726,17 +7764,18 @@ const useCoursePromotionPage = createUseStyles(theme => {
7726
7764
  width: '100%',
7727
7765
  paddingBottom: '10px'
7728
7766
  },
7729
- courseSuperContainer: {
7730
- padding: '20px 10px 60px 20px'
7731
- },
7767
+ // courseSuperContainer: {
7768
+ // padding: '20px 10px 60px 20px'
7769
+ // },
7732
7770
  videoCarousel: {
7733
7771
  flexDirection: 'column-reverse',
7734
7772
  gap: '20px'
7735
7773
  },
7736
7774
  videoCarouselContainer: {
7737
- height: 'max-content',
7738
- paddingRight: '10px'
7775
+ height: 'max-content'
7776
+ // paddingRight: '10px'
7739
7777
  },
7778
+
7740
7779
  videoDetails: {
7741
7780
  width: '100%'
7742
7781
  },