tabexseriescomponents 0.0.63 → 0.0.65
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 +6859 -6478
- package/dist/index.esm.js +6862 -6481
- package/dist/index.umd.js +6862 -6482
- package/package.json +1 -1
- package/srcOLD/Contexts/LanguageContext.jsx +347 -0
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
- package/srcOLD/StylesJS/Customstyles.js +235 -0
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +40 -0
- package/srcOLD/index.jsx +175 -0
- package/srcOLD/styles/Home.module.css +129 -0
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcOLD/styles/cards/Productcard6.module.css +9 -0
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcOLD/styles/cards/categorycard.module.css +102 -0
- package/srcOLD/styles/cards/categorycard3.module.css +51 -0
- package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcOLD/styles/general/bootstrap.css +4420 -0
- package/srcOLD/styles/general/dropdown.css +199 -0
- package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
- package/srcOLD/styles/general/filter.module.css +108 -0
- package/srcOLD/styles/general/form.module.css +273 -0
- package/srcOLD/styles/general/general.module.css +709 -0
- package/srcOLD/styles/general/image-gallery.css +481 -0
- package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
- package/srcOLD/styles/general/scrollbtn.module.css +22 -0
- package/srcOLD/styles/general/slick.module.css +166 -0
- package/srcOLD/styles/general/tabs.module.css +110 -0
- package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
- package/srcOLD/styles/globals.css +26 -0
- package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
- package/srcOLD/styles/headers/Header7.module.css +50 -0
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
- package/srcOLD/styles/headers/Sideheader.module.css +108 -0
- package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +175 -0
- package/srcOLD/styles/headers/header5.module.css +30 -0
- package/srcOLD/styles/headers/header6.module.css +117 -0
- package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
- package/srcOLD/styles/headers/headerresturant.module.css +89 -0
- package/srcOLD/styles/headers/headerstyles.module.css +24 -0
- package/srcOLD/styles/headers/modernheader.module.css +78 -0
- package/srcOLD/styles/headers/subheader.module.css +114 -0
- package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcOLD/styles/staticpages/accordion.module.css +9 -0
- package/srcOLD/styles/staticpages/cart.module.css +108 -0
- package/srcOLD/styles/staticpages/dropdown.css +196 -0
- package/srcOLD/styles/staticpages/filter.module.css +139 -0
- package/srcOLD/styles/staticpages/login.module.css +146 -0
- package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
- package/srcOLD/styles/staticpages/shop.module.css +191 -0
- package/srcOLD/styles/staticpages/signup.module.css +206 -0
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
- package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
|
|
3
|
+
import { Zoom } from 'react-slideshow-image';
|
|
4
|
+
// import 'react-slideshow-image/dist/styles.css';
|
|
5
|
+
import { css } from 'glamor';
|
|
6
|
+
import { serverbaselink } from '../../../../../Env';
|
|
7
|
+
// import { LanguageContext } from '../../../../LanguageContext';
|
|
8
|
+
import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
|
|
9
|
+
// import { LeftArrow, RightArrow } from '../../Cards/CardsSection/Arrows.js';
|
|
10
|
+
|
|
11
|
+
function CardsArrayOfObjects({ itemId, cardItem, sectionproperties }) {
|
|
12
|
+
// const { lang, langdetect } = useContext(LanguageContext);
|
|
13
|
+
const visibilityCardsArrayOfObjects = useContext(VisibilityContext);
|
|
14
|
+
const visibleCardsArrayOfObjects = visibilityCardsArrayOfObjects.isItemVisible(itemId);
|
|
15
|
+
|
|
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
|
+
const Slideshowzoom = (props) => {
|
|
59
|
+
const { lang, langdetect } = useContext(LanguageContext);
|
|
60
|
+
const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
61
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
62
|
+
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
63
|
+
const [cardarrayofobjs, setcardarrayofobjs] = useState([]);
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (props.srcfrom == 'addsectionform') {
|
|
66
|
+
var secpropobj = {};
|
|
67
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
68
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
69
|
+
});
|
|
70
|
+
setsectionproperties({ ...secpropobj });
|
|
71
|
+
} else {
|
|
72
|
+
var secpropobj = {};
|
|
73
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
74
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
75
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
76
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
setsectionproperties({ ...secpropobj });
|
|
81
|
+
}
|
|
82
|
+
}, [StatePagePropertiesContext]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
if (sectionproperties.length != 0 && sectionproperties.slideshowarrayofobj != undefined) {
|
|
85
|
+
var bg_arrayofobjsparsed = JSON.parse(sectionproperties.slideshowarrayofobj);
|
|
86
|
+
if (Array.isArray(bg_arrayofobjsparsed)) {
|
|
87
|
+
setbgimagearrayofobjs([...bg_arrayofobjsparsed]);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, [sectionproperties]);
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
if (sectionproperties.length != 0 && sectionproperties.card_arrayofobjects != undefined) {
|
|
93
|
+
var card_arrayofobjsparsed = JSON.parse(sectionproperties.card_arrayofobjects);
|
|
94
|
+
if (Array.isArray(card_arrayofobjsparsed)) {
|
|
95
|
+
setcardarrayofobjs([...card_arrayofobjsparsed]);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}, [sectionproperties]);
|
|
99
|
+
|
|
100
|
+
const Slideshowsettings = {
|
|
101
|
+
indicators: false,
|
|
102
|
+
arrows: false,
|
|
103
|
+
pauseOnHover: false,
|
|
104
|
+
scale: 1.4,
|
|
105
|
+
};
|
|
106
|
+
const SlideShowTextContainer = (item) => {
|
|
107
|
+
return (
|
|
108
|
+
<div
|
|
109
|
+
class={
|
|
110
|
+
cardarrayofobjs.length != 0
|
|
111
|
+
? 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6'
|
|
112
|
+
: 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0'
|
|
113
|
+
}
|
|
114
|
+
style={{ position: 'absolute', top: cardarrayofobjs.length != 0 ? '40%' : '50%', zIndex: 2 }}
|
|
115
|
+
>
|
|
116
|
+
<div class={sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '}>
|
|
117
|
+
<p
|
|
118
|
+
className="m-0 p-0 wordbreak PacificoFont"
|
|
119
|
+
style={{
|
|
120
|
+
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
121
|
+
color: sectionproperties.slideshowText1ContentColor,
|
|
122
|
+
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
123
|
+
textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
126
|
+
{langdetect == 'en' ? item.titleen : item.titlear}
|
|
127
|
+
</p>
|
|
128
|
+
</div>
|
|
129
|
+
<div class={sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '}>
|
|
130
|
+
<p
|
|
131
|
+
className="m-0 p-0 wordbreak"
|
|
132
|
+
style={{
|
|
133
|
+
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
134
|
+
color: sectionproperties.slideshowText2ContentColor,
|
|
135
|
+
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
136
|
+
textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
137
|
+
}}
|
|
138
|
+
>
|
|
139
|
+
{langdetect == 'en' ? item.descriptionen : item.descriptionar}
|
|
140
|
+
</p>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<div class="row m-0 w-100 d-flex justify-content-center align-items-center">
|
|
148
|
+
<div
|
|
149
|
+
class={cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex justify-content-center h-md-auto' : 'col-lg-12 p-0 d-flex justify-content-center h-md-350px'}
|
|
150
|
+
style={{ height: sectionproperties.height + 'vh' }}
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
style={{
|
|
154
|
+
position: 'relative',
|
|
155
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
156
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
157
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + '100px',
|
|
158
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + '100px',
|
|
159
|
+
width: sectionproperties.width + 'vw',
|
|
160
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
161
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
162
|
+
height: sectionproperties.height + 'vh',
|
|
163
|
+
}}
|
|
164
|
+
>
|
|
165
|
+
<Zoom {...Slideshowsettings} transitionDuration={1500} duration={1500} arrow={true} easing="ease">
|
|
166
|
+
{Object.keys(bgimagearrayofobjs).length != 0 &&
|
|
167
|
+
bgimagearrayofobjs.map((item, index) => {
|
|
168
|
+
return (
|
|
169
|
+
<div class="row m-0 w-100">
|
|
170
|
+
<div
|
|
171
|
+
class={'beforebg p-0 align-items-center d-flex d-sm-none '}
|
|
172
|
+
key={index}
|
|
173
|
+
style={{
|
|
174
|
+
width: '100%',
|
|
175
|
+
height: sectionproperties.height + 'vh',
|
|
176
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
177
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
178
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
179
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
180
|
+
backgroundSize: 'cover',
|
|
181
|
+
backgroundPosition: 'center',
|
|
182
|
+
backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.imageen + `)` : `url(` + serverbaselink + item.imagear + `)`,
|
|
183
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
184
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
185
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
|
|
186
|
+
}}
|
|
187
|
+
>
|
|
188
|
+
{SlideShowTextContainer(item)}
|
|
189
|
+
</div>
|
|
190
|
+
<div
|
|
191
|
+
class={'beforebg p-0 align-items-center d-none d-sm-flex '}
|
|
192
|
+
key={index}
|
|
193
|
+
style={{
|
|
194
|
+
width: '100%',
|
|
195
|
+
height: sectionproperties.height + 'vh',
|
|
196
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
197
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
198
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
199
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
200
|
+
backgroundSize: 'cover',
|
|
201
|
+
backgroundPosition: 'center',
|
|
202
|
+
backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.image_resp_en + `)` : `url(` + serverbaselink + item.image_resp_ar + `)`,
|
|
203
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
204
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
205
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
|
|
206
|
+
}}
|
|
207
|
+
>
|
|
208
|
+
{SlideShowTextContainer(item)}
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
);
|
|
212
|
+
})}
|
|
213
|
+
</Zoom>
|
|
214
|
+
{cardarrayofobjs.length != 0 && (
|
|
215
|
+
<div style={{ position: 'absolute', left: 0, bottom: 60, zIndex: 100 }} class="row m-0 w-100 ">
|
|
216
|
+
<div class={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
|
|
217
|
+
<ScrollMenu
|
|
218
|
+
itemClassName="slideshowCard"
|
|
219
|
+
// LeftArrow={LeftArrow}
|
|
220
|
+
// RightArrow={RightArrow}
|
|
221
|
+
transitionDuration={500}
|
|
222
|
+
transitionEase={easingFunctions['linear']}
|
|
223
|
+
scrollContainerClassName={'scrollmenuclasssubscrollbar'}
|
|
224
|
+
>
|
|
225
|
+
{Object.keys(cardarrayofobjs).length != 0 &&
|
|
226
|
+
cardarrayofobjs.map((cardItem, cardIndex) => {
|
|
227
|
+
var id = cardIndex;
|
|
228
|
+
return <CardsArrayOfObjects title={id} itemId={id} key={id} cardItem={cardItem} sectionproperties={sectionproperties} />;
|
|
229
|
+
})}
|
|
230
|
+
</ScrollMenu>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
)}
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
);
|
|
238
|
+
};
|
|
239
|
+
export default Slideshowzoom;
|
|
240
|
+
|
|
241
|
+
const easingFunctions = {
|
|
242
|
+
noEasing: undefined,
|
|
243
|
+
// no easing, no acceleration
|
|
244
|
+
linear: (t) => t,
|
|
245
|
+
// accelerating from zero velocity
|
|
246
|
+
easeInQuad: (t) => t * t,
|
|
247
|
+
// decelerating to zero velocity
|
|
248
|
+
easeOutQuad: (t) => t * (2 - t),
|
|
249
|
+
// acceleration until halfway, then deceleration
|
|
250
|
+
easeInOutQuad: (t) => (t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t),
|
|
251
|
+
// accelerating from zero velocity
|
|
252
|
+
easeInCubic: (t) => t * t * t,
|
|
253
|
+
// decelerating to zero velocity
|
|
254
|
+
easeOutCubic: (t) => --t * t * t + 1,
|
|
255
|
+
// acceleration until halfway, then deceleration
|
|
256
|
+
easeInOutCubic: (t) => (t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1),
|
|
257
|
+
// accelerating from zero velocity
|
|
258
|
+
easeInQuart: (t) => t * t * t * t,
|
|
259
|
+
// decelerating to zero velocity
|
|
260
|
+
easeOutQuart: (t) => 1 - --t * t * t * t,
|
|
261
|
+
// acceleration until halfway, then deceleration
|
|
262
|
+
easeInOutQuart: (t) => (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t),
|
|
263
|
+
// accelerating from zero velocity
|
|
264
|
+
easeInQuint: (t) => t * t * t * t * t,
|
|
265
|
+
// decelerating to zero velocity
|
|
266
|
+
easeOutQuint: (t) => 1 + --t * t * t * t * t,
|
|
267
|
+
// acceleration until halfway, then deceleration
|
|
268
|
+
easeInOutQuint: (t) => (t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t),
|
|
269
|
+
// Source https://gist.github.com/gre/1650294#file-easing-js
|
|
270
|
+
};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
|
|
3
|
+
import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
|
|
4
|
+
import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
|
|
5
|
+
import generalstyles from '../../../../../../../styles/general/general.module.css';
|
|
6
|
+
import { BrowserRouter as Router, useHistory } from 'react-router-dom';
|
|
7
|
+
import { css } from 'glamor';
|
|
8
|
+
import { useParams } from 'react-router';
|
|
9
|
+
import { ProductsCardsSectionContext_Provider } from '../../../../../../../Contexts/ProductsCardsSectionContext';
|
|
10
|
+
|
|
11
|
+
const Aboutus = (props) => {
|
|
12
|
+
let history = useHistory();
|
|
13
|
+
const { lang, langdetect } = useContext(LanguageContext);
|
|
14
|
+
const { FetchQueriesEngineContext, setFetchQueriesEngineContext } = useContext(FetchingContext);
|
|
15
|
+
const { fetch_inst_tabex_websitetemplatesQueryContext, pageindexcontext, TabexSectionsComponentsContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
16
|
+
const { collectionidparams } = useParams();
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
19
|
+
var secpropobj = {};
|
|
20
|
+
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
21
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
22
|
+
});
|
|
23
|
+
setsectionproperties({ ...secpropobj });
|
|
24
|
+
}
|
|
25
|
+
}, [StatePagePropertiesContext]);
|
|
26
|
+
const [CurrentPageId, setCurrentPageId] = useState('');
|
|
27
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
var cartindex = fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.findIndex((x) => x.staticpageid == '62adc7201f0b8');
|
|
30
|
+
if (cartindex >= 0) {
|
|
31
|
+
setCurrentPageId(fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[cartindex].pageid);
|
|
32
|
+
}
|
|
33
|
+
}, [fetch_inst_tabex_websitetemplatesQueryContext.dataUpdatedAt]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
36
|
+
var secpropobj = {};
|
|
37
|
+
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
38
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
39
|
+
});
|
|
40
|
+
setsectionproperties({ ...secpropobj });
|
|
41
|
+
}
|
|
42
|
+
}, [StatePagePropertiesContext]);
|
|
43
|
+
const wishlist_cssstyles = {
|
|
44
|
+
sectiontitlespan: css({
|
|
45
|
+
':after': {
|
|
46
|
+
width: sectionproperties.sectitle_lineafterwidth + '%',
|
|
47
|
+
backgroundColor: sectionproperties.linebgcolor,
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
50
|
+
sectiontitlespan2: css({
|
|
51
|
+
':after': {
|
|
52
|
+
width: sectionproperties.sectitle_lineafterwidth + 'px',
|
|
53
|
+
height: '100%',
|
|
54
|
+
backgroundColor: sectionproperties.linebgcolor,
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
pill: css({
|
|
58
|
+
minWidth: sectionproperties.pillwidth + 'px',
|
|
59
|
+
height: sectionproperties.pillheight + 'px',
|
|
60
|
+
backgroundColor: sectionproperties.pillbgcolor,
|
|
61
|
+
color: sectionproperties.pillcolor,
|
|
62
|
+
textTransform: sectionproperties.pillcolor,
|
|
63
|
+
fontWeight: sectionproperties.pillfontWeight,
|
|
64
|
+
fontSize: sectionproperties.pillfontSize + 'px',
|
|
65
|
+
borderTopLeftRadius: sectionproperties.pillborderTopLeftRadius + 'px',
|
|
66
|
+
borderTopRightRadius: sectionproperties.pillborderTopRightRadius + 'px',
|
|
67
|
+
borderBottomLeftRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
68
|
+
borderBottomRightRadius: sectionproperties.pillborderBottomRightRadius + 'px',
|
|
69
|
+
}),
|
|
70
|
+
productNameStyles: css({
|
|
71
|
+
color: sectionproperties.prodNameColor,
|
|
72
|
+
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
73
|
+
textTransform: sectionproperties.prodNameTextTranform,
|
|
74
|
+
fontWeight: sectionproperties.prodNameFontWeight,
|
|
75
|
+
}),
|
|
76
|
+
productPricestyles: css({
|
|
77
|
+
color: sectionproperties.prodPriceColor,
|
|
78
|
+
fontSize: sectionproperties.prodpriceFontSize + 'px',
|
|
79
|
+
fontWeight: sectionproperties.prodPriceFontWeight,
|
|
80
|
+
}),
|
|
81
|
+
productsalePricestyles: css({
|
|
82
|
+
color: sectionproperties.prodsalePriceColor,
|
|
83
|
+
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
84
|
+
fontWeight: sectionproperties.prodsalePriceFontWeight,
|
|
85
|
+
}),
|
|
86
|
+
cart_btn: css({
|
|
87
|
+
width: sectionproperties.cartBtnWidth + 'px',
|
|
88
|
+
height: sectionproperties.cartBtnHeight + 'px',
|
|
89
|
+
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
90
|
+
borderBottomLeftRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
91
|
+
borderBottomRightRadius: sectionproperties.cart_btn_borderBottomRightRadius + 'px',
|
|
92
|
+
borderTopLeftRadius: sectionproperties.cart_btn_borderTopLeftRadius + 'px',
|
|
93
|
+
borderTopRightRadius: sectionproperties.cart_btn_borderTopRightRadius + 'px',
|
|
94
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
95
|
+
textTransform: sectionproperties.cartBtnTexttransform,
|
|
96
|
+
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
97
|
+
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
98
|
+
transition: '.3s',
|
|
99
|
+
opacity: sectionproperties.cartbtn_opacity,
|
|
100
|
+
':hover': {
|
|
101
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
102
|
+
color: sectionproperties.cartBtnTextcoloronhover,
|
|
103
|
+
opacity: sectionproperties.cartbtn_opacityonhover,
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
trash_btn: css({
|
|
107
|
+
width: sectionproperties.trashbtn_Width + 'px',
|
|
108
|
+
height: sectionproperties.trashbtn_Height + 'px',
|
|
109
|
+
background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
|
|
110
|
+
color: sectionproperties.trashbtn_Textcolor,
|
|
111
|
+
borderBottomLeftRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
|
|
112
|
+
borderBottomRightRadius: sectionproperties.trashbtn_borderBottomRightRadius + 'px',
|
|
113
|
+
borderTopLeftRadius: sectionproperties.trashbtn_borderTopLeftRadius + 'px',
|
|
114
|
+
borderTopRightRadius: sectionproperties.trashbtn_borderTopRightRadius + 'px',
|
|
115
|
+
boxShadow: sectionproperties.trashbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.trashbtn_shadowcolor : '',
|
|
116
|
+
transition: '.3s',
|
|
117
|
+
opacity: sectionproperties.trashbtn_opacity,
|
|
118
|
+
border: sectionproperties.trashbtn_borderwidth + 'px solid ' + sectionproperties.trashbtn_bordercolor,
|
|
119
|
+
//
|
|
120
|
+
':hover': {
|
|
121
|
+
background: sectionproperties.trashbtn_bgColoronhover,
|
|
122
|
+
color: sectionproperties.trashbtn_Textcoloronhover,
|
|
123
|
+
opacity: sectionproperties.trashbtn_opacityonhover,
|
|
124
|
+
},
|
|
125
|
+
}),
|
|
126
|
+
imagecont: css({
|
|
127
|
+
width: '70px',
|
|
128
|
+
height: '60px',
|
|
129
|
+
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
130
|
+
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
131
|
+
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
132
|
+
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
133
|
+
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
134
|
+
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
135
|
+
display: 'flex',
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
justifyContent: 'center',
|
|
138
|
+
backgroundRepeat: 'no-repeat',
|
|
139
|
+
backgroundSize: 'cover',
|
|
140
|
+
backgroundPosition: 'center',
|
|
141
|
+
position: 'relative',
|
|
142
|
+
}),
|
|
143
|
+
};
|
|
144
|
+
return (
|
|
145
|
+
<div className={'row ml-0 mr-0 w-100'} style={{ backgroundColor: sectionproperties.backgroundColor }}>
|
|
146
|
+
<div className="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
|
|
147
|
+
{pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
|
|
148
|
+
<div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
|
|
149
|
+
{StatePagePropertiesContext.pageobj.sections.map((item, index) => {
|
|
150
|
+
if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
|
|
151
|
+
var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
|
|
152
|
+
return (
|
|
153
|
+
<div className="row w-100 ml-0 mr-0 d-flex justify-content-center p-0">
|
|
154
|
+
{item.tabexsectioninfo.sectiontype == 'Cards' && (
|
|
155
|
+
<ProductsCardsSectionContext_Provider>
|
|
156
|
+
{React.createElement(sectioncomp, {
|
|
157
|
+
sectionidprops: item.sectionid,
|
|
158
|
+
sectionindexprops: index,
|
|
159
|
+
srcfromprops: 'GeneralProductsComponent',
|
|
160
|
+
collectionidprops: collectionidparams,
|
|
161
|
+
})}
|
|
162
|
+
</ProductsCardsSectionContext_Provider>
|
|
163
|
+
)}
|
|
164
|
+
{item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
|
|
165
|
+
</div>
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
})}
|
|
169
|
+
</div>
|
|
170
|
+
)}
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
export default Aboutus;
|