tabexseriescomponents 0.0.80 → 0.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +41 -13
- package/dist/index.esm.js +41 -13
- package/dist/index.umd.js +41 -13
- package/package.json +1 -1
- package/componentssrc.rar +0 -0
- package/srcOLD/Contexts/LanguageContext.jsx +0 -347
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/srcOLD/StylesJS/Customstyles.js +0 -235
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +0 -40
- package/srcOLD/index.jsx +0 -175
- package/srcOLD/styles/Home.module.css +0 -129
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcOLD/styles/cards/Productcard6.module.css +0 -9
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcOLD/styles/cards/categorycard.module.css +0 -102
- package/srcOLD/styles/cards/categorycard3.module.css +0 -51
- package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcOLD/styles/general/bootstrap.css +0 -4420
- package/srcOLD/styles/general/dropdown.css +0 -199
- package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
- package/srcOLD/styles/general/filter.module.css +0 -108
- package/srcOLD/styles/general/form.module.css +0 -273
- package/srcOLD/styles/general/general.module.css +0 -709
- package/srcOLD/styles/general/image-gallery.css +0 -481
- package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
- package/srcOLD/styles/general/scrollbtn.module.css +0 -22
- package/srcOLD/styles/general/slick.module.css +0 -166
- package/srcOLD/styles/general/tabs.module.css +0 -110
- package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
- package/srcOLD/styles/globals.css +0 -26
- package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
- package/srcOLD/styles/headers/Header7.module.css +0 -50
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
- package/srcOLD/styles/headers/Sideheader.module.css +0 -108
- package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +0 -175
- package/srcOLD/styles/headers/header5.module.css +0 -30
- package/srcOLD/styles/headers/header6.module.css +0 -117
- package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
- package/srcOLD/styles/headers/headerresturant.module.css +0 -89
- package/srcOLD/styles/headers/headerstyles.module.css +0 -24
- package/srcOLD/styles/headers/modernheader.module.css +0 -78
- package/srcOLD/styles/headers/subheader.module.css +0 -114
- package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcOLD/styles/staticpages/accordion.module.css +0 -9
- package/srcOLD/styles/staticpages/cart.module.css +0 -108
- package/srcOLD/styles/staticpages/dropdown.css +0 -196
- package/srcOLD/styles/staticpages/filter.module.css +0 -139
- package/srcOLD/styles/staticpages/login.module.css +0 -146
- package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
- package/srcOLD/styles/staticpages/shop.module.css +0 -191
- package/srcOLD/styles/staticpages/signup.module.css +0 -206
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
- package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
|
@@ -1,270 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,175 +0,0 @@
|
|
|
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;
|