tabexseriescomponents 0.0.65 → 0.0.67
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 +22892 -14865
- package/dist/index.esm.js +22897 -14871
- package/dist/index.umd.js +21722 -13696
- package/package.json +1 -1
- package/{srcOLD → src1-10}/Contexts/LanguageContext.jsx +0 -0
- package/{srcOLD → src1-10}/Contexts/ProductsCardsSectionContext.jsx +0 -0
- package/{srcOLD → src1-10}/StylesJS/Customstyles.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -19
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -8
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +45 -72
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -17
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +1 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -11
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +3 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +1 -11
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer1/Footer1.jsx +26 -26
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer2/Footer2.jsx +24 -25
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer3/Footer3.jsx +14 -6
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer4/Footer4.jsx +11 -12
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer5/Footer5.jsx +81 -88
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer6/Footer6.jsx +39 -48
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer7/Footer7.jsx +58 -61
- package/{srcOLD → src1-10}/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +27 -34
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +97 -99
- package/{srcOLD → src1-10}/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +74 -80
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header4/Header4.jsx +77 -95
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header6/Header6.jsx +73 -76
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +93 -137
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +85 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +3 -23
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +116 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Modernheader/Modernheader.jsx +100 -92
- package/{srcOLD → src1-10}/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +110 -98
- package/{srcOLD → src1-10}/TabexComponents/Headers/Subheader/Subheader.jsx +10 -22
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +7 -75
- package/{srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js → src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx} +82 -92
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -0
- package/{srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js → src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx} +34 -74
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -8
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +92 -53
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -0
- package/{srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js → src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx} +110 -40
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Filter/Filter.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/Login.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Policies/Policies.jsx +0 -5
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -50
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -16
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/Signup.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -23
- package/{srcOLD → src1-10}/assets/images/cod.png +0 -0
- package/{srcOLD → src1-10}/assets/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/fawry.png +0 -0
- package/{srcOLD → src1-10}/assets/images/payment.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paymob.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paypal.png +0 -0
- package/{srcOLD → src1-10}/assets/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/assets/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/visa.png +0 -0
- package/{srcOLD → src1-10}/assets/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/button.jsx +0 -0
- package/{srcOLD → src1-10}/index.jsx +6 -2
- package/{srcOLD → src1-10}/styles/Home.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorcycard_fullimage.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_slidebgscaled.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_withshapes.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard_with_circularbg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productccard_with_zoominonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Prouductcard_with_zoomhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard3.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycardwithtext.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_animatedbuttons.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_with_textonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productccard_with_imageontopleft.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/bootstrap.css +68 -73
- package/{srcOLD → src1-10}/styles/general/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/general/editorbardropdown.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/form.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/general.module.css +152 -0
- package/{srcOLD → src1-10}/styles/general/image-gallery.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-accessible-accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-phone-input-2.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/scrollbtn.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/slick.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/tabs.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/workplaceeditor.module.css +0 -0
- package/{srcOLD → src1-10}/styles/globals.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Allinoneheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header7.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header_threesectionslogocentered.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Sideheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/classicheaderstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header4.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header5.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header_contactinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerresturant.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/modernheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/subheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage1.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage_with_topcircle.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Section_with_rightbgcont.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_squarebg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/cart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/login.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/productinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/shop.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/signup.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/staticroutersidenav.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/viewcart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/wishlist.module.css +0 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
|
@@ -1,784 +0,0 @@
|
|
|
1
|
-
// import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
3
|
-
// import { css } from 'glamor';
|
|
4
|
-
// import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
|
|
5
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
6
|
-
// import { serverbaselink } from '../../../../Env_Variables';
|
|
7
|
-
// import { IKImage } from 'imagekitio-react';
|
|
8
|
-
// import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
|
|
9
|
-
// import Categoriesdropdown from '../../../StaticPages/Categoriesdropdown/Categoriesdropdown';
|
|
10
|
-
// const Twobgimages = (props) => {
|
|
11
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
12
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
13
|
-
// const [sectionproperties, setsectionproperties] = useState('');
|
|
14
|
-
// const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
15
|
-
// const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
|
|
16
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
17
|
-
// useEffect(() => {
|
|
18
|
-
// if (props.srcfrom == 'addsectionform') {
|
|
19
|
-
// var secpropobj = {};
|
|
20
|
-
// props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
21
|
-
// secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
22
|
-
// });
|
|
23
|
-
// setsectionproperties({ ...secpropobj });
|
|
24
|
-
// } else {
|
|
25
|
-
// var secpropobj = {};
|
|
26
|
-
|
|
27
|
-
// StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
28
|
-
// if (sectionitem.sectionid == props.sectionidprops) {
|
|
29
|
-
// sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
30
|
-
// secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
31
|
-
// });
|
|
32
|
-
// }
|
|
33
|
-
// });
|
|
34
|
-
// setsectionproperties({ ...secpropobj });
|
|
35
|
-
// }
|
|
36
|
-
// }, [StatePagePropertiesContext]);
|
|
37
|
-
// useEffect(() => {
|
|
38
|
-
// if (sectionproperties.length != 0 && sectionproperties.bg1_arrayofobjs != undefined) {
|
|
39
|
-
// var bg1_arrayofobjsparsed = JSON.parse(sectionproperties.bg1_arrayofobjs);
|
|
40
|
-
// if (Array.isArray(bg1_arrayofobjsparsed)) {
|
|
41
|
-
// setbgimagearrayofobjs([...bg1_arrayofobjsparsed]);
|
|
42
|
-
// }
|
|
43
|
-
// var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
44
|
-
// if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
45
|
-
// setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
|
|
46
|
-
// }
|
|
47
|
-
// }
|
|
48
|
-
// }, [sectionproperties]);
|
|
49
|
-
// const bgcssstyles = {
|
|
50
|
-
// bgImageContainer: css({
|
|
51
|
-
// height: sectionproperties.height + 'vh',
|
|
52
|
-
// backgroundPosition: 'center',
|
|
53
|
-
// backgroundRepeat: 'no-repeat',
|
|
54
|
-
// backgroundSize: 'cover',
|
|
55
|
-
// margin: 0,
|
|
56
|
-
// padding: 0,
|
|
57
|
-
// position: 'relative',
|
|
58
|
-
// borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
59
|
-
// borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
60
|
-
// borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
61
|
-
// borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
62
|
-
// alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
|
|
63
|
-
// justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
|
|
64
|
-
// }),
|
|
65
|
-
// centered_container: css({
|
|
66
|
-
// position: 'absolute',
|
|
67
|
-
// display: 'flex',
|
|
68
|
-
// width: '100%',
|
|
69
|
-
// height: '100%',
|
|
70
|
-
// }),
|
|
71
|
-
// btnone: css({
|
|
72
|
-
// position: 'absolute',
|
|
73
|
-
// width: sectionproperties.generalbtn_width + 'px',
|
|
74
|
-
// height: sectionproperties.generalbtn_height + 'px',
|
|
75
|
-
// background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
76
|
-
// fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
77
|
-
// color: sectionproperties.generalbtn_textColor,
|
|
78
|
-
// textTransform: sectionproperties.generalbtn_texttransform,
|
|
79
|
-
// borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
80
|
-
// borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
81
|
-
// borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
82
|
-
// borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
83
|
-
// fontWeight: sectionproperties.generalbtn_fontweight,
|
|
84
|
-
// border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
85
|
-
// transition: '.3s',
|
|
86
|
-
// ':hover': {
|
|
87
|
-
// background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
88
|
-
// color: sectionproperties.generalbtn_textColoronhover,
|
|
89
|
-
// },
|
|
90
|
-
// }),
|
|
91
|
-
// btnresp: css({
|
|
92
|
-
// // position: 'absolute',
|
|
93
|
-
// // bottom: 10,
|
|
94
|
-
// width: sectionproperties.generalbtn_width + 'px',
|
|
95
|
-
// height: sectionproperties.generalbtn_height + 'px',
|
|
96
|
-
// background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
97
|
-
// fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
98
|
-
// color: sectionproperties.generalbtn_textColor,
|
|
99
|
-
// textTransform: sectionproperties.generalbtn_texttransform,
|
|
100
|
-
// borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
101
|
-
// borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
102
|
-
// borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
103
|
-
// borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
104
|
-
// fontWeight: sectionproperties.generalbtn_fontweight,
|
|
105
|
-
// border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
106
|
-
// transition: '.3s',
|
|
107
|
-
// ':hover': {
|
|
108
|
-
// background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
109
|
-
// color: sectionproperties.generalbtn_textColoronhover,
|
|
110
|
-
// },
|
|
111
|
-
// }),
|
|
112
|
-
// bgimage: css({
|
|
113
|
-
// ':before': {
|
|
114
|
-
// content: 'h',
|
|
115
|
-
// position: 'absolute',
|
|
116
|
-
// width: '100%',
|
|
117
|
-
// height: '100%',
|
|
118
|
-
// backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
|
|
119
|
-
// top: 0,
|
|
120
|
-
// borrom: 0,
|
|
121
|
-
// right: 0,
|
|
122
|
-
// left: 0,
|
|
123
|
-
// zIndex: 1,
|
|
124
|
-
// fontSize: 0,
|
|
125
|
-
// borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
126
|
-
// borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
127
|
-
// borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
128
|
-
// borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
129
|
-
// },
|
|
130
|
-
// }),
|
|
131
|
-
// };
|
|
132
|
-
// return (
|
|
133
|
-
// <div class="row m-0 w-100">
|
|
134
|
-
// <div class="col-lg-12 p-0">
|
|
135
|
-
// <div
|
|
136
|
-
// class={bgimagearrayofobjs[0]?.bg1_numberofcols == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat'}
|
|
137
|
-
// style={{
|
|
138
|
-
// paddingTop: sectionproperties.paddingTop + 'px',
|
|
139
|
-
// paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
140
|
-
// paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
141
|
-
// paddingRight: sectionproperties.paddingRight + 'px',
|
|
142
|
-
// backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
143
|
-
// backgroundSize: 'cover',
|
|
144
|
-
// background: sectionproperties.backgroundColor,
|
|
145
|
-
// }}
|
|
146
|
-
// >
|
|
147
|
-
// {sectionproperties.collectionssectionshow == 'Show' && (
|
|
148
|
-
// <div class="col-lg-2 col-md-12 pl-2 pr-2 mb-md-3">
|
|
149
|
-
// <Categoriesdropdown sectionpropertiesprops={sectionproperties} />
|
|
150
|
-
// </div>
|
|
151
|
-
// )}
|
|
152
|
-
// <div class={sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'}>
|
|
153
|
-
// <div class="row m-0 w-100">
|
|
154
|
-
// {Object.keys(bgimagearrayofobjs).length != 0 &&
|
|
155
|
-
// bgimagearrayofobjs.map((item, index) => {
|
|
156
|
-
// // bgimagearrayofobjs.IsClickable
|
|
157
|
-
// // bgimagearrayofobjs.clickable_page_route
|
|
158
|
-
// // bgimagearrayofobjs.Clickable_Reference_Collection_ID
|
|
159
|
-
// return (
|
|
160
|
-
// <div
|
|
161
|
-
// class={
|
|
162
|
-
// bgimagearrayofobjs[index].bg1_numberofcols != 12
|
|
163
|
-
// ? ' d-flex align-items-stretch col-md-' +
|
|
164
|
-
// bgimagearrayofobjs[index].bg1_numberofcols +
|
|
165
|
-
// ' col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' +
|
|
166
|
-
// bgimagearrayofobjs[index].bg1_numberofcols
|
|
167
|
-
// : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols
|
|
168
|
-
// }
|
|
169
|
-
// style={{
|
|
170
|
-
// paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
|
|
171
|
-
// paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
|
|
172
|
-
// cursor: item.place_clickable == 'General' ? 'pointer' : 'default',
|
|
173
|
-
// }}
|
|
174
|
-
// onClick={() => {
|
|
175
|
-
// if (item.IsClickable == 'Yes') {
|
|
176
|
-
// if (item.place_clickable == 'General') {
|
|
177
|
-
// if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
178
|
-
// routingcountext(item.clickable_page_route, false, '');
|
|
179
|
-
// } else {
|
|
180
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
181
|
-
// }
|
|
182
|
-
// }
|
|
183
|
-
// }
|
|
184
|
-
// }}
|
|
185
|
-
// >
|
|
186
|
-
// <div class="row ml-0 mr-0 d-flex justify-content-center w-100">
|
|
187
|
-
// <div
|
|
188
|
-
// class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0'}
|
|
189
|
-
// style={{
|
|
190
|
-
// height: sectionproperties.image_height + 'vh',
|
|
191
|
-
// }}
|
|
192
|
-
// >
|
|
193
|
-
// <div
|
|
194
|
-
// class={`${bgcssstyles.bgimage}`}
|
|
195
|
-
// style={{
|
|
196
|
-
// height: '100%',
|
|
197
|
-
// width: '100%',
|
|
198
|
-
// }}
|
|
199
|
-
// >
|
|
200
|
-
// <IKImage
|
|
201
|
-
// path={bgimagearrayofobjs.length != 0 ? bgimagearrayofobjs[index].bg1_image : ''}
|
|
202
|
-
// class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
|
|
203
|
-
// style={{
|
|
204
|
-
// height: '100%',
|
|
205
|
-
// width: '100%',
|
|
206
|
-
// objectFit: sectionproperties.bgcovercontain,
|
|
207
|
-
// borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
208
|
-
// borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
209
|
-
// borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
210
|
-
// borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
211
|
-
// }}
|
|
212
|
-
// />
|
|
213
|
-
// </div>
|
|
214
|
-
// <div
|
|
215
|
-
// class={`${bgcssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
|
|
216
|
-
// style={{
|
|
217
|
-
// position: 'absolute',
|
|
218
|
-
// top: 0,
|
|
219
|
-
// right: 0,
|
|
220
|
-
// bottom: 0,
|
|
221
|
-
// left: 0,
|
|
222
|
-
// zIndex: 100,
|
|
223
|
-
// }}
|
|
224
|
-
// >
|
|
225
|
-
// <div class={`${bgcssstyles.centered_container}` + ' row m-0 d-flex pt-0 '}>
|
|
226
|
-
// <div
|
|
227
|
-
// class={
|
|
228
|
-
// bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
229
|
-
// ? ' p-0 d-flex flex-column d-md-none col-lg-12 '
|
|
230
|
-
// : ' p-0 d-flex flex-column d-md-none col-lg-6 '
|
|
231
|
-
// }
|
|
232
|
-
// style={{ position: 'relative', overflow: 'hidden' }}
|
|
233
|
-
// >
|
|
234
|
-
// <p
|
|
235
|
-
// class={'d-flex justify-content-md-center wordbreak'}
|
|
236
|
-
// style={{
|
|
237
|
-
// maxWidth: '100%',
|
|
238
|
-
// position: 'relative',
|
|
239
|
-
// fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
|
|
240
|
-
// color: bgimagearrayofobjs[index].bg1_txtcolor,
|
|
241
|
-
// textTransform: bgimagearrayofobjs[index].bg1_txttransform,
|
|
242
|
-
// fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
|
|
243
|
-
// top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
|
|
244
|
-
// left:
|
|
245
|
-
// bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
246
|
-
// ? 0
|
|
247
|
-
// : langdetect == 'en'
|
|
248
|
-
// ? bgimagearrayofobjs[index].bg1_textleft + 'px'
|
|
249
|
-
// : '',
|
|
250
|
-
// right:
|
|
251
|
-
// bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
252
|
-
// ? 0
|
|
253
|
-
// : langdetect == 'en'
|
|
254
|
-
// ? ''
|
|
255
|
-
// : bgimagearrayofobjs[index].bg1_textleft + 'px',
|
|
256
|
-
// bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
|
|
257
|
-
// margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
|
|
258
|
-
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
259
|
-
// }}
|
|
260
|
-
// >
|
|
261
|
-
// {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
|
|
262
|
-
// </p>
|
|
263
|
-
// {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
|
|
264
|
-
// <p
|
|
265
|
-
// class={'d-flex justify-content-md-center wordbreak'}
|
|
266
|
-
// style={{
|
|
267
|
-
// // maxWidth: '97%',
|
|
268
|
-
// position: 'relative',
|
|
269
|
-
// fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
|
|
270
|
-
// color: bgimagearrayofobjs[index].bg1_descolor,
|
|
271
|
-
// textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
|
|
272
|
-
// fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
|
|
273
|
-
// top: bgimagearrayofobjs[index].desc1top + 'px',
|
|
274
|
-
// left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
|
|
275
|
-
// right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
|
|
276
|
-
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
277
|
-
// }}
|
|
278
|
-
// >
|
|
279
|
-
// {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
|
|
280
|
-
// </p>
|
|
281
|
-
// )}
|
|
282
|
-
// {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
|
|
283
|
-
// <button
|
|
284
|
-
// class={`${bgcssstyles.btnone}` + ' allcentered '}
|
|
285
|
-
// style={{
|
|
286
|
-
// top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
|
|
287
|
-
// left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
|
|
288
|
-
// right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
|
|
289
|
-
// letterSpacing: langdetect == 'en' ? '1px' : 0,
|
|
290
|
-
// }}
|
|
291
|
-
// onClick={() => {
|
|
292
|
-
// if (item.IsClickable == 'Yes') {
|
|
293
|
-
// if (item.place_clickable == 'Button') {
|
|
294
|
-
// if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
295
|
-
// routingcountext(item.clickable_page_route, false, '');
|
|
296
|
-
// } else {
|
|
297
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
298
|
-
// }
|
|
299
|
-
// }
|
|
300
|
-
// }
|
|
301
|
-
// }}
|
|
302
|
-
// >
|
|
303
|
-
// {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}{' '}
|
|
304
|
-
// {langdetect == 'en' ? <IoIosArrowRoundForward size={20} /> : <IoIosArrowRoundBack size={20} />}
|
|
305
|
-
// </button>
|
|
306
|
-
// )}
|
|
307
|
-
// </div>
|
|
308
|
-
// <div class="col-md-12 d-none d-md-flex flex-column mt-auto mb-auto ">
|
|
309
|
-
// <p
|
|
310
|
-
// class="wordbreak m-0"
|
|
311
|
-
// style={{
|
|
312
|
-
// position: 'relative',
|
|
313
|
-
// fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
|
|
314
|
-
// color: bgimagearrayofobjs[index].bg1_txtcolor,
|
|
315
|
-
// textTransform: bgimagearrayofobjs[index].bg1_txttransform,
|
|
316
|
-
// fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
|
|
317
|
-
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
318
|
-
// }}
|
|
319
|
-
// >
|
|
320
|
-
// {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
|
|
321
|
-
// </p>
|
|
322
|
-
// {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
|
|
323
|
-
// <p
|
|
324
|
-
// class={'d-flex justify-content-md-center wordbreak m-0'}
|
|
325
|
-
// style={{
|
|
326
|
-
// position: 'relative',
|
|
327
|
-
// fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
|
|
328
|
-
// color: bgimagearrayofobjs[index].bg1_descolor,
|
|
329
|
-
// textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
|
|
330
|
-
// fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
|
|
331
|
-
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
332
|
-
// }}
|
|
333
|
-
// >
|
|
334
|
-
// {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
|
|
335
|
-
// </p>
|
|
336
|
-
// )}
|
|
337
|
-
// {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
|
|
338
|
-
// <button
|
|
339
|
-
// class={`${bgcssstyles.btnresp}` + ' mt-md-5 mt-sm-3 '}
|
|
340
|
-
// onClick={() => {
|
|
341
|
-
// if (item.IsClickable == 'Yes') {
|
|
342
|
-
// if (item.place_clickable == 'Button') {
|
|
343
|
-
// if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
344
|
-
// routingcountext(item.clickable_page_route, false, '');
|
|
345
|
-
// } else {
|
|
346
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
347
|
-
// }
|
|
348
|
-
// }
|
|
349
|
-
// }
|
|
350
|
-
// }}
|
|
351
|
-
// >
|
|
352
|
-
// {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
353
|
-
// </button>
|
|
354
|
-
// )}
|
|
355
|
-
// </div>
|
|
356
|
-
// </div>
|
|
357
|
-
// </div>
|
|
358
|
-
// </div>
|
|
359
|
-
// </div>
|
|
360
|
-
// </div>
|
|
361
|
-
// );
|
|
362
|
-
// })}
|
|
363
|
-
// </div>
|
|
364
|
-
// </div>
|
|
365
|
-
// </div>
|
|
366
|
-
// </div>
|
|
367
|
-
// </div>
|
|
368
|
-
// );
|
|
369
|
-
// };
|
|
370
|
-
// export default Twobgimages;
|
|
371
|
-
|
|
372
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
373
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
374
|
-
import { css } from 'glamor';
|
|
375
|
-
// import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
|
|
376
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
377
|
-
import { serverbaselink } from '../../../../../Env';
|
|
378
|
-
import { IKImage } from 'imagekitio-react';
|
|
379
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
380
|
-
|
|
381
|
-
import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
|
|
382
|
-
// import Categoriesdropdown from '../../../StaticPages/Categoriesdropdown/Categoriesdropdown';
|
|
383
|
-
const Twobgimages = (props) => {
|
|
384
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
385
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
386
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
387
|
-
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
388
|
-
const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
|
|
389
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
390
|
-
|
|
391
|
-
const lang = props.actions.lang;
|
|
392
|
-
const langdetect = props.actions.langdetect;
|
|
393
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
394
|
-
const routingcountext = props.actions.routingcountext;
|
|
395
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
396
|
-
useEffect(() => {
|
|
397
|
-
if (props.srcfrom == 'addsectionform') {
|
|
398
|
-
var secpropobj = {};
|
|
399
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
400
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
401
|
-
});
|
|
402
|
-
setsectionproperties({ ...secpropobj });
|
|
403
|
-
} else {
|
|
404
|
-
var secpropobj = {};
|
|
405
|
-
|
|
406
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
407
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
408
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
409
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
setsectionproperties({ ...secpropobj });
|
|
414
|
-
}
|
|
415
|
-
}, [StatePagePropertiesContext]);
|
|
416
|
-
useEffect(() => {
|
|
417
|
-
if (sectionproperties.length != 0 && sectionproperties.bg1_arrayofobjs != undefined) {
|
|
418
|
-
var bg1_arrayofobjsparsed = JSON.parse(sectionproperties.bg1_arrayofobjs);
|
|
419
|
-
if (Array.isArray(bg1_arrayofobjsparsed)) {
|
|
420
|
-
setbgimagearrayofobjs([...bg1_arrayofobjsparsed]);
|
|
421
|
-
}
|
|
422
|
-
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
423
|
-
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
424
|
-
setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}, [sectionproperties]);
|
|
428
|
-
const bgcssstyles = {
|
|
429
|
-
bgImageContainer: css({
|
|
430
|
-
height: sectionproperties.height + 'vh',
|
|
431
|
-
backgroundPosition: 'center',
|
|
432
|
-
backgroundRepeat: 'no-repeat',
|
|
433
|
-
backgroundSize: 'cover',
|
|
434
|
-
margin: 0,
|
|
435
|
-
padding: 0,
|
|
436
|
-
position: 'relative',
|
|
437
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
438
|
-
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
439
|
-
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
440
|
-
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
441
|
-
alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
|
|
442
|
-
justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
|
|
443
|
-
}),
|
|
444
|
-
centered_container: css({
|
|
445
|
-
position: 'absolute',
|
|
446
|
-
display: 'flex',
|
|
447
|
-
width: '100%',
|
|
448
|
-
height: '100%',
|
|
449
|
-
}),
|
|
450
|
-
btnone: css({
|
|
451
|
-
position: 'absolute',
|
|
452
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
453
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
454
|
-
background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
455
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
456
|
-
color: sectionproperties.generalbtn_textColor,
|
|
457
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
458
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
459
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
460
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
461
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
462
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
463
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
464
|
-
transition: '.3s',
|
|
465
|
-
':hover': {
|
|
466
|
-
background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
467
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
468
|
-
},
|
|
469
|
-
}),
|
|
470
|
-
btnresp: css({
|
|
471
|
-
// position: 'absolute',
|
|
472
|
-
// bottom: 10,
|
|
473
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
474
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
475
|
-
background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
476
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
477
|
-
color: sectionproperties.generalbtn_textColor,
|
|
478
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
479
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
480
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
481
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
482
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
483
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
484
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
485
|
-
transition: '.3s',
|
|
486
|
-
':hover': {
|
|
487
|
-
background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
488
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
489
|
-
},
|
|
490
|
-
}),
|
|
491
|
-
bgimage: css({
|
|
492
|
-
':before': {
|
|
493
|
-
content: 'h',
|
|
494
|
-
position: 'absolute',
|
|
495
|
-
width: '100%',
|
|
496
|
-
height: '100%',
|
|
497
|
-
backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
|
|
498
|
-
top: 0,
|
|
499
|
-
borrom: 0,
|
|
500
|
-
right: 0,
|
|
501
|
-
left: 0,
|
|
502
|
-
zIndex: 1,
|
|
503
|
-
fontSize: 0,
|
|
504
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
505
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
506
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
507
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
508
|
-
},
|
|
509
|
-
}),
|
|
510
|
-
};
|
|
511
|
-
return (
|
|
512
|
-
<div class="row m-0 w-100">
|
|
513
|
-
<div class="col-lg-12 p-0">
|
|
514
|
-
<div
|
|
515
|
-
class={bgimagearrayofobjs[0]?.bg1_numberofcols == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat'}
|
|
516
|
-
style={{
|
|
517
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
518
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
519
|
-
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
520
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
521
|
-
backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
522
|
-
backgroundSize: 'cover',
|
|
523
|
-
background: sectionproperties.backgroundColor,
|
|
524
|
-
}}
|
|
525
|
-
>
|
|
526
|
-
{sectionproperties.collectionssectionshow == 'Show' && (
|
|
527
|
-
<div class="col-lg-2 col-md-12 pl-2 pr-2 mb-md-3">{/* <Categoriesdropdown sectionpropertiesprops={sectionproperties} /> */}</div>
|
|
528
|
-
)}
|
|
529
|
-
<div class={sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'}>
|
|
530
|
-
<div class="row m-0 w-100">
|
|
531
|
-
{Object.keys(bgimagearrayofobjs).length != 0 &&
|
|
532
|
-
bgimagearrayofobjs.map((item, index) => {
|
|
533
|
-
// bgimagearrayofobjs.IsClickable
|
|
534
|
-
// bgimagearrayofobjs.clickable_page_route
|
|
535
|
-
// bgimagearrayofobjs.Clickable_Reference_Collection_ID
|
|
536
|
-
return (
|
|
537
|
-
<div
|
|
538
|
-
class={
|
|
539
|
-
bgimagearrayofobjs[index].bg1_numberofcols != 12
|
|
540
|
-
? ' d-flex align-items-stretch col-md-' +
|
|
541
|
-
bgimagearrayofobjs[index].bg1_numberofcols +
|
|
542
|
-
' col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' +
|
|
543
|
-
bgimagearrayofobjs[index].bg1_numberofcols
|
|
544
|
-
: ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols
|
|
545
|
-
}
|
|
546
|
-
style={{
|
|
547
|
-
paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
|
|
548
|
-
paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
|
|
549
|
-
cursor: item.place_clickable == 'General' ? 'pointer' : 'default',
|
|
550
|
-
}}
|
|
551
|
-
onClick={() => {
|
|
552
|
-
if (item.IsClickable == 'Yes') {
|
|
553
|
-
if (item.place_clickable == 'General') {
|
|
554
|
-
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
555
|
-
routingcountext(item.clickable_page_route, false, '');
|
|
556
|
-
} else {
|
|
557
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}}
|
|
562
|
-
>
|
|
563
|
-
<div class="row ml-0 mr-0 d-flex justify-content-center w-100">
|
|
564
|
-
<div
|
|
565
|
-
class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0'}
|
|
566
|
-
style={{
|
|
567
|
-
height: sectionproperties.image_height + 'vh',
|
|
568
|
-
}}
|
|
569
|
-
>
|
|
570
|
-
<div
|
|
571
|
-
class={`${bgcssstyles.bgimage}` + ' d-md-flex d-sm-none '}
|
|
572
|
-
style={{
|
|
573
|
-
height: '100%',
|
|
574
|
-
width: '100%',
|
|
575
|
-
}}
|
|
576
|
-
>
|
|
577
|
-
<IKImage
|
|
578
|
-
urlEndpoint={IKurlEndpoint}
|
|
579
|
-
publicKey={IKpublicKey}
|
|
580
|
-
path={
|
|
581
|
-
bgimagearrayofobjs.length != 0
|
|
582
|
-
? langdetect == 'en'
|
|
583
|
-
? bgimagearrayofobjs[index].bg1_image
|
|
584
|
-
: bgimagearrayofobjs[index].bg1_image_ar
|
|
585
|
-
: ''
|
|
586
|
-
}
|
|
587
|
-
class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
|
|
588
|
-
style={{
|
|
589
|
-
height: '100%',
|
|
590
|
-
width: '100%',
|
|
591
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
592
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
593
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
594
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
595
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
596
|
-
}}
|
|
597
|
-
/>
|
|
598
|
-
</div>
|
|
599
|
-
<div
|
|
600
|
-
class={`${bgcssstyles.bgimage}` + ' d-none d-md-none d-sm-flex'}
|
|
601
|
-
style={{
|
|
602
|
-
height: '100%',
|
|
603
|
-
width: '100%',
|
|
604
|
-
}}
|
|
605
|
-
>
|
|
606
|
-
<IKImage
|
|
607
|
-
urlEndpoint={IKurlEndpoint}
|
|
608
|
-
publicKey={IKpublicKey}
|
|
609
|
-
path={
|
|
610
|
-
bgimagearrayofobjs.length != 0
|
|
611
|
-
? langdetect == 'en'
|
|
612
|
-
? bgimagearrayofobjs[index].bg1_imageresponsive
|
|
613
|
-
: bgimagearrayofobjs[index].bg1_imageresponsive_ar
|
|
614
|
-
: ''
|
|
615
|
-
}
|
|
616
|
-
class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
|
|
617
|
-
style={{
|
|
618
|
-
height: '100%',
|
|
619
|
-
width: '100%',
|
|
620
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
621
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
622
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
623
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
624
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
625
|
-
}}
|
|
626
|
-
/>
|
|
627
|
-
</div>
|
|
628
|
-
<div
|
|
629
|
-
class={`${bgcssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
|
|
630
|
-
style={{
|
|
631
|
-
position: 'absolute',
|
|
632
|
-
top: 0,
|
|
633
|
-
right: 0,
|
|
634
|
-
bottom: 0,
|
|
635
|
-
left: 0,
|
|
636
|
-
zIndex: 100,
|
|
637
|
-
}}
|
|
638
|
-
>
|
|
639
|
-
<div class={`${bgcssstyles.centered_container}` + ' row m-0 d-flex pt-0 '}>
|
|
640
|
-
<div
|
|
641
|
-
class={
|
|
642
|
-
bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
643
|
-
? ' p-0 d-flex flex-column d-md-none col-lg-12 '
|
|
644
|
-
: ' p-0 d-flex flex-column d-md-none col-lg-6 '
|
|
645
|
-
}
|
|
646
|
-
style={{ position: 'relative', overflow: 'hidden' }}
|
|
647
|
-
>
|
|
648
|
-
<p
|
|
649
|
-
class={'d-flex justify-content-md-center wordbreak'}
|
|
650
|
-
style={{
|
|
651
|
-
maxWidth: '100%',
|
|
652
|
-
position: 'relative',
|
|
653
|
-
fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
|
|
654
|
-
color: bgimagearrayofobjs[index].bg1_txtcolor,
|
|
655
|
-
textTransform: bgimagearrayofobjs[index].bg1_txttransform,
|
|
656
|
-
fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
|
|
657
|
-
top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
|
|
658
|
-
left:
|
|
659
|
-
bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
660
|
-
? 0
|
|
661
|
-
: langdetect == 'en'
|
|
662
|
-
? bgimagearrayofobjs[index].bg1_textleft + 'px'
|
|
663
|
-
: '',
|
|
664
|
-
right:
|
|
665
|
-
bgimagearrayofobjs[index].bg1_numberofcols == '12'
|
|
666
|
-
? 0
|
|
667
|
-
: langdetect == 'en'
|
|
668
|
-
? ''
|
|
669
|
-
: bgimagearrayofobjs[index].bg1_textleft + 'px',
|
|
670
|
-
bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
|
|
671
|
-
margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
|
|
672
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
673
|
-
}}
|
|
674
|
-
>
|
|
675
|
-
{langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
|
|
676
|
-
</p>
|
|
677
|
-
{bgimagearrayofobjs[index].showdescription1 == 'Show' && (
|
|
678
|
-
<p
|
|
679
|
-
class={'d-flex justify-content-md-center wordbreak'}
|
|
680
|
-
style={{
|
|
681
|
-
// maxWidth: '97%',
|
|
682
|
-
position: 'relative',
|
|
683
|
-
fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
|
|
684
|
-
color: bgimagearrayofobjs[index].bg1_descolor,
|
|
685
|
-
textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
|
|
686
|
-
fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
|
|
687
|
-
top: bgimagearrayofobjs[index].desc1top + 'px',
|
|
688
|
-
left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
|
|
689
|
-
right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
|
|
690
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
691
|
-
}}
|
|
692
|
-
>
|
|
693
|
-
{langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
|
|
694
|
-
</p>
|
|
695
|
-
)}
|
|
696
|
-
{bgimagearrayofobjs[index].showbutton1 == 'Show' && (
|
|
697
|
-
<button
|
|
698
|
-
class={`${bgcssstyles.btnone}` + ' allcentered '}
|
|
699
|
-
style={{
|
|
700
|
-
top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
|
|
701
|
-
left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
|
|
702
|
-
right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
|
|
703
|
-
letterSpacing: langdetect == 'en' ? '1px' : 0,
|
|
704
|
-
}}
|
|
705
|
-
onClick={() => {
|
|
706
|
-
if (item.IsClickable == 'Yes') {
|
|
707
|
-
if (item.place_clickable == 'Button') {
|
|
708
|
-
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
709
|
-
routingcountext(item.clickable_page_route, false, '');
|
|
710
|
-
} else {
|
|
711
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}}
|
|
716
|
-
>
|
|
717
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}{' '}
|
|
718
|
-
{langdetect == 'en' ? <IoIosArrowRoundForward size={20} /> : <IoIosArrowRoundBack size={20} />}
|
|
719
|
-
</button>
|
|
720
|
-
)}
|
|
721
|
-
</div>
|
|
722
|
-
<div class="col-md-12 d-none d-md-flex flex-column mt-auto mb-auto ">
|
|
723
|
-
<p
|
|
724
|
-
class="wordbreak m-0"
|
|
725
|
-
style={{
|
|
726
|
-
position: 'relative',
|
|
727
|
-
fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
|
|
728
|
-
color: bgimagearrayofobjs[index].bg1_txtcolor,
|
|
729
|
-
textTransform: bgimagearrayofobjs[index].bg1_txttransform,
|
|
730
|
-
fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
|
|
731
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
732
|
-
}}
|
|
733
|
-
>
|
|
734
|
-
{langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
|
|
735
|
-
</p>
|
|
736
|
-
{bgimagearrayofobjs[index].showdescription1 == 'Show' && (
|
|
737
|
-
<p
|
|
738
|
-
class={'d-flex justify-content-md-center wordbreak m-0'}
|
|
739
|
-
style={{
|
|
740
|
-
position: 'relative',
|
|
741
|
-
fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
|
|
742
|
-
color: bgimagearrayofobjs[index].bg1_descolor,
|
|
743
|
-
textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
|
|
744
|
-
fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
|
|
745
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
746
|
-
}}
|
|
747
|
-
>
|
|
748
|
-
{langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
|
|
749
|
-
</p>
|
|
750
|
-
)}
|
|
751
|
-
{bgimagearrayofobjs[index].showbutton1 == 'Show' && (
|
|
752
|
-
<button
|
|
753
|
-
class={`${bgcssstyles.btnresp}` + ' mt-md-5 mt-sm-3 '}
|
|
754
|
-
onClick={() => {
|
|
755
|
-
if (item.IsClickable == 'Yes') {
|
|
756
|
-
if (item.place_clickable == 'Button') {
|
|
757
|
-
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
758
|
-
routingcountext(item.clickable_page_route, false, '');
|
|
759
|
-
} else {
|
|
760
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}}
|
|
765
|
-
>
|
|
766
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
767
|
-
</button>
|
|
768
|
-
)}
|
|
769
|
-
</div>
|
|
770
|
-
</div>
|
|
771
|
-
</div>
|
|
772
|
-
</div>
|
|
773
|
-
</div>
|
|
774
|
-
</div>
|
|
775
|
-
);
|
|
776
|
-
})}
|
|
777
|
-
</div>
|
|
778
|
-
</div>
|
|
779
|
-
</div>
|
|
780
|
-
</div>
|
|
781
|
-
</div>
|
|
782
|
-
);
|
|
783
|
-
};
|
|
784
|
-
export default Twobgimages;
|