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
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;
|