tabexseriescomponents 0.0.80 → 0.0.82
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/dist/index.cjs.js +41 -13
- package/dist/index.esm.js +41 -13
- package/dist/index.umd.js +41 -13
- package/package.json +1 -1
- package/componentssrc.rar +0 -0
- package/srcOLD/Contexts/LanguageContext.jsx +0 -347
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/srcOLD/StylesJS/Customstyles.js +0 -235
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +0 -40
- package/srcOLD/index.jsx +0 -175
- package/srcOLD/styles/Home.module.css +0 -129
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcOLD/styles/cards/Productcard6.module.css +0 -9
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcOLD/styles/cards/categorycard.module.css +0 -102
- package/srcOLD/styles/cards/categorycard3.module.css +0 -51
- package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcOLD/styles/general/bootstrap.css +0 -4420
- package/srcOLD/styles/general/dropdown.css +0 -199
- package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
- package/srcOLD/styles/general/filter.module.css +0 -108
- package/srcOLD/styles/general/form.module.css +0 -273
- package/srcOLD/styles/general/general.module.css +0 -709
- package/srcOLD/styles/general/image-gallery.css +0 -481
- package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
- package/srcOLD/styles/general/scrollbtn.module.css +0 -22
- package/srcOLD/styles/general/slick.module.css +0 -166
- package/srcOLD/styles/general/tabs.module.css +0 -110
- package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
- package/srcOLD/styles/globals.css +0 -26
- package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
- package/srcOLD/styles/headers/Header7.module.css +0 -50
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
- package/srcOLD/styles/headers/Sideheader.module.css +0 -108
- package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +0 -175
- package/srcOLD/styles/headers/header5.module.css +0 -30
- package/srcOLD/styles/headers/header6.module.css +0 -117
- package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
- package/srcOLD/styles/headers/headerresturant.module.css +0 -89
- package/srcOLD/styles/headers/headerstyles.module.css +0 -24
- package/srcOLD/styles/headers/modernheader.module.css +0 -78
- package/srcOLD/styles/headers/subheader.module.css +0 -114
- package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcOLD/styles/staticpages/accordion.module.css +0 -9
- package/srcOLD/styles/staticpages/cart.module.css +0 -108
- package/srcOLD/styles/staticpages/dropdown.css +0 -196
- package/srcOLD/styles/staticpages/filter.module.css +0 -139
- package/srcOLD/styles/staticpages/login.module.css +0 -146
- package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
- package/srcOLD/styles/staticpages/shop.module.css +0 -191
- package/srcOLD/styles/staticpages/signup.module.css +0 -206
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
- package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
// import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
3
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
4
|
-
// import { css } from 'glamor';
|
|
5
|
-
// import { IKImage } from 'imagekitio-react';
|
|
6
|
-
|
|
7
|
-
// const Image_with_leftwords = (props) => {
|
|
8
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
9
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
10
|
-
// const [sectionproperties, setsectionproperties] = useState('');
|
|
11
|
-
// const [imagesarray, setimagesarray] = useState([]);
|
|
12
|
-
// useEffect(() => {
|
|
13
|
-
// if (props.srcfrom == 'addsectionform') {
|
|
14
|
-
// var secpropobj = {};
|
|
15
|
-
// props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
16
|
-
// secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
17
|
-
// });
|
|
18
|
-
// setsectionproperties({ ...secpropobj });
|
|
19
|
-
// } else {
|
|
20
|
-
// var secpropobj = {};
|
|
21
|
-
|
|
22
|
-
// StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
23
|
-
// if (sectionitem.sectionid == props.sectionidprops) {
|
|
24
|
-
// sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
25
|
-
// secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
26
|
-
// });
|
|
27
|
-
// }
|
|
28
|
-
// });
|
|
29
|
-
// setsectionproperties({ ...secpropobj });
|
|
30
|
-
// }
|
|
31
|
-
// }, [StatePagePropertiesContext]);
|
|
32
|
-
// useEffect(() => {
|
|
33
|
-
// if (sectionproperties.length != 0) {
|
|
34
|
-
// if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
35
|
-
// var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
36
|
-
// if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
37
|
-
// setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
38
|
-
// }
|
|
39
|
-
// }
|
|
40
|
-
// }
|
|
41
|
-
// }, [sectionproperties]);
|
|
42
|
-
// const section_styles = {
|
|
43
|
-
// btn: css({
|
|
44
|
-
// width: sectionproperties.generalbtn_width + 'px',
|
|
45
|
-
// height: sectionproperties.generalbtn_height + 'px',
|
|
46
|
-
// backgroundColor: sectionproperties.generalbtn_bgColor,
|
|
47
|
-
// color: sectionproperties.generalbtn_textColor,
|
|
48
|
-
// borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
49
|
-
// borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
50
|
-
// borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
51
|
-
// borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
52
|
-
// border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
53
|
-
// fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
54
|
-
// fontWeight: sectionproperties.generalbtn_fontweight,
|
|
55
|
-
// marginTop: sectionproperties.generalbtn_marginTop + 'px',
|
|
56
|
-
// marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
|
|
57
|
-
// transition: '.3s',
|
|
58
|
-
// cursor: 'pointer',
|
|
59
|
-
// ':hover': {
|
|
60
|
-
// backgroundColor: sectionproperties.generalbtn_bgColoronhover,
|
|
61
|
-
// color: sectionproperties.generalbtn_textColoronhover,
|
|
62
|
-
// },
|
|
63
|
-
// }),
|
|
64
|
-
// };
|
|
65
|
-
|
|
66
|
-
// return (
|
|
67
|
-
// <div
|
|
68
|
-
// class={' row ml-0 mr-0 d-flex justify-content-between w-100 align-items-center'}
|
|
69
|
-
// style={{
|
|
70
|
-
// paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
71
|
-
// paddingRight: sectionproperties.paddingRight + 'px',
|
|
72
|
-
// paddingTop: sectionproperties.paddingTop + 'px',
|
|
73
|
-
// paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
74
|
-
// marginTop: sectionproperties.marginTop + 'px',
|
|
75
|
-
// marginBottom: sectionproperties.marginBottom + 'px',
|
|
76
|
-
// background: sectionproperties.backgroundColor,
|
|
77
|
-
// borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
78
|
-
// borderTopRightRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
79
|
-
// borderBottomLeftRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
80
|
-
// borderBottomRightRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
81
|
-
// }}
|
|
82
|
-
// >
|
|
83
|
-
// <div class="col-lg-6 d-flex justify-content-start p-0 h-100">
|
|
84
|
-
// <div class="row m-0 w-100 mb-auto">
|
|
85
|
-
// <div class="col-lg-12 p-0">
|
|
86
|
-
// <p
|
|
87
|
-
// style={{
|
|
88
|
-
// color: sectionproperties.slideshowText1ContentColor,
|
|
89
|
-
// fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
90
|
-
// fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
91
|
-
// marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
92
|
-
// }}
|
|
93
|
-
// >
|
|
94
|
-
// {langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
95
|
-
// </p>
|
|
96
|
-
// </div>
|
|
97
|
-
|
|
98
|
-
// <div class="col-lg-12 p-0">
|
|
99
|
-
// <p
|
|
100
|
-
// class=" "
|
|
101
|
-
// style={{
|
|
102
|
-
// color: sectionproperties.slideshowText2ContentColor,
|
|
103
|
-
// fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
104
|
-
// fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
105
|
-
// }}
|
|
106
|
-
// >
|
|
107
|
-
// {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
|
|
108
|
-
// </p>
|
|
109
|
-
// </div>
|
|
110
|
-
// {sectionproperties.generalbtn_show == 'Show' && (
|
|
111
|
-
// <div class="col-lg-12 p-0">
|
|
112
|
-
// <button class={`${section_styles.btn}`}>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</button>
|
|
113
|
-
// </div>
|
|
114
|
-
// )}
|
|
115
|
-
// </div>
|
|
116
|
-
// </div>
|
|
117
|
-
// <div class="col-lg-6 d-flex justify-content-start">
|
|
118
|
-
// <IKImage
|
|
119
|
-
// path={imagesarray.length != 0 ? '/tr:w-500,h-500/' + imagesarray[0].bgsection_image : ''}
|
|
120
|
-
// style={{
|
|
121
|
-
// height: '100%',
|
|
122
|
-
// width: '100%',
|
|
123
|
-
// objectFit: 'cover',
|
|
124
|
-
// margin: 0,
|
|
125
|
-
// padding: 0,
|
|
126
|
-
// // height: sectionproperties.image_height + 'vh',
|
|
127
|
-
// borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
128
|
-
// borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
129
|
-
// borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
130
|
-
// borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
131
|
-
// }}
|
|
132
|
-
// />
|
|
133
|
-
// {/* <img class={`${sectionstyles.image}`} src="https://preview.colorlib.com/theme/pillowmart/img/xsingle_product_1.png.pagespeed.ic.B-AGzd90p_.webp" /> */}
|
|
134
|
-
// </div>
|
|
135
|
-
// </div>
|
|
136
|
-
// );
|
|
137
|
-
// };
|
|
138
|
-
// export default Image_with_leftwords;
|
|
139
|
-
|
|
140
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
141
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
142
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
143
|
-
import { css } from 'glamor';
|
|
144
|
-
import { IKImage } from 'imagekitio-react';
|
|
145
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
146
|
-
|
|
147
|
-
const Image_with_leftwords = (props) => {
|
|
148
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
149
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
150
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
151
|
-
const [imagesarray, setimagesarray] = useState([]);
|
|
152
|
-
|
|
153
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
154
|
-
const lang = props.actions.lang;
|
|
155
|
-
const langdetect = props.actions.langdetect;
|
|
156
|
-
|
|
157
|
-
useEffect(() => {
|
|
158
|
-
if (props.srcfrom == 'addsectionform') {
|
|
159
|
-
var secpropobj = {};
|
|
160
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
161
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
162
|
-
});
|
|
163
|
-
setsectionproperties({ ...secpropobj });
|
|
164
|
-
} else {
|
|
165
|
-
var secpropobj = {};
|
|
166
|
-
|
|
167
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
168
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
169
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
170
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
setsectionproperties({ ...secpropobj });
|
|
175
|
-
}
|
|
176
|
-
}, [StatePagePropertiesContext]);
|
|
177
|
-
useEffect(() => {
|
|
178
|
-
if (sectionproperties.length != 0) {
|
|
179
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
180
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
181
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
182
|
-
setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, [sectionproperties]);
|
|
187
|
-
const section_styles = {
|
|
188
|
-
btn: css({
|
|
189
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
190
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
191
|
-
backgroundColor: sectionproperties.generalbtn_bgColor,
|
|
192
|
-
color: sectionproperties.generalbtn_textColor,
|
|
193
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
194
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
195
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
196
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
197
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
198
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
199
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
200
|
-
marginTop: sectionproperties.generalbtn_marginTop + 'px',
|
|
201
|
-
marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
|
|
202
|
-
transition: '.3s',
|
|
203
|
-
cursor: 'pointer',
|
|
204
|
-
':hover': {
|
|
205
|
-
backgroundColor: sectionproperties.generalbtn_bgColoronhover,
|
|
206
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
207
|
-
},
|
|
208
|
-
}),
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
return (
|
|
212
|
-
<div
|
|
213
|
-
class={' row ml-0 mr-0 d-flex justify-content-between w-100 align-items-center pl-md-3 pr-md-3'}
|
|
214
|
-
style={{
|
|
215
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
216
|
-
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
217
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
218
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
219
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
220
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
221
|
-
background: sectionproperties.backgroundColor,
|
|
222
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
223
|
-
borderTopRightRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
224
|
-
borderBottomLeftRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
225
|
-
borderBottomRightRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
226
|
-
}}
|
|
227
|
-
>
|
|
228
|
-
<div class="col-lg-6 col-md-12 d-flex justify-content-start h-100 justify-content-md-center">
|
|
229
|
-
<div class="row m-0 w-100 mb-auto">
|
|
230
|
-
<div class="col-lg-12 p-0 d-flex justify-content-md-center" style={{ justifyContent: sectionproperties.text1centered == 'Centered' ? 'center' : 'start' }}>
|
|
231
|
-
<p
|
|
232
|
-
style={{
|
|
233
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
234
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
235
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
236
|
-
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
237
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
238
|
-
}}
|
|
239
|
-
>
|
|
240
|
-
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
241
|
-
</p>
|
|
242
|
-
</div>
|
|
243
|
-
<div class="col-lg-12 p-0 d-flex justify-content-md-center">
|
|
244
|
-
<p
|
|
245
|
-
class="p-0 text-md-center"
|
|
246
|
-
style={{
|
|
247
|
-
textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
|
|
248
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
249
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
250
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
251
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
|
|
252
|
-
paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
|
|
253
|
-
}}
|
|
254
|
-
dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.contenteditor : sectionproperties.contenteditor_ar }}
|
|
255
|
-
></p>
|
|
256
|
-
</div>
|
|
257
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
258
|
-
<div class="col-lg-12 p-0">
|
|
259
|
-
<button class={`${section_styles.btn}`}>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</button>
|
|
260
|
-
</div>
|
|
261
|
-
)}
|
|
262
|
-
</div>
|
|
263
|
-
</div>
|
|
264
|
-
<div class="col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center">
|
|
265
|
-
<IKImage
|
|
266
|
-
urlEndpoint={IKurlEndpoint}
|
|
267
|
-
publicKey={IKpublicKey}
|
|
268
|
-
path={imagesarray.length != 0 ? '/tr:w-500/' + imagesarray[0].bgsection_image : ''}
|
|
269
|
-
style={{
|
|
270
|
-
objectFit: 'contain',
|
|
271
|
-
margin: 0,
|
|
272
|
-
padding: 0,
|
|
273
|
-
height: '400px',
|
|
274
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
275
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
276
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
277
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
278
|
-
}}
|
|
279
|
-
/>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
);
|
|
283
|
-
};
|
|
284
|
-
export default Image_with_leftwords;
|
package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
3
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
4
|
-
import { css } from 'glamor';
|
|
5
|
-
import { IKImage } from 'imagekitio-react';
|
|
6
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
7
|
-
|
|
8
|
-
const Image_with_rightwords = (props) => {
|
|
9
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
10
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
11
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
12
|
-
const [imagesarray, setimagesarray] = useState([]);
|
|
13
|
-
|
|
14
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
15
|
-
const lang = props.actions.lang;
|
|
16
|
-
const langdetect = props.actions.langdetect;
|
|
17
|
-
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (props.srcfrom == 'addsectionform') {
|
|
20
|
-
var secpropobj = {};
|
|
21
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
22
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
23
|
-
});
|
|
24
|
-
setsectionproperties({ ...secpropobj });
|
|
25
|
-
} else {
|
|
26
|
-
var secpropobj = {};
|
|
27
|
-
|
|
28
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
29
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
30
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
31
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
setsectionproperties({ ...secpropobj });
|
|
36
|
-
}
|
|
37
|
-
}, [StatePagePropertiesContext]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (sectionproperties.length != 0) {
|
|
40
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
41
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
42
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
43
|
-
setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [sectionproperties]);
|
|
48
|
-
const section_styles = {
|
|
49
|
-
btn: css({
|
|
50
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
51
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
52
|
-
backgroundColor: sectionproperties.generalbtn_bgColor,
|
|
53
|
-
color: sectionproperties.generalbtn_textColor,
|
|
54
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
55
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
56
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
57
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
58
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
59
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
60
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
61
|
-
marginTop: sectionproperties.generalbtn_marginTop + 'px',
|
|
62
|
-
marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
|
|
63
|
-
transition: '.3s',
|
|
64
|
-
cursor: 'pointer',
|
|
65
|
-
':hover': {
|
|
66
|
-
backgroundColor: sectionproperties.generalbtn_bgColoronhover,
|
|
67
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
68
|
-
},
|
|
69
|
-
}),
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<div
|
|
74
|
-
class={' row ml-0 mr-0 d-flex justify-content-between w-100 align-items-center'}
|
|
75
|
-
style={{
|
|
76
|
-
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
77
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
78
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
79
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
80
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
81
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
82
|
-
background: sectionproperties.backgroundColor,
|
|
83
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
84
|
-
borderTopRightRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
85
|
-
borderBottomLeftRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
86
|
-
borderBottomRightRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
87
|
-
}}
|
|
88
|
-
>
|
|
89
|
-
<div class="col-lg-6 col-md-12 d-flex justify-content-end justify-content-md-center">
|
|
90
|
-
<IKImage
|
|
91
|
-
urlEndpoint={IKurlEndpoint}
|
|
92
|
-
publicKey={IKpublicKey}
|
|
93
|
-
path={imagesarray.length != 0 ? '/tr:w-500/' + imagesarray[0].bgsection_image : ''}
|
|
94
|
-
style={{
|
|
95
|
-
objectFit: 'contain',
|
|
96
|
-
margin: 0,
|
|
97
|
-
padding: 0,
|
|
98
|
-
height: '400px',
|
|
99
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
100
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
101
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
102
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
103
|
-
}}
|
|
104
|
-
/>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="col-lg-6 col-md-12 d-flex justify-content-start h-100 justify-content-md-center">
|
|
107
|
-
<div class="row m-0 w-100 mb-auto">
|
|
108
|
-
<div class="col-lg-12 p-0 d-flex justify-content-md-center" style={{ justifyContent: sectionproperties.text1centered == 'Centered' ? 'center' : 'start' }}>
|
|
109
|
-
<p
|
|
110
|
-
style={{
|
|
111
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
112
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
113
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
114
|
-
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
115
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
116
|
-
}}
|
|
117
|
-
>
|
|
118
|
-
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
119
|
-
</p>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="col-lg-12 p-0 d-flex justify-content-center justify-content-md-center">
|
|
122
|
-
<p
|
|
123
|
-
class="pl-md-3 pr-md-3 text-md-center"
|
|
124
|
-
style={{
|
|
125
|
-
textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
|
|
126
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
127
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
128
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
129
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
|
|
130
|
-
paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
|
|
131
|
-
}}
|
|
132
|
-
>
|
|
133
|
-
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
|
|
134
|
-
</p>
|
|
135
|
-
</div>
|
|
136
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
137
|
-
<div class="col-lg-12 p-0">
|
|
138
|
-
<button class={`${section_styles.btn}`}>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</button>
|
|
139
|
-
</div>
|
|
140
|
-
)}
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
);
|
|
145
|
-
};
|
|
146
|
-
export default Image_with_rightwords;
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
3
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
4
|
-
import { css } from 'glamor';
|
|
5
|
-
import { IKImage } from 'imagekitio-react';
|
|
6
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
7
|
-
|
|
8
|
-
// import generalstyles from '../../../Generalfiles/CSS_GENERAL/general.module.css';
|
|
9
|
-
import generalstyles from '../../../../styles/general//general.module.css';
|
|
10
|
-
|
|
11
|
-
const Servicesection = (props) => {
|
|
12
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
13
|
-
// const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
14
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
15
|
-
const [cardsarray, setcardsarray] = useState([]);
|
|
16
|
-
|
|
17
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
18
|
-
const lang = props.actions.lang;
|
|
19
|
-
const langdetect = props.actions.langdetect;
|
|
20
|
-
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
if (props.srcfrom == 'addsectionform') {
|
|
23
|
-
var secpropobj = {};
|
|
24
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
25
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
26
|
-
});
|
|
27
|
-
setsectionproperties({ ...secpropobj });
|
|
28
|
-
} else {
|
|
29
|
-
var secpropobj = {};
|
|
30
|
-
|
|
31
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
32
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
33
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
34
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
setsectionproperties({ ...secpropobj });
|
|
39
|
-
}
|
|
40
|
-
}, [StatePagePropertiesContext]);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
if (sectionproperties.length != 0) {
|
|
43
|
-
if (sectionproperties.card_arrayofobjects != null) {
|
|
44
|
-
var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.card_arrayofobjects);
|
|
45
|
-
if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
|
|
46
|
-
setcardsarray([...bgsection_imagearrayofobjsparsed]);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, [sectionproperties]);
|
|
51
|
-
const section_styles = {
|
|
52
|
-
sectiontitlespan: css({
|
|
53
|
-
':after': {
|
|
54
|
-
width: sectionproperties.sectitle_lineafterwidth + '%',
|
|
55
|
-
backgroundColor: sectionproperties.linebgcolor,
|
|
56
|
-
},
|
|
57
|
-
}),
|
|
58
|
-
sectiontitlespan2: css({
|
|
59
|
-
':after': {
|
|
60
|
-
width: sectionproperties.sectitle_lineafterwidth + 'px',
|
|
61
|
-
height: '100%',
|
|
62
|
-
backgroundColor: sectionproperties.linebgcolor,
|
|
63
|
-
},
|
|
64
|
-
}),
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<div
|
|
69
|
-
class={' row ml-0 mr-0 w-100 align-items-center '}
|
|
70
|
-
style={{
|
|
71
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
72
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
73
|
-
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
74
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
75
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
76
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
77
|
-
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
78
|
-
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
79
|
-
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
80
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
81
|
-
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
82
|
-
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
83
|
-
// border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
84
|
-
borderBottom: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
85
|
-
borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
86
|
-
}}
|
|
87
|
-
>
|
|
88
|
-
{sectionproperties.sectiontitleshow == 'Show' && sectionproperties.sectiontitlestyle == 'Line Under Text' && (
|
|
89
|
-
<div
|
|
90
|
-
class="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
|
|
91
|
-
style={{
|
|
92
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
93
|
-
}}
|
|
94
|
-
>
|
|
95
|
-
<div
|
|
96
|
-
class={`${generalstyles.sectiontitlecont}`}
|
|
97
|
-
style={{
|
|
98
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
99
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
100
|
-
}}
|
|
101
|
-
>
|
|
102
|
-
<span
|
|
103
|
-
class={`${section_styles.sectiontitlespan}`}
|
|
104
|
-
style={{
|
|
105
|
-
color: sectionproperties.sectionTitleColor,
|
|
106
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
107
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
108
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
109
|
-
}}
|
|
110
|
-
>
|
|
111
|
-
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
112
|
-
</span>
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
)}
|
|
116
|
-
{sectionproperties.sectiontitleshow == 'Show' && sectionproperties.sectiontitlestyle == 'Line Before Text' && (
|
|
117
|
-
<div
|
|
118
|
-
class="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
|
|
119
|
-
style={{
|
|
120
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
121
|
-
}}
|
|
122
|
-
>
|
|
123
|
-
<div
|
|
124
|
-
class={`${generalstyles.sectiontitlecont2}`}
|
|
125
|
-
style={{
|
|
126
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
127
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
128
|
-
}}
|
|
129
|
-
>
|
|
130
|
-
<span
|
|
131
|
-
class={`${section_styles.sectiontitlespan2}`}
|
|
132
|
-
style={{
|
|
133
|
-
color: sectionproperties.sectionTitleColor,
|
|
134
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
135
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
136
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
137
|
-
}}
|
|
138
|
-
>
|
|
139
|
-
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
140
|
-
</span>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
)}
|
|
144
|
-
<div class="row m-0 w-100 d-flex justify-content-center">
|
|
145
|
-
{cardsarray.map((cardinfoitem, cardinfoindex) => {
|
|
146
|
-
return (
|
|
147
|
-
<div
|
|
148
|
-
class="col-lg-3 col-md-6 col-sm-12 d-flex align-items-center justify-content-center justify-content-md-start"
|
|
149
|
-
style={{
|
|
150
|
-
padding: '10px',
|
|
151
|
-
}}
|
|
152
|
-
>
|
|
153
|
-
<div class="m-lg-auto d-flex justify-content-center">
|
|
154
|
-
<div
|
|
155
|
-
style={{
|
|
156
|
-
width: 50,
|
|
157
|
-
height: 50,
|
|
158
|
-
marginBottom: 'auto',
|
|
159
|
-
marginRight: '10px',
|
|
160
|
-
}}
|
|
161
|
-
>
|
|
162
|
-
<IKImage
|
|
163
|
-
urlEndpoint={IKurlEndpoint}
|
|
164
|
-
publicKey={IKpublicKey}
|
|
165
|
-
path={cardsarray.length != 0 ? cardsarray[cardinfoindex].cardobj_img : ''}
|
|
166
|
-
style={{
|
|
167
|
-
height: '100%',
|
|
168
|
-
width: '100%',
|
|
169
|
-
objectFit: 'cover',
|
|
170
|
-
}}
|
|
171
|
-
/>
|
|
172
|
-
</div>
|
|
173
|
-
<div class="d-flex flex-column" style={{ paddingLeft: langdetect == 'en' ? '10px' : 0, paddingRight: langdetect == 'en' ? 0 : '10px', flex: 1 }}>
|
|
174
|
-
<p
|
|
175
|
-
class="p-0 m-0 wordbreak wordbreak2"
|
|
176
|
-
style={{
|
|
177
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
178
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
179
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
180
|
-
textTransform: sectionproperties.slideshowText1ContentTextTransform,
|
|
181
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
182
|
-
}}
|
|
183
|
-
>
|
|
184
|
-
{langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_titleen : cardsarray[cardinfoindex].cardobj_titlear}
|
|
185
|
-
</p>
|
|
186
|
-
{sectionproperties.slideshowtext2_show && (
|
|
187
|
-
<p
|
|
188
|
-
class="m-0 wordbreak "
|
|
189
|
-
style={{
|
|
190
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
191
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
192
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
193
|
-
textTransform: sectionproperties.slideshowText2ContentTextTransform,
|
|
194
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
195
|
-
}}
|
|
196
|
-
>
|
|
197
|
-
{langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_descripen : cardsarray[cardinfoindex].cardobj_descripar}
|
|
198
|
-
</p>
|
|
199
|
-
)}
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
);
|
|
204
|
-
})}
|
|
205
|
-
</div>
|
|
206
|
-
</div>
|
|
207
|
-
);
|
|
208
|
-
};
|
|
209
|
-
export default Servicesection;
|