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.es.js +86 -47
- package/build/index.es.js.map +1 -1
- package/build/index.js +86 -47
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.es.js
CHANGED
|
@@ -1985,7 +1985,6 @@ const fontWeight = {
|
|
|
1985
1985
|
};
|
|
1986
1986
|
|
|
1987
1987
|
function getTheme(colorTheme = 'blue', fontFamily = 'Arial', isMobile) {
|
|
1988
|
-
console.log(isMobile, "isMobileisMobile");
|
|
1989
1988
|
const palette = palettes[colorTheme] || palettes['blue'];
|
|
1990
1989
|
const typography = {
|
|
1991
1990
|
fontFamily: `"${fontFamily}", "Roboto", "Helvetica", "Arial", "sans-serif"`,
|
|
@@ -2267,7 +2266,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2267
2266
|
subTitleHeading: {
|
|
2268
2267
|
marginBottom: '8px',
|
|
2269
2268
|
fontSize: theme.typography.fontSize.subHead,
|
|
2270
|
-
color: theme?.palette?.font?.
|
|
2269
|
+
color: theme?.palette?.font?.default,
|
|
2271
2270
|
wordBreak: 'break-word',
|
|
2272
2271
|
maxWidth: '100%'
|
|
2273
2272
|
},
|
|
@@ -2275,7 +2274,9 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2275
2274
|
margin: '0',
|
|
2276
2275
|
fontSize: theme.typography.fontSize.h1,
|
|
2277
2276
|
color: theme?.palette?.font?.default,
|
|
2278
|
-
wordBreak: 'break-word'
|
|
2277
|
+
wordBreak: 'break-word',
|
|
2278
|
+
fontWeight: theme.typography.fontWeight.bold,
|
|
2279
|
+
lineHeight: 'normal'
|
|
2279
2280
|
},
|
|
2280
2281
|
description: {
|
|
2281
2282
|
margin: `${theme.spacing.margin.tiny}px 0px`,
|
|
@@ -2673,10 +2674,11 @@ const useSectionStyles$7 = createUseStyles(theme => ({
|
|
|
2673
2674
|
subTitleHeading: {
|
|
2674
2675
|
marginBottom: '8px',
|
|
2675
2676
|
fontSize: theme.typography.fontSize.subHead,
|
|
2676
|
-
color: theme?.palette?.font?.
|
|
2677
|
+
color: theme?.palette?.font?.default,
|
|
2677
2678
|
alignItems: 'center',
|
|
2678
2679
|
textAlign: 'center',
|
|
2679
2680
|
wordBreak: 'break-word',
|
|
2681
|
+
letterSpacing: '3px',
|
|
2680
2682
|
textTransform: 'uppercase'
|
|
2681
2683
|
},
|
|
2682
2684
|
heading: {
|
|
@@ -3125,18 +3127,21 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
3125
3127
|
const useSectionStyles$5 = createUseStyles(theme => {
|
|
3126
3128
|
return {
|
|
3127
3129
|
section: {
|
|
3128
|
-
|
|
3130
|
+
padding: ({
|
|
3131
|
+
isMobile
|
|
3132
|
+
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
3129
3133
|
'&, & *, & *:before, & *:after': {
|
|
3130
3134
|
fontFamily: theme?.typography?.fontFamily,
|
|
3131
3135
|
boxSizing: 'border-box'
|
|
3132
|
-
},
|
|
3133
|
-
'& h2,& h3': {
|
|
3134
|
-
fontWeight: theme?.typography?.fontWeight?.medium,
|
|
3135
|
-
'& b,& strong': {
|
|
3136
|
-
fontWeight: theme?.typography?.fontWeight?.bold
|
|
3137
|
-
}
|
|
3138
3136
|
}
|
|
3137
|
+
// '& h2,& h3': {
|
|
3138
|
+
// fontWeight: theme?.typography?.fontWeight?.medium,
|
|
3139
|
+
// '& b,& strong': {
|
|
3140
|
+
// fontWeight: theme?.typography?.fontWeight?.bold
|
|
3141
|
+
// }
|
|
3142
|
+
// }
|
|
3139
3143
|
},
|
|
3144
|
+
|
|
3140
3145
|
sectionContainer: {
|
|
3141
3146
|
margin: '0 auto',
|
|
3142
3147
|
maxWidth: ({
|
|
@@ -3146,9 +3151,11 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3146
3151
|
centerData: {
|
|
3147
3152
|
display: 'flex',
|
|
3148
3153
|
alignItems: 'center',
|
|
3149
|
-
justifyContent: 'center'
|
|
3150
|
-
|
|
3154
|
+
justifyContent: 'center'
|
|
3155
|
+
|
|
3156
|
+
// padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
|
|
3151
3157
|
},
|
|
3158
|
+
|
|
3152
3159
|
imageContainerDiv: {
|
|
3153
3160
|
width: '50%',
|
|
3154
3161
|
position: 'relative'
|
|
@@ -3182,25 +3189,28 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3182
3189
|
objectFit: 'cover'
|
|
3183
3190
|
},
|
|
3184
3191
|
textContainer: {
|
|
3185
|
-
|
|
3192
|
+
marginLeft: '72px',
|
|
3186
3193
|
textAlign: 'left',
|
|
3187
3194
|
margin: '0 auto',
|
|
3188
3195
|
width: '50%'
|
|
3189
3196
|
},
|
|
3190
3197
|
subTitleHeading: {
|
|
3191
3198
|
marginBottom: '8px',
|
|
3192
|
-
fontSize:
|
|
3193
|
-
color: theme?.palette?.font?.
|
|
3199
|
+
fontSize: theme?.typography?.fontSize?.subHead,
|
|
3200
|
+
color: theme?.palette?.font?.default,
|
|
3194
3201
|
wordBreak: 'break-word'
|
|
3195
3202
|
},
|
|
3196
3203
|
heading: {
|
|
3197
3204
|
margin: '0',
|
|
3198
|
-
fontSize:
|
|
3205
|
+
fontSize: theme?.typography?.fontSize?.h1,
|
|
3199
3206
|
color: theme?.palette?.font?.default,
|
|
3200
|
-
wordBreak: 'break-word'
|
|
3207
|
+
wordBreak: 'break-word',
|
|
3208
|
+
fontWeight: theme?.typography?.fontWeight?.bold,
|
|
3209
|
+
lineHeight: 'normal'
|
|
3201
3210
|
},
|
|
3202
3211
|
description: {
|
|
3203
|
-
|
|
3212
|
+
marginTop: theme.spacing.margin.tiny,
|
|
3213
|
+
marginBottom: theme.spacing.margin.tiny,
|
|
3204
3214
|
color: theme?.palette?.font?.primary,
|
|
3205
3215
|
lineHeight: '24px',
|
|
3206
3216
|
wordBreak: 'break-word'
|
|
@@ -3257,7 +3267,8 @@ function Section$2({
|
|
|
3257
3267
|
isCustomWebsite
|
|
3258
3268
|
} = useContext(PageContext);
|
|
3259
3269
|
const classes = useSectionStyles$5({
|
|
3260
|
-
isCustomWebsite
|
|
3270
|
+
isCustomWebsite,
|
|
3271
|
+
isMobile
|
|
3261
3272
|
});
|
|
3262
3273
|
return /*#__PURE__*/React.createElement("div", {
|
|
3263
3274
|
className: classes.centerData
|
|
@@ -3743,7 +3754,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
|
|
|
3743
3754
|
} = {}) => containerWidth
|
|
3744
3755
|
},
|
|
3745
3756
|
testimonialText: {
|
|
3746
|
-
color: theme?.palette?.font?.
|
|
3757
|
+
color: theme?.palette?.font?.default,
|
|
3747
3758
|
fontSize: theme.typography.fontSize.subHead,
|
|
3748
3759
|
wordBreak: 'break-word',
|
|
3749
3760
|
textTransform: 'uppercase'
|
|
@@ -4226,7 +4237,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
|
|
|
4226
4237
|
lineHeight: '20px',
|
|
4227
4238
|
letterSpacing: '3px',
|
|
4228
4239
|
textTransform: 'uppercase',
|
|
4229
|
-
color: theme.palette.font.
|
|
4240
|
+
color: theme.palette.font.default,
|
|
4230
4241
|
wordBreak: 'break-word',
|
|
4231
4242
|
marginBottom: '8px'
|
|
4232
4243
|
},
|
|
@@ -4431,7 +4442,8 @@ const useVideoStyles = createUseStyles(theme => {
|
|
|
4431
4442
|
fontSize: theme.typography.fontSize.subHead,
|
|
4432
4443
|
textTransform: 'uppercase',
|
|
4433
4444
|
lineHeight: '20px',
|
|
4434
|
-
color: theme?.palette?.font?.
|
|
4445
|
+
color: theme?.palette?.font?.default,
|
|
4446
|
+
letterSpacing: '3px',
|
|
4435
4447
|
wordBreak: 'break-word'
|
|
4436
4448
|
},
|
|
4437
4449
|
videoTitle: {
|
|
@@ -4643,14 +4655,15 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4643
4655
|
'&, & *, & *:before, & *:after': {
|
|
4644
4656
|
fontFamily: theme?.typography?.fontFamily,
|
|
4645
4657
|
boxSizing: 'border-box'
|
|
4646
|
-
},
|
|
4647
|
-
'& h2,& h3': {
|
|
4648
|
-
fontWeight: '500',
|
|
4649
|
-
'& b,& strong': {
|
|
4650
|
-
fontWeight: '700'
|
|
4651
|
-
}
|
|
4652
4658
|
}
|
|
4659
|
+
// '& h2,& h3': {
|
|
4660
|
+
// fontWeight: '500',
|
|
4661
|
+
// '& b,& strong': {
|
|
4662
|
+
// fontWeight: '700'
|
|
4663
|
+
// }
|
|
4664
|
+
// }
|
|
4653
4665
|
},
|
|
4666
|
+
|
|
4654
4667
|
sectionContainer: {
|
|
4655
4668
|
margin: '0 auto',
|
|
4656
4669
|
maxWidth: ({
|
|
@@ -4661,7 +4674,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4661
4674
|
position: 'absolute',
|
|
4662
4675
|
top: '0',
|
|
4663
4676
|
left: '0',
|
|
4664
|
-
height: '
|
|
4677
|
+
height: '50%',
|
|
4665
4678
|
background: theme?.palette?.background?.primary,
|
|
4666
4679
|
width: '100%'
|
|
4667
4680
|
},
|
|
@@ -4671,7 +4684,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4671
4684
|
subTitleHeading: {
|
|
4672
4685
|
width: '100%',
|
|
4673
4686
|
fontSize: theme.typography.fontSize.subHead,
|
|
4674
|
-
color: theme?.palette?.font?.
|
|
4687
|
+
color: theme?.palette?.font?.default,
|
|
4675
4688
|
textAlign: 'left',
|
|
4676
4689
|
lineHeight: '20px',
|
|
4677
4690
|
letterSpacing: '3px',
|
|
@@ -4709,6 +4722,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4709
4722
|
cardHeading: {
|
|
4710
4723
|
fontSize: theme.typography.fontSize.h5,
|
|
4711
4724
|
lineHeight: '32px',
|
|
4725
|
+
fontWeight: theme.typography.fontWeight.bold,
|
|
4712
4726
|
color: theme?.palette?.font?.default,
|
|
4713
4727
|
margin: `${theme.spacing.margin.tiny}px 0px`,
|
|
4714
4728
|
wordBreak: 'break-word'
|
|
@@ -4722,6 +4736,14 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4722
4736
|
borderRadius: '50%',
|
|
4723
4737
|
background: theme?.palette?.background?.primary
|
|
4724
4738
|
},
|
|
4739
|
+
buttonContainerClass: {
|
|
4740
|
+
marginRight: theme.spacing.margin.regular,
|
|
4741
|
+
display: 'flex',
|
|
4742
|
+
gap: '20px',
|
|
4743
|
+
alignItems: 'center',
|
|
4744
|
+
justifyContent: 'center',
|
|
4745
|
+
marginTop: theme.spacing.margin.tiny
|
|
4746
|
+
},
|
|
4725
4747
|
cardPara: {
|
|
4726
4748
|
fontSize: theme.typography.fontSize.subHead,
|
|
4727
4749
|
lineHeight: '24px',
|
|
@@ -4840,7 +4862,8 @@ function Info({
|
|
|
4840
4862
|
}
|
|
4841
4863
|
})), cardsCount > slidesToShow ? /*#__PURE__*/React.createElement(Carousel, {
|
|
4842
4864
|
hideArrow: isMobile,
|
|
4843
|
-
settings: settings
|
|
4865
|
+
settings: settings,
|
|
4866
|
+
buttonContainerClass: classes.buttonContainerClass
|
|
4844
4867
|
}, carouselContent) : /*#__PURE__*/React.createElement("div", {
|
|
4845
4868
|
className: classes.contentRow
|
|
4846
4869
|
}, carouselContent))));
|
|
@@ -4873,7 +4896,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
|
|
|
4873
4896
|
subHeading: {
|
|
4874
4897
|
fontSize: theme.typography.fontSize.subHead,
|
|
4875
4898
|
marginBottom: '8px',
|
|
4876
|
-
color: theme?.palette?.font?.
|
|
4899
|
+
color: theme?.palette?.font?.default,
|
|
4877
4900
|
wordBreak: 'break-word',
|
|
4878
4901
|
textTransform: 'uppercase',
|
|
4879
4902
|
letterSpacing: '3px'
|
|
@@ -4987,7 +5010,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
|
|
|
4987
5010
|
} = {}) => containerWidth
|
|
4988
5011
|
},
|
|
4989
5012
|
cardHeading: {
|
|
4990
|
-
color: theme?.palette?.font?.
|
|
5013
|
+
color: theme?.palette?.font?.default,
|
|
4991
5014
|
fontSize: theme.typography.fontSize.subHead,
|
|
4992
5015
|
letterSpacing: '3px',
|
|
4993
5016
|
wordBreak: 'break-word',
|
|
@@ -5149,7 +5172,7 @@ const useFaqListStyles = createUseStyles(theme => ({
|
|
|
5149
5172
|
} = {}) => containerWidth
|
|
5150
5173
|
},
|
|
5151
5174
|
sectionSubheading: {
|
|
5152
|
-
color: theme?.palette?.font.
|
|
5175
|
+
color: theme?.palette?.font.default,
|
|
5153
5176
|
fontSize: theme.typography.fontSize.subHead,
|
|
5154
5177
|
marginBottom: '8px',
|
|
5155
5178
|
wordBreak: 'break-word'
|
|
@@ -5304,7 +5327,8 @@ const useTextGridStyles = createUseStyles(theme => ({
|
|
|
5304
5327
|
padding: ({
|
|
5305
5328
|
isMobile
|
|
5306
5329
|
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
5307
|
-
backgroundColor: theme?.palette?.background?.primary,
|
|
5330
|
+
// backgroundColor: theme?.palette?.background?.primary,
|
|
5331
|
+
|
|
5308
5332
|
'&, & *, & *:before, & *:after': {
|
|
5309
5333
|
fontFamily: theme?.typography?.fontFamily,
|
|
5310
5334
|
boxSizing: 'border-box'
|
|
@@ -5327,7 +5351,7 @@ const useTextGridStyles = createUseStyles(theme => ({
|
|
|
5327
5351
|
} = {}) => containerWidth
|
|
5328
5352
|
},
|
|
5329
5353
|
subheading: {
|
|
5330
|
-
color: theme?.palette?.font.
|
|
5354
|
+
color: theme?.palette?.font.default,
|
|
5331
5355
|
fontSize: theme.typography.fontSize.subHead,
|
|
5332
5356
|
lineHeight: '20px',
|
|
5333
5357
|
letterSpacing: '3px',
|
|
@@ -5356,7 +5380,7 @@ const useTextGridStyles = createUseStyles(theme => ({
|
|
|
5356
5380
|
borderRadius: theme?.shape?.borderRadius?.regular
|
|
5357
5381
|
},
|
|
5358
5382
|
nodeTitle: {
|
|
5359
|
-
color: theme?.palette?.font.
|
|
5383
|
+
color: theme?.palette?.font.default,
|
|
5360
5384
|
fontSize: theme.typography.fontSize.h3,
|
|
5361
5385
|
fontWeight: theme.typography.fontWeight.bold,
|
|
5362
5386
|
lineHeight: 'normal',
|
|
@@ -5999,7 +6023,8 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
5999
6023
|
padding: ({
|
|
6000
6024
|
isMobile
|
|
6001
6025
|
} = {}) => 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`,
|
|
6002
|
-
backgroundColor: theme?.palette?.background?.primary,
|
|
6026
|
+
// backgroundColor: theme?.palette?.background?.primary,
|
|
6027
|
+
|
|
6003
6028
|
'&, & *, & *:before, & *:after': {
|
|
6004
6029
|
fontFamily: theme?.typography?.fontFamily,
|
|
6005
6030
|
boxSizing: 'border-box'
|
|
@@ -6020,8 +6045,17 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6020
6045
|
lineHeight: '20px',
|
|
6021
6046
|
letterSpacing: '3px',
|
|
6022
6047
|
marginBottom: '8px',
|
|
6023
|
-
color: theme?.palette?.font?.
|
|
6024
|
-
wordBreak: 'break-word'
|
|
6048
|
+
color: theme?.palette?.font?.default,
|
|
6049
|
+
wordBreak: 'break-word',
|
|
6050
|
+
position: 'relative'
|
|
6051
|
+
},
|
|
6052
|
+
partialBackground: {
|
|
6053
|
+
position: 'absolute',
|
|
6054
|
+
top: '0',
|
|
6055
|
+
left: '0',
|
|
6056
|
+
height: '50%',
|
|
6057
|
+
background: theme?.palette?.background?.primary,
|
|
6058
|
+
width: '100%'
|
|
6025
6059
|
},
|
|
6026
6060
|
teamTitle: {
|
|
6027
6061
|
fontSize: theme.typography.fontSize.h2,
|
|
@@ -6029,7 +6063,8 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6029
6063
|
lineHeight: '70px',
|
|
6030
6064
|
letterSpacing: '-3px',
|
|
6031
6065
|
wordBreak: 'break-word',
|
|
6032
|
-
color: theme?.palette?.font?.default
|
|
6066
|
+
color: theme?.palette?.font?.default,
|
|
6067
|
+
position: 'relative'
|
|
6033
6068
|
},
|
|
6034
6069
|
sliderContainer: {
|
|
6035
6070
|
margin: '0 -20px'
|
|
@@ -6191,6 +6226,8 @@ function TeamCard({
|
|
|
6191
6226
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6192
6227
|
className: classes.sectionContainer
|
|
6193
6228
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6229
|
+
className: classes.partialBackground
|
|
6230
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
6194
6231
|
className: classes.teamHeading
|
|
6195
6232
|
}, /*#__PURE__*/React.createElement("span", {
|
|
6196
6233
|
ref: teamData?.teamHeading?.refSetter,
|
|
@@ -7461,6 +7498,7 @@ var index$4 = /*#__PURE__*/Object.freeze({
|
|
|
7461
7498
|
});
|
|
7462
7499
|
|
|
7463
7500
|
const useCoursePromotionPage = createUseStyles(theme => {
|
|
7501
|
+
debugger;
|
|
7464
7502
|
return {
|
|
7465
7503
|
courseSuperContainer: {
|
|
7466
7504
|
display: 'flex',
|
|
@@ -7711,17 +7749,18 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
7711
7749
|
width: '100%',
|
|
7712
7750
|
paddingBottom: '10px'
|
|
7713
7751
|
},
|
|
7714
|
-
courseSuperContainer: {
|
|
7715
|
-
|
|
7716
|
-
},
|
|
7752
|
+
// courseSuperContainer: {
|
|
7753
|
+
// padding: '20px 10px 60px 20px'
|
|
7754
|
+
// },
|
|
7717
7755
|
videoCarousel: {
|
|
7718
7756
|
flexDirection: 'column-reverse',
|
|
7719
7757
|
gap: '20px'
|
|
7720
7758
|
},
|
|
7721
7759
|
videoCarouselContainer: {
|
|
7722
|
-
height: 'max-content'
|
|
7723
|
-
paddingRight: '10px'
|
|
7760
|
+
height: 'max-content'
|
|
7761
|
+
// paddingRight: '10px'
|
|
7724
7762
|
},
|
|
7763
|
+
|
|
7725
7764
|
videoDetails: {
|
|
7726
7765
|
width: '100%'
|
|
7727
7766
|
},
|