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/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { css } from 'glamor';
|
|
3
|
+
import { IKImage } from 'imagekitio-react';
|
|
4
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
5
|
+
|
|
6
|
+
const Image_with_leftwords = (props) => {
|
|
7
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
8
|
+
const [imagesarray, setimagesarray] = useState([]);
|
|
9
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
10
|
+
const lang = props.actions.lang;
|
|
11
|
+
const langdetect = props.actions.langdetect;
|
|
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 pl-md-3 pr-md-3'}
|
|
69
|
+
style={{
|
|
70
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
71
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + '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 col-md-12 d-flex justify-content-start h-100 justify-content-md-center">
|
|
84
|
+
<div class="row m-0 w-100 mb-auto">
|
|
85
|
+
<div class="col-lg-12 p-0 d-flex justify-content-md-center" style={{ justifyContent: sectionproperties.text1centered == 'Centered' ? 'center' : 'start' }}>
|
|
86
|
+
<p
|
|
87
|
+
style={{
|
|
88
|
+
color: sectionproperties.slideshowText1ContentColor,
|
|
89
|
+
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
90
|
+
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
91
|
+
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
92
|
+
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
96
|
+
</p>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-lg-12 p-0 d-flex justify-content-md-center">
|
|
99
|
+
<p
|
|
100
|
+
class="p-0 text-md-center"
|
|
101
|
+
style={{
|
|
102
|
+
textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
|
|
103
|
+
color: sectionproperties.slideshowText2ContentColor,
|
|
104
|
+
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
105
|
+
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
106
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
|
|
107
|
+
paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
|
|
108
|
+
}}
|
|
109
|
+
dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.contenteditor : sectionproperties.contenteditor_ar }}
|
|
110
|
+
></p>
|
|
111
|
+
</div>
|
|
112
|
+
{sectionproperties.generalbtn_show == 'Show' && (
|
|
113
|
+
<div class="col-lg-12 p-0">
|
|
114
|
+
<button class={`${section_styles.btn}`}>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</button>
|
|
115
|
+
</div>
|
|
116
|
+
)}
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center">
|
|
120
|
+
<IKImage
|
|
121
|
+
urlEndpoint={IKurlEndpoint}
|
|
122
|
+
publicKey={IKpublicKey}
|
|
123
|
+
path={imagesarray.length != 0 ? '/tr:w-500/' + imagesarray[0].bgsection_image : ''}
|
|
124
|
+
style={{
|
|
125
|
+
objectFit: 'contain',
|
|
126
|
+
margin: 0,
|
|
127
|
+
padding: 0,
|
|
128
|
+
height: '400px',
|
|
129
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
130
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
131
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
132
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
133
|
+
}}
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
export default Image_with_leftwords;
|
|
File without changes
|
package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx
RENAMED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
3
2
|
import { Fade } from 'react-slideshow-image';
|
|
4
|
-
// import 'react-slideshow-image/dist/styles.css';
|
|
5
3
|
import { css } from 'glamor';
|
|
6
4
|
import { serverbaselink } from '../../../../../Env';
|
|
7
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
8
5
|
import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
|
|
9
|
-
// import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
|
|
10
6
|
const Slideshowfade = (props) => {
|
|
11
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
12
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
13
|
-
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
14
7
|
const [sectionproperties, setsectionproperties] = useState('');
|
|
15
8
|
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
16
|
-
|
|
17
9
|
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
18
10
|
const lang = props.actions.lang;
|
|
19
11
|
const langdetect = props.actions.langdetect;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { Slide } from 'react-slideshow-image';
|
|
3
|
+
import { css } from 'glamor';
|
|
4
|
+
import { serverbaselink } from '../../../../../Env';
|
|
5
|
+
import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
|
|
6
|
+
const Slideshowslide = (props) => {
|
|
7
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
8
|
+
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
9
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
10
|
+
const lang = props.actions.lang;
|
|
11
|
+
const langdetect = props.actions.langdetect;
|
|
12
|
+
const routingcountext = props.actions.routingcountext;
|
|
13
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (props.srcfrom == 'addsectionform') {
|
|
16
|
+
var secpropobj = {};
|
|
17
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
18
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
19
|
+
});
|
|
20
|
+
setsectionproperties({ ...secpropobj });
|
|
21
|
+
} else {
|
|
22
|
+
var secpropobj = {};
|
|
23
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
24
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
25
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
26
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
setsectionproperties({ ...secpropobj });
|
|
31
|
+
}
|
|
32
|
+
}, [StatePagePropertiesContext]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (sectionproperties.length != 0 && sectionproperties.slideshowarrayofobj != undefined) {
|
|
35
|
+
var bg_arrayofobjsparsed = JSON.parse(sectionproperties.slideshowarrayofobj);
|
|
36
|
+
if (Array.isArray(bg_arrayofobjsparsed)) {
|
|
37
|
+
setbgimagearrayofobjs([...bg_arrayofobjsparsed]);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, [sectionproperties]);
|
|
41
|
+
const Slideshowsettings = {
|
|
42
|
+
indicators: false,
|
|
43
|
+
arrows: false,
|
|
44
|
+
pauseOnHover: false,
|
|
45
|
+
scale: 1.4,
|
|
46
|
+
};
|
|
47
|
+
const slideshow_styles = {
|
|
48
|
+
slideshow_btn: css({
|
|
49
|
+
zIndex: 1000,
|
|
50
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
51
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
52
|
+
background: 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
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
59
|
+
lineHeight: sectionproperties.generalbtn_fontsize + 'px',
|
|
60
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
61
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
62
|
+
transition: '.3s',
|
|
63
|
+
':hover': {
|
|
64
|
+
background: sectionproperties.generalbtn_bgColoronhover,
|
|
65
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
const SlideShowTextContainer = (item) => {
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
class={'row m-0 w-100 pl-md-2 pr-md-2'}
|
|
73
|
+
style={{
|
|
74
|
+
position: 'absolute',
|
|
75
|
+
top: '40%',
|
|
76
|
+
zIndex: 1000,
|
|
77
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
78
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
79
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
class={'col-lg-12 d-flex justify-content-start'}
|
|
84
|
+
style={{
|
|
85
|
+
textAlign: 'center',
|
|
86
|
+
}}
|
|
87
|
+
>
|
|
88
|
+
<p
|
|
89
|
+
className="m-0 p-0 wordbreak PacificoFont"
|
|
90
|
+
style={{
|
|
91
|
+
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
92
|
+
color: sectionproperties.slideshowText1ContentColor,
|
|
93
|
+
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{langdetect == 'en' ? item.titleen : item.titlear}
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
<div class={'col-lg-12 d-flex justify-content-start'}>
|
|
100
|
+
<p
|
|
101
|
+
className="m-0 p-0 wordbreak"
|
|
102
|
+
style={{
|
|
103
|
+
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
104
|
+
color: sectionproperties.slideshowText2ContentColor,
|
|
105
|
+
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
106
|
+
}}
|
|
107
|
+
>
|
|
108
|
+
{langdetect == 'en' ? item.descriptionen : item.descriptionar}
|
|
109
|
+
</p>
|
|
110
|
+
</div>
|
|
111
|
+
<div class={'col-lg-12 d-flex justify-content-start mt-3'}>
|
|
112
|
+
<button
|
|
113
|
+
class={`${slideshow_styles.slideshow_btn}` + ' allcentered '}
|
|
114
|
+
style={{
|
|
115
|
+
letterSpacing: langdetect == 'en' ? '1px' : 0,
|
|
116
|
+
}}
|
|
117
|
+
onClick={() => {
|
|
118
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}{' '}
|
|
122
|
+
{langdetect == 'en' ? <IoIosArrowRoundForward size={20} /> : <IoIosArrowRoundBack size={20} />}
|
|
123
|
+
</button>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
return (
|
|
129
|
+
<div class="row m-0 w-100 d-flex justify-content-center align-items-center">
|
|
130
|
+
<div class={'col-lg-12 p-0 d-flex justify-content-center'} style={{ height: sectionproperties.height + 'vh' }}>
|
|
131
|
+
<div
|
|
132
|
+
style={{
|
|
133
|
+
position: 'relative',
|
|
134
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
135
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
136
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
137
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
138
|
+
width: sectionproperties.width + 'vw',
|
|
139
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
140
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
141
|
+
height: sectionproperties.height + 'vh',
|
|
142
|
+
}}
|
|
143
|
+
>
|
|
144
|
+
<Slide {...Slideshowsettings} transitionDuration={1500} duration={1500} arrow={true} easing="ease">
|
|
145
|
+
{Object.keys(bgimagearrayofobjs).length != 0 &&
|
|
146
|
+
bgimagearrayofobjs.map((item, index) => {
|
|
147
|
+
return (
|
|
148
|
+
<div
|
|
149
|
+
class="row m-0 w-100"
|
|
150
|
+
style={{
|
|
151
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
152
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
153
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
154
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
<div
|
|
158
|
+
class={'p-0 align-items-center d-flex d-sm-none '}
|
|
159
|
+
key={index}
|
|
160
|
+
style={{
|
|
161
|
+
direction: langdetect == 'en' ? 'ltr' : 'rtl',
|
|
162
|
+
width: '100%',
|
|
163
|
+
height: sectionproperties.height + 'vh',
|
|
164
|
+
backgroundSize: 'cover',
|
|
165
|
+
backgroundPosition: 'center',
|
|
166
|
+
backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.imageen + `)` : `url(` + serverbaselink + item.imagear + `)`,
|
|
167
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
170
|
+
{SlideShowTextContainer(item)}
|
|
171
|
+
</div>
|
|
172
|
+
<div
|
|
173
|
+
class={'p-0 align-items-center d-none d-sm-flex '}
|
|
174
|
+
key={index}
|
|
175
|
+
style={{
|
|
176
|
+
width: '100%',
|
|
177
|
+
height: sectionproperties.height + 'vh',
|
|
178
|
+
backgroundSize: 'cover',
|
|
179
|
+
backgroundPosition: 'center',
|
|
180
|
+
backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.image_resp_en + `)` : `url(` + serverbaselink + item.image_resp_ar + `)`,
|
|
181
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
182
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
183
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
{SlideShowTextContainer(item)}
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
);
|
|
190
|
+
})}
|
|
191
|
+
</Slide>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
);
|
|
196
|
+
};
|
|
197
|
+
export default Slideshowslide;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VisibilityContext } from 'react-horizontal-scrolling-menu';
|
|
3
|
+
function Arrow({ children, disabled, onClick }: { children: React.ReactNode, disabled: boolean, onClick: VoidFunction }) {
|
|
4
|
+
return (
|
|
5
|
+
<button
|
|
6
|
+
disabled={disabled}
|
|
7
|
+
onClick={onClick}
|
|
8
|
+
style={{
|
|
9
|
+
cursor: 'pointer',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
opacity: disabled ? '0' : '1',
|
|
14
|
+
userSelect: 'none',
|
|
15
|
+
width: '100%',
|
|
16
|
+
height: 50,
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
top: 0,
|
|
19
|
+
bottom: 0,
|
|
20
|
+
margin: 'auto',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</button>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function LeftArrow() {
|
|
29
|
+
const { isFirstItemVisible, scrollNext, scrollPrev, visibleItemsWithoutSeparators, initComplete } = React.useContext(VisibilityContext);
|
|
30
|
+
const [disabled, setDisabled] = React.useState(!initComplete || (initComplete && isFirstItemVisible));
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
// NOTE: detect if whole component visible
|
|
33
|
+
if (visibleItemsWithoutSeparators.length) {
|
|
34
|
+
setDisabled(isFirstItemVisible);
|
|
35
|
+
}
|
|
36
|
+
}, [isFirstItemVisible, visibleItemsWithoutSeparators]);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<Arrow
|
|
40
|
+
disabled={disabled}
|
|
41
|
+
onClick={() => {
|
|
42
|
+
scrollPrev();
|
|
43
|
+
}}
|
|
44
|
+
style={[]}
|
|
45
|
+
>
|
|
46
|
+
<div
|
|
47
|
+
class="d-flex align-items-center justify-content-center text-secondaryhover"
|
|
48
|
+
style={{ position: 'absolute', left: 20, width: '5vh', height: '5vh', borderRadius: '50%', zIndex: 1000 }}
|
|
49
|
+
>
|
|
50
|
+
<i class="fa fa-chevron-left text-white"></i>
|
|
51
|
+
</div>
|
|
52
|
+
</Arrow>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function RightArrow() {
|
|
57
|
+
const { isLastItemVisible, scrollNext, scrollPrev, visibleItemsWithoutSeparators } = React.useContext(VisibilityContext);
|
|
58
|
+
const [disabled, setDisabled] = React.useState(!visibleItemsWithoutSeparators.length && isLastItemVisible);
|
|
59
|
+
React.useEffect(() => {
|
|
60
|
+
if (visibleItemsWithoutSeparators.length) {
|
|
61
|
+
setDisabled(isLastItemVisible);
|
|
62
|
+
}
|
|
63
|
+
}, [isLastItemVisible, visibleItemsWithoutSeparators]);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<Arrow
|
|
67
|
+
disabled={disabled}
|
|
68
|
+
onClick={() => {
|
|
69
|
+
scrollNext();
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
<div class="d-flex align-items-center justify-content-center text-secondaryhover" style={{ position: 'absolute', right: 20, width: '5vh', height: '5vh', borderRadius: '50%' }}>
|
|
73
|
+
<i class="fa fa-chevron-right text-white"></i>
|
|
74
|
+
</div>
|
|
75
|
+
</Arrow>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function onWheel(apiObj: scrollVisibilityApiType, ev: React.WheelEvent): void {
|
|
79
|
+
const isThouchpad = Math.abs(ev.deltaX) !== 0 || Math.abs(ev.deltaY) < 15;
|
|
80
|
+
|
|
81
|
+
if (isThouchpad) {
|
|
82
|
+
ev.stopPropagation();
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (ev.deltaY < 0) {
|
|
87
|
+
apiObj.scrollNext();
|
|
88
|
+
} else if (ev.deltaY > 0) {
|
|
89
|
+
apiObj.scrollPrev();
|
|
90
|
+
}
|
|
91
|
+
}
|
package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx
RENAMED
|
@@ -1,66 +1,63 @@
|
|
|
1
1
|
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
3
2
|
import { Zoom } from 'react-slideshow-image';
|
|
4
|
-
// import 'react-slideshow-image/dist/styles.css';
|
|
5
3
|
import { css } from 'glamor';
|
|
6
4
|
import { serverbaselink } from '../../../../../Env';
|
|
7
|
-
// import { LanguageContext } from '../../../../LanguageContext';
|
|
8
5
|
import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
|
|
9
|
-
//
|
|
6
|
+
// function CardsArrayOfObjects({ itemId, cardItem, sectionproperties }) {
|
|
7
|
+
// // const visibilityCardsArrayOfObjects = props.actions.visibilityCardsArrayOfObjects;
|
|
8
|
+
// // const visibleCardsArrayOfObjects = visibilityCardsArrayOfObjects.isItemVisible(itemId);
|
|
9
|
+
// // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
10
|
+
// // const actions = props.actions;
|
|
11
|
+
// // const lang = props.actions.lang;
|
|
12
|
+
// // const langdetect = props.actions.langdetect;
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
// return (
|
|
15
|
+
// <div class={'p-0 w-100'}>
|
|
16
|
+
// <div class="row m-0 w-100">
|
|
17
|
+
// <div class="col-lg-12 allcentered mb-1 p-0">
|
|
18
|
+
// <div
|
|
19
|
+
// style={{
|
|
20
|
+
// width: '120px',
|
|
21
|
+
// height: '120px',
|
|
22
|
+
// borderRadius: '100%',
|
|
23
|
+
// }}
|
|
24
|
+
// >
|
|
25
|
+
// <img src={serverbaselink + cardItem.cardobj_img} style={{ width: '100%', height: '100%', objectFit: 'contain', borderRadius: '100%' }} />
|
|
26
|
+
// </div>
|
|
27
|
+
// </div>
|
|
28
|
+
// <div
|
|
29
|
+
// style={{
|
|
30
|
+
// color: sectionproperties.sectionTitleColor,
|
|
31
|
+
// fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
32
|
+
// fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
33
|
+
// }}
|
|
34
|
+
// class="col-lg-12 allcentered text-center p-0 wordbreak wordbreak1"
|
|
35
|
+
// >
|
|
36
|
+
// {/* <span>{langdetect == 'en' ? cardItem.cardobj_titleen : cardItem.cardobj_titlear}</span> */}
|
|
37
|
+
// </div>
|
|
38
|
+
// <div
|
|
39
|
+
// style={{
|
|
40
|
+
// color: sectionproperties.prodCatColor,
|
|
41
|
+
// fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
42
|
+
// fontWeight: sectionproperties.prodCatFontWeight,
|
|
43
|
+
// }}
|
|
44
|
+
// class="col-lg-12 allcentered text-center wordbreak wordbreak1 p-0"
|
|
45
|
+
// >
|
|
46
|
+
// {/* <span>{langdetect == 'en' ? cardItem.cardobj_descripen : cardItem.cardobj_descripar}</span> */}
|
|
47
|
+
// </div>
|
|
48
|
+
// </div>
|
|
49
|
+
// </div>
|
|
50
|
+
// );
|
|
51
|
+
// }
|
|
15
52
|
|
|
16
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
17
|
-
const lang = props.actions.lang;
|
|
18
|
-
const langdetect = props.actions.langdetect;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<div class={' p-0 w-100'}>
|
|
22
|
-
<div class="row m-0 w-100">
|
|
23
|
-
<div class="col-lg-12 allcentered mb-1 p-0">
|
|
24
|
-
<div
|
|
25
|
-
style={{
|
|
26
|
-
width: '120px',
|
|
27
|
-
height: '120px',
|
|
28
|
-
borderRadius: '100%',
|
|
29
|
-
}}
|
|
30
|
-
>
|
|
31
|
-
<img src={serverbaselink + cardItem.cardobj_img} style={{ width: '100%', height: '100%', objectFit: 'contain', borderRadius: '100%' }} />
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<div
|
|
35
|
-
style={{
|
|
36
|
-
color: sectionproperties.sectionTitleColor,
|
|
37
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
38
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
39
|
-
}}
|
|
40
|
-
class="col-lg-12 allcentered text-center p-0 wordbreak wordbreak1"
|
|
41
|
-
>
|
|
42
|
-
<span>{langdetect == 'en' ? cardItem.cardobj_titleen : cardItem.cardobj_titlear}</span>
|
|
43
|
-
</div>
|
|
44
|
-
<div
|
|
45
|
-
style={{
|
|
46
|
-
color: sectionproperties.prodCatColor,
|
|
47
|
-
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
48
|
-
fontWeight: sectionproperties.prodCatFontWeight,
|
|
49
|
-
}}
|
|
50
|
-
class="col-lg-12 allcentered text-center wordbreak wordbreak1 p-0"
|
|
51
|
-
>
|
|
52
|
-
<span>{langdetect == 'en' ? cardItem.cardobj_descripen : cardItem.cardobj_descripar}</span>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
53
|
const Slideshowzoom = (props) => {
|
|
59
|
-
const
|
|
60
|
-
const
|
|
54
|
+
const actions = props.actions;
|
|
55
|
+
const langdetect = props.actions.langdetect;
|
|
56
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
61
57
|
const [sectionproperties, setsectionproperties] = useState('');
|
|
62
58
|
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
63
59
|
const [cardarrayofobjs, setcardarrayofobjs] = useState([]);
|
|
60
|
+
|
|
64
61
|
useEffect(() => {
|
|
65
62
|
if (props.srcfrom == 'addsectionform') {
|
|
66
63
|
var secpropobj = {};
|
|
@@ -103,6 +100,7 @@ const Slideshowzoom = (props) => {
|
|
|
103
100
|
pauseOnHover: false,
|
|
104
101
|
scale: 1.4,
|
|
105
102
|
};
|
|
103
|
+
|
|
106
104
|
const SlideShowTextContainer = (item) => {
|
|
107
105
|
return (
|
|
108
106
|
<div
|
|
@@ -225,7 +223,48 @@ const Slideshowzoom = (props) => {
|
|
|
225
223
|
{Object.keys(cardarrayofobjs).length != 0 &&
|
|
226
224
|
cardarrayofobjs.map((cardItem, cardIndex) => {
|
|
227
225
|
var id = cardIndex;
|
|
228
|
-
return
|
|
226
|
+
return (
|
|
227
|
+
<div class={'p-0 w-100'}>
|
|
228
|
+
<div class="row m-0 w-100">
|
|
229
|
+
<div class="col-lg-12 allcentered mb-1 p-0">
|
|
230
|
+
<div
|
|
231
|
+
style={{
|
|
232
|
+
width: '120px',
|
|
233
|
+
height: '120px',
|
|
234
|
+
borderRadius: '100%',
|
|
235
|
+
}}
|
|
236
|
+
>
|
|
237
|
+
<img
|
|
238
|
+
src={serverbaselink + cardItem.cardobj_img}
|
|
239
|
+
style={{ width: '100%', height: '100%', objectFit: 'contain', borderRadius: '100%' }}
|
|
240
|
+
/>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
<div
|
|
244
|
+
style={{
|
|
245
|
+
color: sectionproperties.sectionTitleColor,
|
|
246
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
247
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
248
|
+
}}
|
|
249
|
+
class="col-lg-12 allcentered text-center p-0 wordbreak wordbreak1"
|
|
250
|
+
>
|
|
251
|
+
<span>{langdetect == 'en' ? cardItem.cardobj_titleen : cardItem.cardobj_titlear}</span>
|
|
252
|
+
</div>
|
|
253
|
+
<div
|
|
254
|
+
style={{
|
|
255
|
+
color: sectionproperties.prodCatColor,
|
|
256
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
257
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
258
|
+
}}
|
|
259
|
+
class="col-lg-12 allcentered text-center wordbreak wordbreak1 p-0"
|
|
260
|
+
>
|
|
261
|
+
<span>{langdetect == 'en' ? cardItem.cardobj_descripen : cardItem.cardobj_descripar}</span>
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
265
|
+
);
|
|
266
|
+
// <CardsArrayOfObjects title={id} itemId={id} key={id} cardItem={cardItem} sectionproperties={sectionproperties} actions={actions} />
|
|
267
|
+
// ;
|
|
229
268
|
})}
|
|
230
269
|
</ScrollMenu>
|
|
231
270
|
</div>
|