diy-template-components 1.0.45 → 1.0.48
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 +120 -69
- package/build/index.es.js.map +1 -1
- package/build/index.js +120 -69
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -309,7 +309,7 @@ const colors = {
|
|
|
309
309
|
// shades of grey
|
|
310
310
|
darkGrey: '#333333',
|
|
311
311
|
grey: '#666666',
|
|
312
|
-
lightGrey: '#
|
|
312
|
+
lightGrey: '#9999',
|
|
313
313
|
blueGrey: '#9497A5'
|
|
314
314
|
};
|
|
315
315
|
const alpha = {
|
|
@@ -1560,8 +1560,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1560
1560
|
justifyContent: 'center',
|
|
1561
1561
|
flexDirection: 'column',
|
|
1562
1562
|
alignItems: 'center',
|
|
1563
|
-
padding: '
|
|
1564
|
-
backgroundColor: theme?.palette?.background?.default,
|
|
1563
|
+
padding: '64px 128px',
|
|
1565
1564
|
'&, & *, & *:before, & *:after': {
|
|
1566
1565
|
fontFamily: theme?.typography?.fontFamily,
|
|
1567
1566
|
boxSizing: 'border-box'
|
|
@@ -1601,7 +1600,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1601
1600
|
upperContainerItem3: {
|
|
1602
1601
|
width: '33%',
|
|
1603
1602
|
display: 'flex',
|
|
1604
|
-
justifyContent: '
|
|
1603
|
+
justifyContent: 'end',
|
|
1605
1604
|
flexWrap: 'wrap',
|
|
1606
1605
|
paddingBottom: '52px'
|
|
1607
1606
|
},
|
|
@@ -1616,8 +1615,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1616
1615
|
display: 'flex',
|
|
1617
1616
|
justifyContent: 'flex-start',
|
|
1618
1617
|
alignItems: 'flex-start',
|
|
1619
|
-
|
|
1620
|
-
margin: '0'
|
|
1618
|
+
marginBottom: '16px'
|
|
1621
1619
|
},
|
|
1622
1620
|
addressImg: {
|
|
1623
1621
|
marginRight: '8px',
|
|
@@ -1695,7 +1693,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1695
1693
|
},
|
|
1696
1694
|
'@media screen and (max-width: 767px)': {
|
|
1697
1695
|
section: {
|
|
1698
|
-
padding: '
|
|
1696
|
+
padding: '16px 24px',
|
|
1699
1697
|
flexDirection: 'column',
|
|
1700
1698
|
alignItems: 'center',
|
|
1701
1699
|
justifyContent: 'center',
|
|
@@ -1967,7 +1965,7 @@ const generateThemePalette = themeColors => ({
|
|
|
1967
1965
|
font: {
|
|
1968
1966
|
default: colors.darkGrey,
|
|
1969
1967
|
invertedDefault: colors.white,
|
|
1970
|
-
primary: colors.
|
|
1968
|
+
primary: colors.darkGrey,
|
|
1971
1969
|
secondary: colors.grey,
|
|
1972
1970
|
tertiary: colors.blueGrey
|
|
1973
1971
|
}
|
|
@@ -2298,7 +2296,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2298
2296
|
position: 'relative',
|
|
2299
2297
|
padding: ({
|
|
2300
2298
|
isMobile
|
|
2301
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
2299
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
2302
2300
|
backgroundColor: theme?.palette?.background?.primary,
|
|
2303
2301
|
'&, & *, & *:before, & *:after': {
|
|
2304
2302
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -2399,6 +2397,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2399
2397
|
},
|
|
2400
2398
|
contentContainer: {
|
|
2401
2399
|
display: 'flex',
|
|
2400
|
+
flexDirection: 'column-reverse',
|
|
2402
2401
|
flexFlow: 'column',
|
|
2403
2402
|
paddingBottom: '48px',
|
|
2404
2403
|
gap: '24px'
|
|
@@ -2752,7 +2751,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
|
|
|
2752
2751
|
width: '100%',
|
|
2753
2752
|
padding: ({
|
|
2754
2753
|
isMobile
|
|
2755
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
2754
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
2756
2755
|
display: 'flex',
|
|
2757
2756
|
justifyContent: 'center',
|
|
2758
2757
|
flexDirection: 'column',
|
|
@@ -3237,7 +3236,7 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
3237
3236
|
const useSectionStyles$5 = createUseStyles(theme => {
|
|
3238
3237
|
return {
|
|
3239
3238
|
section: {
|
|
3240
|
-
padding: `${theme.spacing.padding.
|
|
3239
|
+
padding: `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
3241
3240
|
'&, & *, & *:before, & *:after': {
|
|
3242
3241
|
fontFamily: theme?.typography?.fontFamily,
|
|
3243
3242
|
boxSizing: 'border-box'
|
|
@@ -3258,7 +3257,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3258
3257
|
},
|
|
3259
3258
|
centerData: {
|
|
3260
3259
|
display: 'flex',
|
|
3261
|
-
alignItems: '
|
|
3260
|
+
alignItems: 'start',
|
|
3262
3261
|
justifyContent: 'center'
|
|
3263
3262
|
|
|
3264
3263
|
// padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
|
|
@@ -3328,10 +3327,10 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3328
3327
|
},
|
|
3329
3328
|
'@media screen and (max-width: 767px)': {
|
|
3330
3329
|
section: {
|
|
3331
|
-
padding: `${theme.spacing.padding.
|
|
3330
|
+
padding: `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px`
|
|
3332
3331
|
},
|
|
3333
3332
|
centerData: {
|
|
3334
|
-
flexDirection: 'column
|
|
3333
|
+
flexDirection: 'column',
|
|
3335
3334
|
width: '100%'
|
|
3336
3335
|
// padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
|
|
3337
3336
|
},
|
|
@@ -3473,7 +3472,7 @@ const useSectionStyles$4 = createUseStyles(theme => ({
|
|
|
3473
3472
|
justifyContent: 'center',
|
|
3474
3473
|
padding: ({
|
|
3475
3474
|
isMobile
|
|
3476
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
3475
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
3477
3476
|
'&, & *, & *:before, & *:after': {
|
|
3478
3477
|
fontFamily: theme?.typography?.fontFamily,
|
|
3479
3478
|
boxSizing: 'border-box'
|
|
@@ -3864,7 +3863,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
|
|
|
3864
3863
|
testimonialContainer: {
|
|
3865
3864
|
background: theme?.palette?.background?.primary,
|
|
3866
3865
|
overflow: 'hidden',
|
|
3867
|
-
padding: `${theme.spacing.padding.
|
|
3866
|
+
padding: `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
3868
3867
|
'&, & *, & *:before, & *:after': {
|
|
3869
3868
|
fontFamily: theme?.typography?.fontFamily,
|
|
3870
3869
|
boxSizing: 'border-box'
|
|
@@ -3977,7 +3976,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
|
|
|
3977
3976
|
},
|
|
3978
3977
|
'@media (max-width: 768px)': {
|
|
3979
3978
|
testimonialContainer: {
|
|
3980
|
-
padding: `${theme.spacing.padding.medium}px ${theme.spacing.padding.
|
|
3979
|
+
padding: `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px`
|
|
3981
3980
|
},
|
|
3982
3981
|
// testimonialCardAndText: {
|
|
3983
3982
|
// margin: '0 20px'
|
|
@@ -4005,6 +4004,7 @@ const useTestimonialStyles = createUseStyles(theme => ({
|
|
|
4005
4004
|
marginRight: '16px'
|
|
4006
4005
|
},
|
|
4007
4006
|
reviewText: {
|
|
4007
|
+
lineHeight: '22px',
|
|
4008
4008
|
marginBottom: '16px'
|
|
4009
4009
|
},
|
|
4010
4010
|
singleCard: {
|
|
@@ -4015,7 +4015,8 @@ const useTestimonialStyles = createUseStyles(theme => ({
|
|
|
4015
4015
|
// paddingTop: '8px',
|
|
4016
4016
|
overflow: 'hidden',
|
|
4017
4017
|
whiteSpace: 'nowrap',
|
|
4018
|
-
textOverflow: 'ellipsis'
|
|
4018
|
+
textOverflow: 'ellipsis',
|
|
4019
|
+
fontSize: '20px'
|
|
4019
4020
|
},
|
|
4020
4021
|
userImageContainer: {
|
|
4021
4022
|
width: '48px',
|
|
@@ -4342,7 +4343,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
|
|
|
4342
4343
|
justifyContent: 'center',
|
|
4343
4344
|
padding: ({
|
|
4344
4345
|
isMobile
|
|
4345
|
-
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.
|
|
4346
|
+
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
4346
4347
|
'&, & *, & *:before, & *:after': {
|
|
4347
4348
|
fontFamily: theme?.typography?.fontFamily
|
|
4348
4349
|
// boxSizing: 'border-box'
|
|
@@ -4369,9 +4370,10 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
|
|
|
4369
4370
|
letterSpacing: '3px',
|
|
4370
4371
|
textTransform: 'uppercase',
|
|
4371
4372
|
color: theme.palette.font.default,
|
|
4372
|
-
wordBreak: 'break-word'
|
|
4373
|
-
marginBottom: '8px'
|
|
4373
|
+
wordBreak: 'break-word'
|
|
4374
|
+
// marginBottom: '8px'
|
|
4374
4375
|
},
|
|
4376
|
+
|
|
4375
4377
|
videoTestimonialTitle: {
|
|
4376
4378
|
fontSize: theme.typography.fontSize.h2,
|
|
4377
4379
|
// lineHeight: '71px',
|
|
@@ -4448,6 +4450,9 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
|
|
|
4448
4450
|
videoDetailsHeading: {
|
|
4449
4451
|
lineHeight: 'normal'
|
|
4450
4452
|
},
|
|
4453
|
+
videoDetailsSubContent: {
|
|
4454
|
+
textAlign: 'center'
|
|
4455
|
+
},
|
|
4451
4456
|
videoTestimonialTitle: {
|
|
4452
4457
|
lineHeight: 'normal',
|
|
4453
4458
|
letterSpacing: '-1px'
|
|
@@ -4554,7 +4559,7 @@ const useVideoStyles = createUseStyles(theme => {
|
|
|
4554
4559
|
videoSuperContainer: {
|
|
4555
4560
|
padding: ({
|
|
4556
4561
|
isMobile
|
|
4557
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
4562
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
4558
4563
|
backgroundColor: theme?.palette?.background?.primary,
|
|
4559
4564
|
'&, & *, & *:before, & *:after': {
|
|
4560
4565
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -4597,11 +4602,11 @@ const useVideoStyles = createUseStyles(theme => {
|
|
|
4597
4602
|
},
|
|
4598
4603
|
singleSlideContainer: {
|
|
4599
4604
|
backgroundColor: theme?.palette?.background?.default,
|
|
4600
|
-
margin: '20px',
|
|
4601
|
-
width: 'calc(100% -
|
|
4605
|
+
// margin: '20px',
|
|
4606
|
+
width: 'calc(100% - 24px)',
|
|
4602
4607
|
height: 'calc(100% - 40px)',
|
|
4603
4608
|
borderRadius: theme?.shape?.borderRadius?.regular,
|
|
4604
|
-
padding: '
|
|
4609
|
+
padding: '64px',
|
|
4605
4610
|
boxShadow: theme?.shadows?.primary
|
|
4606
4611
|
},
|
|
4607
4612
|
contentRow: {
|
|
@@ -4637,7 +4642,7 @@ const useVideoStyles = createUseStyles(theme => {
|
|
|
4637
4642
|
wordBreak: 'break-word'
|
|
4638
4643
|
},
|
|
4639
4644
|
videoDetailsSubHeading: {
|
|
4640
|
-
fontSize: theme.typography.fontSize.
|
|
4645
|
+
fontSize: theme.typography.fontSize.body,
|
|
4641
4646
|
lineHeight: '24px',
|
|
4642
4647
|
wordBreak: 'break-word',
|
|
4643
4648
|
color: theme?.palette?.font?.primary
|
|
@@ -4677,17 +4682,16 @@ const useVideoStyles = createUseStyles(theme => {
|
|
|
4677
4682
|
display: 'flex',
|
|
4678
4683
|
justifyContent: 'center',
|
|
4679
4684
|
textAlign: 'center'
|
|
4685
|
+
},
|
|
4686
|
+
videoDetailsHeading: {
|
|
4687
|
+
fontSize: '20px',
|
|
4688
|
+
marginBottom: '0',
|
|
4689
|
+
textAlign: 'center'
|
|
4690
|
+
},
|
|
4691
|
+
videoDetailsSubHeading: {
|
|
4692
|
+
fontSize: '14px',
|
|
4693
|
+
textAlign: 'center'
|
|
4680
4694
|
}
|
|
4681
|
-
|
|
4682
|
-
// videoDetailsHeading: {
|
|
4683
|
-
// fontSize: '18px',
|
|
4684
|
-
// margin: '0'
|
|
4685
|
-
// },
|
|
4686
|
-
|
|
4687
|
-
// videoDetailsSubHeading: {
|
|
4688
|
-
// fontSize: '12px',
|
|
4689
|
-
// paddingBottom: '20px'
|
|
4690
|
-
// }
|
|
4691
4695
|
}
|
|
4692
4696
|
};
|
|
4693
4697
|
});
|
|
@@ -4791,7 +4795,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4791
4795
|
position: 'relative',
|
|
4792
4796
|
padding: ({
|
|
4793
4797
|
isMobile
|
|
4794
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
4798
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px 0px ${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
4795
4799
|
backgroundColor: theme?.palette?.background?.default,
|
|
4796
4800
|
'&, & *, & *:before, & *:after': {
|
|
4797
4801
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -4833,7 +4837,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4833
4837
|
wordBreak: 'break-word'
|
|
4834
4838
|
},
|
|
4835
4839
|
heading: {
|
|
4836
|
-
margin: `
|
|
4840
|
+
margin: `0px 0 ${theme.spacing.margin.tiny}px`,
|
|
4837
4841
|
fontSize: theme.typography.fontSize.h2,
|
|
4838
4842
|
width: '100%',
|
|
4839
4843
|
lineHeight: '70px',
|
|
@@ -4841,10 +4845,11 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4841
4845
|
textAlign: 'left',
|
|
4842
4846
|
wordBreak: 'break-word'
|
|
4843
4847
|
},
|
|
4844
|
-
sliderContainer: {
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
},
|
|
4848
|
+
// sliderContainer: {
|
|
4849
|
+
// marginLeft: '-10px',
|
|
4850
|
+
// marginRight: '-70px'
|
|
4851
|
+
// },
|
|
4852
|
+
|
|
4848
4853
|
card: {
|
|
4849
4854
|
background: theme?.palette?.background?.default,
|
|
4850
4855
|
boxShadow: theme?.shadows?.primary,
|
|
@@ -4859,9 +4864,12 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4859
4864
|
padding: '24px',
|
|
4860
4865
|
height: '100%',
|
|
4861
4866
|
display: 'flex',
|
|
4862
|
-
flexDirection: 'column'
|
|
4867
|
+
flexDirection: 'column',
|
|
4868
|
+
justifyContent: 'center',
|
|
4869
|
+
alignItems: 'center'
|
|
4863
4870
|
},
|
|
4864
4871
|
cardHeading: {
|
|
4872
|
+
textAlign: 'center',
|
|
4865
4873
|
fontSize: theme.typography.fontSize.h6,
|
|
4866
4874
|
fontWeight: theme.typography.fontWeight.bold,
|
|
4867
4875
|
color: theme?.palette?.font?.default,
|
|
@@ -4869,6 +4877,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4869
4877
|
wordBreak: 'break-word'
|
|
4870
4878
|
},
|
|
4871
4879
|
imageContainer: {
|
|
4880
|
+
textAlign: 'center',
|
|
4872
4881
|
width: '96px',
|
|
4873
4882
|
height: '96px',
|
|
4874
4883
|
display: 'flex',
|
|
@@ -4886,6 +4895,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4886
4895
|
marginTop: theme.spacing.margin.tiny
|
|
4887
4896
|
},
|
|
4888
4897
|
cardPara: {
|
|
4898
|
+
textAlign: 'center',
|
|
4889
4899
|
fontSize: theme.typography.fontSize.body,
|
|
4890
4900
|
lineHeight: '22px',
|
|
4891
4901
|
color: theme?.palette?.font?.primary,
|
|
@@ -4901,11 +4911,15 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4901
4911
|
},
|
|
4902
4912
|
'@media screen and (max-width: 767px)': {
|
|
4903
4913
|
heading: {
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4914
|
+
textAlign: 'center',
|
|
4915
|
+
fontSize: '20px',
|
|
4916
|
+
margin: `0px 0 ${theme.spacing.margin.tiny}px`,
|
|
4917
|
+
lineHeight: '24px',
|
|
4907
4918
|
padding: '0'
|
|
4908
4919
|
},
|
|
4920
|
+
subTitleHeading: {
|
|
4921
|
+
textAlign: 'center'
|
|
4922
|
+
},
|
|
4909
4923
|
sliderContainer: {
|
|
4910
4924
|
marginLeft: '-6px',
|
|
4911
4925
|
marginRight: '-20px'
|
|
@@ -4920,6 +4934,12 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4920
4934
|
slidesToShow,
|
|
4921
4935
|
cardsCount
|
|
4922
4936
|
} = {}) => cardsCount > slidesToShow ? `6px 2px 6px 6px` : `6px 0 6px 0`
|
|
4937
|
+
},
|
|
4938
|
+
cardHeading: {
|
|
4939
|
+
fontSize: '18px'
|
|
4940
|
+
},
|
|
4941
|
+
cardContent: {
|
|
4942
|
+
padding: '16px'
|
|
4923
4943
|
}
|
|
4924
4944
|
}
|
|
4925
4945
|
}));
|
|
@@ -5020,7 +5040,7 @@ const useSectionStyles$2 = createUseStyles(theme => ({
|
|
|
5020
5040
|
section: {
|
|
5021
5041
|
padding: ({
|
|
5022
5042
|
isMobile
|
|
5023
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
5043
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
5024
5044
|
backgroundColor: theme?.palette?.background?.default,
|
|
5025
5045
|
'&, & *, & *:before, & *:after': {
|
|
5026
5046
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -5136,7 +5156,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
|
|
|
5136
5156
|
padding: ({
|
|
5137
5157
|
isMobile,
|
|
5138
5158
|
cardsCount
|
|
5139
|
-
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.
|
|
5159
|
+
} = {}) => 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`,
|
|
5140
5160
|
'&, & *, & *:before, & *:after': {
|
|
5141
5161
|
fontFamily: theme?.typography?.fontFamily,
|
|
5142
5162
|
boxSizing: 'border-box'
|
|
@@ -5188,17 +5208,22 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
|
|
|
5188
5208
|
} = {}) => {
|
|
5189
5209
|
if (cardsCount === 1) return '';
|
|
5190
5210
|
return `repeat(${slidesToShow},minmax(0, 1fr))`;
|
|
5191
|
-
}
|
|
5211
|
+
},
|
|
5212
|
+
padding: ({
|
|
5213
|
+
cardsCount
|
|
5214
|
+
}) => cardsCount === 1 ? '0px 100px' : ''
|
|
5192
5215
|
},
|
|
5193
5216
|
carouselImage: {
|
|
5194
|
-
height:
|
|
5195
|
-
|
|
5217
|
+
height: ({
|
|
5218
|
+
cardsCount
|
|
5219
|
+
}) => cardsCount === 1 ? '480px' : '100%',
|
|
5220
|
+
borderRadius: '24px',
|
|
5196
5221
|
objectFit: 'cover',
|
|
5222
|
+
objectPosition: 'center',
|
|
5197
5223
|
position: 'absolute',
|
|
5198
5224
|
left: 0,
|
|
5199
5225
|
top: 0,
|
|
5200
|
-
width: '100%'
|
|
5201
|
-
height: '100%'
|
|
5226
|
+
width: '100%'
|
|
5202
5227
|
},
|
|
5203
5228
|
title: {
|
|
5204
5229
|
fontSize: theme.typography.fontSize.h2,
|
|
@@ -5234,6 +5259,12 @@ function PhotoGallery({
|
|
|
5234
5259
|
sectionIndex
|
|
5235
5260
|
}) {
|
|
5236
5261
|
const {
|
|
5262
|
+
templateId,
|
|
5263
|
+
navList,
|
|
5264
|
+
isPreview,
|
|
5265
|
+
isEdit,
|
|
5266
|
+
basePath,
|
|
5267
|
+
isMasterTemplate,
|
|
5237
5268
|
isMobile,
|
|
5238
5269
|
layout: {
|
|
5239
5270
|
containerWidth
|
|
@@ -5259,17 +5290,34 @@ function PhotoGallery({
|
|
|
5259
5290
|
centerPadding: isMobile ? '10px 0 0' : '80px 0 0',
|
|
5260
5291
|
arrows: false
|
|
5261
5292
|
};
|
|
5262
|
-
const handleClick =
|
|
5263
|
-
|
|
5264
|
-
|
|
5293
|
+
const handleClick = data => {
|
|
5294
|
+
let redirectUrl;
|
|
5295
|
+
const {
|
|
5296
|
+
isExistingLink,
|
|
5297
|
+
link
|
|
5298
|
+
} = data;
|
|
5299
|
+
if (isExistingLink && link === "courses") {
|
|
5300
|
+
redirectUrl = `//${basePath}/courses`;
|
|
5301
|
+
} else if (isExistingLink && link) {
|
|
5302
|
+
// const { pageId } = navList.find((el) => el.slug === data?.link) || {};
|
|
5303
|
+
redirectUrl = `//${basePath}/${link}`;
|
|
5304
|
+
} else {
|
|
5305
|
+
redirectUrl = link;
|
|
5306
|
+
}
|
|
5307
|
+
if (redirectUrl) {
|
|
5308
|
+
window.open(redirectUrl, '_blank');
|
|
5265
5309
|
}
|
|
5266
5310
|
};
|
|
5311
|
+
|
|
5312
|
+
// useLinkBuilder(data);
|
|
5313
|
+
|
|
5267
5314
|
const carouselContent = carouselList?.map((el, idx) => {
|
|
5315
|
+
const metadata = el?.cardImage?.metadata;
|
|
5268
5316
|
const link = el?.cardImage?.metadata?.link;
|
|
5269
5317
|
return /*#__PURE__*/React.createElement(Fragment, {
|
|
5270
5318
|
key: idx
|
|
5271
5319
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5272
|
-
onClick: () => handleClick(
|
|
5320
|
+
onClick: () => handleClick(metadata),
|
|
5273
5321
|
className: `${classes.singleCard} ${link && classes.cursorPointer}`
|
|
5274
5322
|
}, /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
5275
5323
|
src: el?.cardImage?.metadata?.value,
|
|
@@ -5314,7 +5362,7 @@ const useFaqListStyles = createUseStyles(theme => ({
|
|
|
5314
5362
|
width: '100%',
|
|
5315
5363
|
padding: ({
|
|
5316
5364
|
isMobile
|
|
5317
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
5365
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
5318
5366
|
backgroundColor: theme?.palette?.background?.primary,
|
|
5319
5367
|
'&, & *, & *:before, & *:after': {
|
|
5320
5368
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -5495,7 +5543,7 @@ const useTextGridStyles = createUseStyles(theme => ({
|
|
|
5495
5543
|
section: {
|
|
5496
5544
|
padding: ({
|
|
5497
5545
|
isMobile
|
|
5498
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
5546
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
5499
5547
|
// backgroundColor: theme?.palette?.background?.primary,
|
|
5500
5548
|
|
|
5501
5549
|
'&, & *, & *:before, & *:after': {
|
|
@@ -5671,7 +5719,7 @@ const useCourseStyles = createUseStyles(theme => {
|
|
|
5671
5719
|
overflow: 'hidden',
|
|
5672
5720
|
padding: ({
|
|
5673
5721
|
isMobile
|
|
5674
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
5722
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
5675
5723
|
'&, & *, & *:before, & *:after': {
|
|
5676
5724
|
fontFamily: theme?.typography?.fontFamily,
|
|
5677
5725
|
boxSizing: 'border-box'
|
|
@@ -5821,7 +5869,6 @@ const useCourseStyles = createUseStyles(theme => {
|
|
|
5821
5869
|
},
|
|
5822
5870
|
courseCardStrikePrice: {
|
|
5823
5871
|
fontSize: '14px',
|
|
5824
|
-
fontWeight: '600',
|
|
5825
5872
|
lineHeight: '13px',
|
|
5826
5873
|
color: '#FE9B0E',
|
|
5827
5874
|
'& span': {
|
|
@@ -5892,7 +5939,7 @@ const useCourseStyles = createUseStyles(theme => {
|
|
|
5892
5939
|
// fontSize: '24px',
|
|
5893
5940
|
lineHeight: '36px',
|
|
5894
5941
|
color: theme?.palette?.font?.default,
|
|
5895
|
-
margin: '
|
|
5942
|
+
margin: '0px 0 12px 0',
|
|
5896
5943
|
overflow: 'hidden',
|
|
5897
5944
|
whiteSpace: 'nowrap',
|
|
5898
5945
|
textOverflow: 'ellipsis'
|
|
@@ -6195,7 +6242,7 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6195
6242
|
teamSuperContainer: {
|
|
6196
6243
|
padding: ({
|
|
6197
6244
|
isMobile
|
|
6198
|
-
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.
|
|
6245
|
+
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px ${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
6199
6246
|
// backgroundColor: theme?.palette?.background?.primary,
|
|
6200
6247
|
|
|
6201
6248
|
'&, & *, & *:before, & *:after': {
|
|
@@ -6304,8 +6351,9 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6304
6351
|
textAlign: 'center'
|
|
6305
6352
|
},
|
|
6306
6353
|
teamTitle: {
|
|
6354
|
+
marginTop: '0px',
|
|
6307
6355
|
textAlign: 'center',
|
|
6308
|
-
fontSize: theme.typography.fontSize.
|
|
6356
|
+
fontSize: theme.typography.fontSize.h2,
|
|
6309
6357
|
lineHeight: '36px',
|
|
6310
6358
|
letterSpacing: '-1px'
|
|
6311
6359
|
},
|
|
@@ -6313,6 +6361,7 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6313
6361
|
margin: '0 -4px'
|
|
6314
6362
|
},
|
|
6315
6363
|
singleSlideContainer: {
|
|
6364
|
+
padding: '24px',
|
|
6316
6365
|
width: 'calc(100% - 8px)',
|
|
6317
6366
|
margin: '12px 4px'
|
|
6318
6367
|
},
|
|
@@ -6323,11 +6372,13 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6323
6372
|
},
|
|
6324
6373
|
|
|
6325
6374
|
teamDetailsHeading: {
|
|
6375
|
+
fontSize: '16px',
|
|
6326
6376
|
lineHeight: '24px',
|
|
6327
6377
|
margin: '0',
|
|
6328
|
-
color: theme?.palette?.font?.
|
|
6378
|
+
color: theme?.palette?.font?.body
|
|
6329
6379
|
},
|
|
6330
6380
|
teamDetailsSubHeading: {
|
|
6381
|
+
marginTop: '0px',
|
|
6331
6382
|
color: theme?.palette?.font?.primary
|
|
6332
6383
|
}
|
|
6333
6384
|
}
|
|
@@ -6442,7 +6493,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
6442
6493
|
backgroundColor: theme?.palette?.background?.default,
|
|
6443
6494
|
padding: ({
|
|
6444
6495
|
isMobile
|
|
6445
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
6496
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
6446
6497
|
'&, & *, & *:before, & *:after': {
|
|
6447
6498
|
fontFamily: theme?.typography?.fontFamily,
|
|
6448
6499
|
boxSizing: 'border-box'
|
|
@@ -6522,7 +6573,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
6522
6573
|
padding: '4px 8px 0 0'
|
|
6523
6574
|
},
|
|
6524
6575
|
addressText: {
|
|
6525
|
-
fontSize: theme.typography.fontSize.
|
|
6576
|
+
fontSize: theme.typography.fontSize.h6,
|
|
6526
6577
|
color: theme?.palette?.font?.default,
|
|
6527
6578
|
lineHeight: '24px'
|
|
6528
6579
|
},
|
|
@@ -6847,7 +6898,7 @@ const useSectionStyles = createUseStyles(theme => ({
|
|
|
6847
6898
|
alignItems: 'center',
|
|
6848
6899
|
padding: ({
|
|
6849
6900
|
isMobile
|
|
6850
|
-
} = {}) => isMobile ? `${theme.spacing.padding.
|
|
6901
|
+
} = {}) => isMobile ? `${theme.spacing.padding.regular}px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`,
|
|
6851
6902
|
backgroundColor: theme?.palette?.background?.default,
|
|
6852
6903
|
'&, & *, & *:before, & *:after': {
|
|
6853
6904
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -8704,7 +8755,7 @@ const useTilesStyles = createUseStyles(theme => {
|
|
|
8704
8755
|
flexDirection: 'column',
|
|
8705
8756
|
padding: ({
|
|
8706
8757
|
isMobile
|
|
8707
|
-
} = {}) => isMobile ? `
|
|
8758
|
+
} = {}) => isMobile ? `24px ${theme.spacing.padding.small}px` : `${theme.spacing.padding.small}px ${theme.spacing.padding.medium}px`
|
|
8708
8759
|
},
|
|
8709
8760
|
tileDiv: {
|
|
8710
8761
|
width: '236px',
|