diy-template-components 0.1.5 → 0.1.8
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 +31 -17
- package/build/index.es.js.map +1 -1
- package/build/index.js +31 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -6580,7 +6580,13 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6580
6580
|
webinarCarousel: {
|
|
6581
6581
|
display: 'flex',
|
|
6582
6582
|
justifyContent: 'flex-start',
|
|
6583
|
-
gap: '
|
|
6583
|
+
gap: '20px'
|
|
6584
|
+
},
|
|
6585
|
+
'@media screen and (max-width: 767px)': {
|
|
6586
|
+
webinarCarousel: {
|
|
6587
|
+
display: 'flex',
|
|
6588
|
+
flexDirection: 'column-reverse'
|
|
6589
|
+
}
|
|
6584
6590
|
},
|
|
6585
6591
|
iframeSuperContainer: {
|
|
6586
6592
|
height: '100%',
|
|
@@ -6600,8 +6606,8 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6600
6606
|
color: theme.palette.font.primary
|
|
6601
6607
|
},
|
|
6602
6608
|
offerPrice: {
|
|
6603
|
-
fontSize: '
|
|
6604
|
-
fontWeight: '
|
|
6609
|
+
fontSize: '28px',
|
|
6610
|
+
fontWeight: '600'
|
|
6605
6611
|
},
|
|
6606
6612
|
priceContainer: {
|
|
6607
6613
|
display: 'flex',
|
|
@@ -6618,8 +6624,9 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6618
6624
|
},
|
|
6619
6625
|
bottomContainer: {
|
|
6620
6626
|
display: 'flex',
|
|
6621
|
-
justifyContent: 'space-
|
|
6622
|
-
marginTop: '5%'
|
|
6627
|
+
justifyContent: 'space-between',
|
|
6628
|
+
marginTop: '5%',
|
|
6629
|
+
padding: '0px 5% 0px 5%'
|
|
6623
6630
|
},
|
|
6624
6631
|
iframe: {
|
|
6625
6632
|
position: 'absolute',
|
|
@@ -6647,7 +6654,8 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6647
6654
|
display: 'flex',
|
|
6648
6655
|
flexDirection: 'column',
|
|
6649
6656
|
justifyContent: 'center',
|
|
6650
|
-
paddingTop: '20px'
|
|
6657
|
+
paddingTop: '20px',
|
|
6658
|
+
borderRadius: '10px'
|
|
6651
6659
|
},
|
|
6652
6660
|
bannerContainer: {
|
|
6653
6661
|
background: '#EB5757',
|
|
@@ -6767,7 +6775,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
6767
6775
|
completed
|
|
6768
6776
|
}) => {
|
|
6769
6777
|
if (hours < 24) {
|
|
6770
|
-
return /*#__PURE__*/React.createElement("span", null, hours, "
|
|
6778
|
+
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
6771
6779
|
} else {
|
|
6772
6780
|
let given = moment(props.data.endTime);
|
|
6773
6781
|
let current = moment().startOf('day');
|
|
@@ -6780,7 +6788,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
6780
6788
|
discount
|
|
6781
6789
|
}) => {
|
|
6782
6790
|
console.log('discountxx', props.data.price, props.data.discount);
|
|
6783
|
-
return (
|
|
6791
|
+
return (discount / price * 100).toFixed(2);
|
|
6784
6792
|
};
|
|
6785
6793
|
|
|
6786
6794
|
const classes = useWebinarPromotionPage();
|
|
@@ -6844,20 +6852,22 @@ const SingleVideoSlide$1 = props => {
|
|
|
6844
6852
|
className: classes.priceContainer
|
|
6845
6853
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6846
6854
|
className: classes.offerPrice
|
|
6847
|
-
}, data?.
|
|
6855
|
+
}, "\u20B9", data?.effectivePrice), /*#__PURE__*/React.createElement("p", {
|
|
6848
6856
|
style: {
|
|
6849
|
-
fontSize: '20px'
|
|
6857
|
+
fontSize: '20px',
|
|
6858
|
+
marginTop: '0px'
|
|
6850
6859
|
}
|
|
6851
6860
|
}, /*#__PURE__*/React.createElement("span", {
|
|
6852
6861
|
className: classes.originalPrice
|
|
6853
|
-
}, data?.price), ' ', /*#__PURE__*/React.createElement("span", {
|
|
6862
|
+
}, "\u20B9", data?.price), ' ', /*#__PURE__*/React.createElement("span", {
|
|
6854
6863
|
className: classes.offerDiscount
|
|
6855
6864
|
}, `${data && discount(data)}%`))) : null, /*#__PURE__*/React.createElement("div", {
|
|
6856
6865
|
className: classes.webinarButtonContainer
|
|
6857
6866
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
6858
6867
|
style: {
|
|
6859
6868
|
backgroundColor: '#009AE0',
|
|
6860
|
-
width: data.isPaid ? '
|
|
6869
|
+
width: data.isPaid ? '100%' : '250px',
|
|
6870
|
+
fontSize: 'large'
|
|
6861
6871
|
},
|
|
6862
6872
|
data: {
|
|
6863
6873
|
// link: 'headerData?.loginCtaLink',
|
|
@@ -6953,7 +6963,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
6953
6963
|
coursePageCarousel: {
|
|
6954
6964
|
display: 'flex',
|
|
6955
6965
|
justifyContent: 'flex-start',
|
|
6956
|
-
gap: '
|
|
6966
|
+
gap: '20px'
|
|
6957
6967
|
},
|
|
6958
6968
|
iframeSuperContainer: {
|
|
6959
6969
|
height: '100%',
|
|
@@ -6973,7 +6983,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
6973
6983
|
color: theme.palette.font.primary
|
|
6974
6984
|
},
|
|
6975
6985
|
offerPrice: {
|
|
6976
|
-
fontSize: '
|
|
6986
|
+
fontSize: '28px',
|
|
6977
6987
|
fontWeight: '700'
|
|
6978
6988
|
},
|
|
6979
6989
|
priceContainer: {
|
|
@@ -7018,7 +7028,8 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
7018
7028
|
width: '645px',
|
|
7019
7029
|
backgroundColor: '#f4f9ff',
|
|
7020
7030
|
display: 'flex',
|
|
7021
|
-
flexDirection: 'column'
|
|
7031
|
+
flexDirection: 'column',
|
|
7032
|
+
borderRadius: '10px'
|
|
7022
7033
|
},
|
|
7023
7034
|
bannerContainer: {
|
|
7024
7035
|
background: '#EB5757',
|
|
@@ -7212,7 +7223,8 @@ const SingleVideoSlide = props => {
|
|
|
7212
7223
|
className: classes.offerPrice
|
|
7213
7224
|
}, "\u20B9 ", data.effectivePrice), /*#__PURE__*/React.createElement("p", {
|
|
7214
7225
|
style: {
|
|
7215
|
-
fontSize: '20px'
|
|
7226
|
+
fontSize: '20px',
|
|
7227
|
+
marginTop: '0px'
|
|
7216
7228
|
}
|
|
7217
7229
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7218
7230
|
className: classes.originalPrice
|
|
@@ -7466,6 +7478,7 @@ const FormPage = ({
|
|
|
7466
7478
|
className: classes.inputFieldLabel
|
|
7467
7479
|
}, item.text), /*#__PURE__*/React.createElement("input", {
|
|
7468
7480
|
className: classes.inputFieldControl,
|
|
7481
|
+
required: item.isRequired,
|
|
7469
7482
|
type: "text",
|
|
7470
7483
|
placeholder: "Short answer",
|
|
7471
7484
|
name: item._id,
|
|
@@ -7526,7 +7539,8 @@ const FormPage = ({
|
|
|
7526
7539
|
}, /*#__PURE__*/React.createElement("input", {
|
|
7527
7540
|
// value={option.value}
|
|
7528
7541
|
type: "radio",
|
|
7529
|
-
name: "text"
|
|
7542
|
+
name: "text",
|
|
7543
|
+
required: item.isRequired // name={option.value}
|
|
7530
7544
|
// id={option.value}
|
|
7531
7545
|
,
|
|
7532
7546
|
onChange: e => {
|