tabexseriescomponents 0.0.73 → 0.0.74
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 +337 -225
- package/dist/index.esm.js +343 -231
- package/dist/index.umd.js +340 -229
- package/package.json +1 -1
- package/src-aya/Contexts/LanguageContext.jsx +0 -369
- package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/src-aya/StylesJS/Customstyles.js +0 -235
- package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
- package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
- package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
- package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
- package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
- package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
- package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
- package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
- package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
- package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
- package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
- package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
- package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
- package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
- package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
- package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
- package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
- package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
- package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
- package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
- package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
- package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
- package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
- package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
- package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
- package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
- package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
- package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
- package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
- package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
- package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
- package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
- package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
- package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
- package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
- package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
- package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
- package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
- package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
- package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
- package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
- package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
- package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
- package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
- package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
- package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
- package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
- package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
- package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
- package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
- package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
- package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
- package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
- package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
- package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
- package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
- package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
- package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
- package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
- package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
- package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
- package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
- package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
- package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
- package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
- package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
- package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
- package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
- package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
- package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
- package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
- package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
- package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
- package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
- package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
- package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
- package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
- package/src-aya/assets/images/appstore.png +0 -0
- package/src-aya/assets/images/cod.png +0 -0
- package/src-aya/assets/images/egyptflag.png +0 -0
- package/src-aya/assets/images/fawry.png +0 -0
- package/src-aya/assets/images/googleplay.png +0 -0
- package/src-aya/assets/images/payment.png +0 -0
- package/src-aya/assets/images/paymob.png +0 -0
- package/src-aya/assets/images/paypal.png +0 -0
- package/src-aya/assets/images/shoppingcart.png +0 -0
- package/src-aya/assets/images/usflag.png +0 -0
- package/src-aya/assets/images/visa.png +0 -0
- package/src-aya/assets/images/whatsapp.png +0 -0
- package/src-aya/button.jsx +0 -40
- package/src-aya/index.jsx +0 -222
- package/src-aya/styles/Home.module.css +0 -129
- package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
- package/src-aya/styles/cards/Productcard6.module.css +0 -9
- package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/src-aya/styles/cards/categorycard.module.css +0 -85
- package/src-aya/styles/cards/categorycard3.module.css +0 -50
- package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
- package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
- package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/src-aya/styles/general/bootstrap.css +0 -4562
- package/src-aya/styles/general/dropdown.css +0 -206
- package/src-aya/styles/general/editorbardropdown.module.css +0 -94
- package/src-aya/styles/general/filter.module.css +0 -108
- package/src-aya/styles/general/form.module.css +0 -273
- package/src-aya/styles/general/general.module.css +0 -861
- package/src-aya/styles/general/image-gallery.css +0 -481
- package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
- package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
- package/src-aya/styles/general/scrollbtn.module.css +0 -22
- package/src-aya/styles/general/slick.module.css +0 -166
- package/src-aya/styles/general/tabs.module.css +0 -110
- package/src-aya/styles/general/workplaceeditor.module.css +0 -328
- package/src-aya/styles/globals.css +0 -26
- package/src-aya/styles/headers/CTAHeader.module.css +0 -40
- package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/src-aya/styles/headers/Gotoheader.module.css +0 -91
- package/src-aya/styles/headers/Header7.module.css +0 -50
- package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
- package/src-aya/styles/headers/Sideheader.module.css +0 -108
- package/src-aya/styles/headers/classicheader.module.css +0 -16
- package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
- package/src-aya/styles/headers/dropdown.css +0 -0
- package/src-aya/styles/headers/header4.module.css +0 -175
- package/src-aya/styles/headers/header5.module.css +0 -30
- package/src-aya/styles/headers/header6.module.css +0 -102
- package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
- package/src-aya/styles/headers/headerresturant.module.css +0 -89
- package/src-aya/styles/headers/modernheader.module.css +0 -72
- package/src-aya/styles/headers/stylishheader.module.css +0 -24
- package/src-aya/styles/headers/subheader.module.css +0 -114
- package/src-aya/styles/headers/threetieredheader.module.css +0 -91
- package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
- package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
- package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/src-aya/styles/staticpages/accordion.module.css +0 -9
- package/src-aya/styles/staticpages/cart.module.css +0 -108
- package/src-aya/styles/staticpages/dropdown.css +0 -196
- package/src-aya/styles/staticpages/filter.module.css +0 -139
- package/src-aya/styles/staticpages/image-gallery.css +0 -481
- package/src-aya/styles/staticpages/login.module.css +0 -113
- package/src-aya/styles/staticpages/productinfo.module.css +0 -54
- package/src-aya/styles/staticpages/shop.module.css +0 -191
- package/src-aya/styles/staticpages/signup.module.css +0 -206
- package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/src-aya/styles/staticpages/viewcart.module.css +0 -129
- package/src-aya/styles/staticpages/wishlist.module.css +0 -29
- package/src-aya/styles.rar +0 -0
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import { css } from 'glamor';
|
|
3
|
-
import { serverbaselink } from '../../../../../Env';
|
|
4
|
-
|
|
5
|
-
const Backgroundimage_with_toppill = (props) => {
|
|
6
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
7
|
-
const [cardsarray, setcardsarray] = useState([]);
|
|
8
|
-
const lang = props.actions.lang;
|
|
9
|
-
const langdetect = props.actions.langdetect;
|
|
10
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11
|
-
const routingcountext = props.actions.routingcountext;
|
|
12
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
13
|
-
const sectionindexcontext = props.sectionindexcontext;
|
|
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
|
-
|
|
24
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
25
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
26
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
27
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
setsectionproperties({ ...secpropobj });
|
|
32
|
-
}
|
|
33
|
-
}, [StatePagePropertiesContext]);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (sectionproperties.length != 0) {
|
|
36
|
-
if (sectionproperties.bgsection_imagearrayofobjs != null) {
|
|
37
|
-
var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
|
|
38
|
-
if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
|
|
39
|
-
setcardsarray([...bgsection_imagearrayofobjsparsed]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, [sectionproperties]);
|
|
44
|
-
const sectionstyles = {
|
|
45
|
-
general_btn: css({
|
|
46
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
47
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
48
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
49
|
-
color: sectionproperties.generalbtn_textColor,
|
|
50
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
51
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
52
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
53
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
54
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
55
|
-
lineHeight: sectionproperties.generalbtn_fontsize + 'px',
|
|
56
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
57
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
58
|
-
marginLeft: sectionproperties.generalbtn_marginLeft + 'px',
|
|
59
|
-
marginRight: sectionproperties.generalbtn_marginRight + 'px',
|
|
60
|
-
marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
|
|
61
|
-
marginTop: sectionproperties.generalbtn_marginTop + 'px',
|
|
62
|
-
transition: '.3s',
|
|
63
|
-
':hover': {
|
|
64
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
65
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
66
|
-
},
|
|
67
|
-
}),
|
|
68
|
-
text1styles: css({
|
|
69
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
70
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
71
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
72
|
-
textTransform: sectionproperties.slideshowText1ContentTextTransform,
|
|
73
|
-
marginLeft: sectionproperties.slideshowText1Content_marginLeft + 'px',
|
|
74
|
-
marginRight: sectionproperties.slideshowText1Content_marginRight + 'px',
|
|
75
|
-
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
76
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
77
|
-
':after': {
|
|
78
|
-
display: 'block',
|
|
79
|
-
content: 's',
|
|
80
|
-
fontSize: '0',
|
|
81
|
-
width: sectionproperties.slideshowText1_lineafterwidth + '%',
|
|
82
|
-
height: '7px',
|
|
83
|
-
background: sectionproperties.slideshowText1_showlineafter == 'Show' ? sectionproperties.slideshowText1ContentColor : 'transparent',
|
|
84
|
-
position: 'absolute',
|
|
85
|
-
bottom: 0,
|
|
86
|
-
left: '10px',
|
|
87
|
-
margin: 'auto',
|
|
88
|
-
borderRadius: '10px',
|
|
89
|
-
},
|
|
90
|
-
}),
|
|
91
|
-
};
|
|
92
|
-
return (
|
|
93
|
-
<div class=" row w-100 m-0 d-flex align-items-center" style={{ position: 'relative' }}>
|
|
94
|
-
<div class="col-lg-5 d-none d-md-flex align-items-center justify-content-center mt-md-4">
|
|
95
|
-
<div
|
|
96
|
-
class={'d-flex d-sm-none align-items-center justify-content-center'}
|
|
97
|
-
style={{
|
|
98
|
-
position: 'relative',
|
|
99
|
-
background: sectionproperties.formRightbgColor,
|
|
100
|
-
borderRadius: '50%',
|
|
101
|
-
height: '35vh',
|
|
102
|
-
width: '35vh',
|
|
103
|
-
}}
|
|
104
|
-
>
|
|
105
|
-
<div
|
|
106
|
-
class={' d-flex justify-content-center align-items-center '}
|
|
107
|
-
style={{
|
|
108
|
-
width: '30vh',
|
|
109
|
-
height: '30vh',
|
|
110
|
-
}}
|
|
111
|
-
>
|
|
112
|
-
<img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
<div
|
|
116
|
-
class={'d-none d-sm-flex align-items-center justify-content-center'}
|
|
117
|
-
style={{
|
|
118
|
-
position: 'relative',
|
|
119
|
-
background: sectionproperties.formRightbgColor,
|
|
120
|
-
borderRadius: '50%',
|
|
121
|
-
height: '30vh',
|
|
122
|
-
width: '30vh',
|
|
123
|
-
}}
|
|
124
|
-
>
|
|
125
|
-
<div
|
|
126
|
-
class={' d-flex justify-content-center align-items-center '}
|
|
127
|
-
style={{
|
|
128
|
-
width: '25vh',
|
|
129
|
-
height: '25vh',
|
|
130
|
-
}}
|
|
131
|
-
>
|
|
132
|
-
<img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
<div class={' col-lg-7 col-md-12 d-none d-md-flex mt-3'}>
|
|
137
|
-
<div class="row m-0 w-100">
|
|
138
|
-
<div class="col-lg-12 d-flex align-items-center justify-content-center mb-3">
|
|
139
|
-
{sectionproperties.slideshowtext1_show == 'Show' && (
|
|
140
|
-
<p
|
|
141
|
-
class="m-0 wordbreak text-center"
|
|
142
|
-
style={{
|
|
143
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
144
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
145
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
146
|
-
textTransform: sectionproperties.slideshowText1ContentTextTransform,
|
|
147
|
-
}}
|
|
148
|
-
>
|
|
149
|
-
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
150
|
-
</p>
|
|
151
|
-
)}
|
|
152
|
-
</div>
|
|
153
|
-
<div class="col-lg-12 d-flex align-items-center justify-content-center mb-3">
|
|
154
|
-
{sectionproperties.slideshowtext2_show == 'Show' && (
|
|
155
|
-
<p
|
|
156
|
-
class="m-0 wordbreak text-center"
|
|
157
|
-
style={{
|
|
158
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
159
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
160
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
161
|
-
textTransform: sectionproperties.slideshowText2ContentTextTransform,
|
|
162
|
-
}}
|
|
163
|
-
>
|
|
164
|
-
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
|
|
165
|
-
</p>
|
|
166
|
-
)}
|
|
167
|
-
</div>
|
|
168
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
169
|
-
<div class="col-lg-12 d-flex align-items-center justify-content-center">
|
|
170
|
-
<button
|
|
171
|
-
class={`${sectionstyles.general_btn}`}
|
|
172
|
-
onClick={() => {
|
|
173
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
174
|
-
}}
|
|
175
|
-
>
|
|
176
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
177
|
-
</button>
|
|
178
|
-
</div>
|
|
179
|
-
)}
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
<div class={' col-lg-7 pl-5 d-flex d-md-none d-flex align-items-center pr-5'}>
|
|
183
|
-
<div class="row m-0 w-100 d-flex align-items-center">
|
|
184
|
-
{sectionproperties.slideshowtext1_show == 'Show' && (
|
|
185
|
-
<div
|
|
186
|
-
class="col-lg-12 p-0 d-flex justify-content-start"
|
|
187
|
-
style={{
|
|
188
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
189
|
-
}}
|
|
190
|
-
>
|
|
191
|
-
<p
|
|
192
|
-
class="m-0 wordbreak"
|
|
193
|
-
style={{
|
|
194
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
195
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
196
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
197
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
198
|
-
textTransform: sectionproperties.slideshowText1ContentTextTransform,
|
|
199
|
-
}}
|
|
200
|
-
>
|
|
201
|
-
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
202
|
-
</p>
|
|
203
|
-
</div>
|
|
204
|
-
)}
|
|
205
|
-
{sectionproperties.slideshowtext2_show == 'Show' && (
|
|
206
|
-
<div class="col-lg-12 p-0 mb-4 d-flex justify-content-start">
|
|
207
|
-
<p
|
|
208
|
-
className="m-0 wordbreak"
|
|
209
|
-
style={{
|
|
210
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
211
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
212
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
213
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
214
|
-
textTransform: sectionproperties.slideshowText2ContentTextTransform,
|
|
215
|
-
}}
|
|
216
|
-
>
|
|
217
|
-
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
|
|
218
|
-
</p>
|
|
219
|
-
</div>
|
|
220
|
-
)}
|
|
221
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
222
|
-
<div class="col-lg-12 p-0 mb-3 d-flex justify-content-start">
|
|
223
|
-
<button
|
|
224
|
-
class={`${sectionstyles.general_btn}`}
|
|
225
|
-
onClick={() => {
|
|
226
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
227
|
-
}}
|
|
228
|
-
>
|
|
229
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
230
|
-
</button>
|
|
231
|
-
</div>
|
|
232
|
-
)}
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
|
|
236
|
-
<div class="col-lg-5 d-flex d-md-none align-items-center justify-content-end">
|
|
237
|
-
<div
|
|
238
|
-
class={' d-none d-lg-block d-flex flex-row align-items-center justify-content-end'}
|
|
239
|
-
style={{
|
|
240
|
-
position: 'relative',
|
|
241
|
-
background: sectionproperties.formRightbgColor,
|
|
242
|
-
borderTopRightRadius: sectionproperties.formRight_bordertoprightradius + 'px',
|
|
243
|
-
borderTopLeftRadius: sectionproperties.formRight_bordertopleftradius + 'px',
|
|
244
|
-
borderBottomRightRadius: sectionproperties.formRight_borderbottomrightadius + 'px',
|
|
245
|
-
borderBottomLeftRadius: sectionproperties.formRight_borderbottomleftadius + 'px',
|
|
246
|
-
height: sectionproperties.formRight_height + 'px',
|
|
247
|
-
width: sectionproperties.formRight_width + 'px',
|
|
248
|
-
}}
|
|
249
|
-
>
|
|
250
|
-
<div class={' row w-100 m-0 d-flex flex-row align-items-center '}>
|
|
251
|
-
<div
|
|
252
|
-
class={' d-flex justify-content-center align-items-center '}
|
|
253
|
-
style={{
|
|
254
|
-
position: 'absolute',
|
|
255
|
-
top: sectionproperties.image_topposition + 'px',
|
|
256
|
-
left: 0,
|
|
257
|
-
right: 0,
|
|
258
|
-
margin: 'auto',
|
|
259
|
-
width: sectionproperties.image_Width + 'px',
|
|
260
|
-
height: sectionproperties.image_height + 'px',
|
|
261
|
-
}}
|
|
262
|
-
>
|
|
263
|
-
<img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
269
|
-
);
|
|
270
|
-
};
|
|
271
|
-
export default Backgroundimage_with_toppill;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import { css } from 'glamor';
|
|
3
|
-
import { serverbaselink } from '../../../../../Env';
|
|
4
|
-
import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
|
|
5
|
-
const BackgroundimageandTextsection = (props) => {
|
|
6
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
7
|
-
const [imagesarray, setimagesarray] = useState([]);
|
|
8
|
-
const lang = props.actions.lang;
|
|
9
|
-
const langdetect = props.actions.langdetect;
|
|
10
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11
|
-
const routingcountext = props.actions.routingcountext;
|
|
12
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
13
|
-
const sectionindexcontext = props.sectionindexcontext;
|
|
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) {
|
|
35
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
36
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
37
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
38
|
-
setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, [sectionproperties]);
|
|
43
|
-
const sectionstyles = {
|
|
44
|
-
btnstyles: css({
|
|
45
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
46
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
47
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
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
|
-
color: sectionproperties.generalbtn_textColor,
|
|
54
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
55
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
56
|
-
':hover': {
|
|
57
|
-
transition: '.3s',
|
|
58
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
59
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
};
|
|
63
|
-
return (
|
|
64
|
-
<div
|
|
65
|
-
class="row ml-0 mr-0 w-100 pl-md-3 pr-md-3 pt-md-5"
|
|
66
|
-
style={{
|
|
67
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
68
|
-
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
69
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
70
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
71
|
-
background: sectionproperties.backgroundColor,
|
|
72
|
-
}}
|
|
73
|
-
>
|
|
74
|
-
<div class="col-lg-6 d-flex align-items-center mb-md-3 pt-md-5 pb-md-5">
|
|
75
|
-
<div class="row m-0 w-100 d-flex align-items-center pt-md-5 pb-md-1">
|
|
76
|
-
<div class="col-lg-12 d-flex justify-content-md-center">
|
|
77
|
-
<p
|
|
78
|
-
class="p-0 wordbreak text-md-center"
|
|
79
|
-
style={{
|
|
80
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
81
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
82
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
83
|
-
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
84
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
{langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
|
|
88
|
-
</p>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-lg-12 d-flex justify-content-md-center">
|
|
91
|
-
<p
|
|
92
|
-
class="p-0 wordbreak text-md-center"
|
|
93
|
-
style={{
|
|
94
|
-
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
95
|
-
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
96
|
-
color: sectionproperties.slideshowText2ContentColor,
|
|
97
|
-
marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
|
|
98
|
-
}}
|
|
99
|
-
>
|
|
100
|
-
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
|
|
101
|
-
</p>
|
|
102
|
-
</div>
|
|
103
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
104
|
-
<div class="col-lg-12 d-flex justify-content-md-center">
|
|
105
|
-
<button
|
|
106
|
-
class={sectionstyles.btnstyles + ' allcentered '}
|
|
107
|
-
onClick={() => {
|
|
108
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
109
|
-
}}
|
|
110
|
-
>
|
|
111
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
112
|
-
</button>
|
|
113
|
-
</div>
|
|
114
|
-
)}
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div
|
|
118
|
-
class="col-lg-6 p-0 d-flex h-sm-50"
|
|
119
|
-
style={{
|
|
120
|
-
backgroundColor: sectionproperties.image_bgcolor,
|
|
121
|
-
backgroundImage: imagesarray.length != 0 ? 'url(' + serverbaselink + imagesarray[0].bgsection_image + ')' : '',
|
|
122
|
-
backgroundSize: sectionproperties.bgcovercontain,
|
|
123
|
-
width: '100%',
|
|
124
|
-
height: sectionproperties.image_height + 'vh',
|
|
125
|
-
}}
|
|
126
|
-
></div>
|
|
127
|
-
</div>
|
|
128
|
-
);
|
|
129
|
-
};
|
|
130
|
-
export default BackgroundimageandTextsection;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { css } from 'glamor';
|
|
3
|
-
import { BsSearch } from 'react-icons/bs';
|
|
4
|
-
import Searchlist from '../../../StaticPages/Searchlist/Searchlist.jsx';
|
|
5
|
-
import { IKImage } from 'imagekitio-react';
|
|
6
|
-
import { IKpublicKey, IKurlEndpoint, serverbaselink } from '../../../../../Env';
|
|
7
|
-
|
|
8
|
-
const Bgimagewithsearchbar = (props) => {
|
|
9
|
-
const lang = props.actions.lang;
|
|
10
|
-
const langdetect = props.actions.langdetect;
|
|
11
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
12
|
-
const SearchHeaderMutationContext = props.actions.fetchcustomercartQueryContext;
|
|
13
|
-
const actions = props.actions;
|
|
14
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
15
|
-
const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
|
|
16
|
-
const [searchinput, setsearchinput] = useState('');
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
// SearchHeaderMutationContext.reset();
|
|
19
|
-
const delayDebounceFn = setTimeout(() => {
|
|
20
|
-
if (searchinput.length != 0) {
|
|
21
|
-
SearchHeaderMutationContext.mutate({
|
|
22
|
-
SearchHeaderValue: searchinput,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}, 1000);
|
|
26
|
-
|
|
27
|
-
return () => clearTimeout(delayDebounceFn);
|
|
28
|
-
}, [searchinput]);
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (props.srcfrom == 'addsectionform') {
|
|
31
|
-
var secpropobj = {};
|
|
32
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
33
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
34
|
-
});
|
|
35
|
-
setsectionproperties({ ...secpropobj });
|
|
36
|
-
} else {
|
|
37
|
-
var secpropobj = {};
|
|
38
|
-
|
|
39
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
40
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
41
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
42
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
setsectionproperties({ ...secpropobj });
|
|
47
|
-
}
|
|
48
|
-
}, [StatePagePropertiesContext]);
|
|
49
|
-
useEffect(() => {
|
|
50
|
-
if (sectionproperties.length != 0 && sectionproperties.arrayofobjectimagesonly != undefined) {
|
|
51
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
52
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
53
|
-
setbgimagearrayofobjs([...arrayofobjectimagesonlyparsed]);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}, [sectionproperties]);
|
|
57
|
-
const bgcssstyles = {
|
|
58
|
-
sectiontitle: css({
|
|
59
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
60
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
61
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
62
|
-
textTransform: sectionproperties.slideshowText1ContentTextTransform,
|
|
63
|
-
textAlign: 'start',
|
|
64
|
-
}),
|
|
65
|
-
searchbarcont: css({
|
|
66
|
-
position: 'relative',
|
|
67
|
-
transition: '.3s',
|
|
68
|
-
height: sectionproperties.searchbarcont_height + 'px',
|
|
69
|
-
background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
|
|
70
|
-
width: sectionproperties.searchbarcont_width + 'px',
|
|
71
|
-
borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
|
|
72
|
-
border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
|
|
73
|
-
}),
|
|
74
|
-
searchbar_icon_cont: css({
|
|
75
|
-
width: sectionproperties.searchbaricon_width + 'px',
|
|
76
|
-
height: sectionproperties.searchbaricon_height + 'px',
|
|
77
|
-
borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
|
|
78
|
-
color: sectionproperties.searchbaricon_color,
|
|
79
|
-
backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
|
|
80
|
-
transition: '0.3s ease',
|
|
81
|
-
position: 'absolute',
|
|
82
|
-
right: langdetect == 'en' ? 0 : '',
|
|
83
|
-
left: langdetect == 'en' ? '' : 0,
|
|
84
|
-
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
|
|
85
|
-
bottom: 0,
|
|
86
|
-
top: 0,
|
|
87
|
-
margin: 'auto',
|
|
88
|
-
}),
|
|
89
|
-
searchbarcont_input: css({
|
|
90
|
-
height: '100%',
|
|
91
|
-
width: '100%',
|
|
92
|
-
outline: 'none',
|
|
93
|
-
background: 'transparent',
|
|
94
|
-
color: sectionproperties.searchbarcontinput_color,
|
|
95
|
-
fontWeight: sectionproperties.searchbarcont_inputfontweight,
|
|
96
|
-
fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
|
|
97
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
|
|
98
|
-
paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
|
|
99
|
-
transition: '0.3s',
|
|
100
|
-
':focus': {
|
|
101
|
-
borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
|
|
102
|
-
},
|
|
103
|
-
}),
|
|
104
|
-
imgcontainer: css({
|
|
105
|
-
position: 'relative',
|
|
106
|
-
height: sectionproperties.image_height + 'px',
|
|
107
|
-
':after': {
|
|
108
|
-
position: 'absolute',
|
|
109
|
-
content: 's',
|
|
110
|
-
width: '100%',
|
|
111
|
-
height: '100%',
|
|
112
|
-
fontSize: 0,
|
|
113
|
-
top: 0,
|
|
114
|
-
bottom: 0,
|
|
115
|
-
left: 0,
|
|
116
|
-
right: 0,
|
|
117
|
-
zIndex: 1,
|
|
118
|
-
backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
|
|
119
|
-
},
|
|
120
|
-
}),
|
|
121
|
-
};
|
|
122
|
-
return (
|
|
123
|
-
<div class="row m-0 w-100">
|
|
124
|
-
<div
|
|
125
|
-
class="col-lg-12"
|
|
126
|
-
style={{
|
|
127
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
128
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
129
|
-
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
130
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
131
|
-
backgroundColor: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
132
|
-
}}
|
|
133
|
-
>
|
|
134
|
-
<div class={bgcssstyles.imgcontainer + ' allcentered '}>
|
|
135
|
-
<IKImage
|
|
136
|
-
urlEndpoint={IKurlEndpoint}
|
|
137
|
-
publicKey={IKpublicKey}
|
|
138
|
-
path={bgimagearrayofobjs.length != 0 ? (langdetect == 'en' ? bgimagearrayofobjs[0]?.bgsection_image : bgimagearrayofobjs[0]?.bgsection_image_ar) : ''}
|
|
139
|
-
style={{
|
|
140
|
-
width: '100%',
|
|
141
|
-
height: '100%',
|
|
142
|
-
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'Contain',
|
|
143
|
-
}}
|
|
144
|
-
class="d-sm-none"
|
|
145
|
-
/>
|
|
146
|
-
<IKImage
|
|
147
|
-
urlEndpoint={IKurlEndpoint}
|
|
148
|
-
publicKey={IKpublicKey}
|
|
149
|
-
path={bgimagearrayofobjs.length != 0 ? (langdetect == 'en' ? bgimagearrayofobjs[0]?.bgsection_imageresponsive : bgimagearrayofobjs[0]?.bgsection_imageresponsive_ar) : ''}
|
|
150
|
-
style={{
|
|
151
|
-
maxWidth: '100%',
|
|
152
|
-
maxHeight: '100%',
|
|
153
|
-
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'Contain',
|
|
154
|
-
}}
|
|
155
|
-
class="d-none d-md-none d-sm-flex"
|
|
156
|
-
/>
|
|
157
|
-
<div
|
|
158
|
-
class="w-100"
|
|
159
|
-
style={{
|
|
160
|
-
position: 'absolute',
|
|
161
|
-
left: 0,
|
|
162
|
-
paddingLeft: langdetect == 'en' ? '5%' : '',
|
|
163
|
-
paddingRight: langdetect == 'en' ? '' : ' 5%',
|
|
164
|
-
zIndex: 2,
|
|
165
|
-
}}
|
|
166
|
-
>
|
|
167
|
-
<div style={{ width: '100%', height: '100%' }}>
|
|
168
|
-
<div class="row m-0 w-100 h-100 d-flex align-items-center">
|
|
169
|
-
<div
|
|
170
|
-
class={bgcssstyles.sectiontitle + ' col-lg-12 col-md-12 p-0 mb-3 wordbreak d-flex justify-content-start '}
|
|
171
|
-
dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.text1editortexten : sectionproperties.text1editortextar }}
|
|
172
|
-
style={{
|
|
173
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
174
|
-
}}
|
|
175
|
-
></div>
|
|
176
|
-
<div class="col-lg-12 p-0">
|
|
177
|
-
<div class={bgcssstyles.searchbarcont + ' p-0 col-sm-8 col-md-5 m-0 '} style={{ position: 'relative', width: sectionproperties.searchbarcont_width + 'vh' }}>
|
|
178
|
-
<input
|
|
179
|
-
type="text"
|
|
180
|
-
placeholder={lang.searchproducts}
|
|
181
|
-
class={`${bgcssstyles.searchbarcont_input}`}
|
|
182
|
-
onChange={(event) => {
|
|
183
|
-
setsearchinput(event.target.value);
|
|
184
|
-
}}
|
|
185
|
-
/>
|
|
186
|
-
<button class={` ${bgcssstyles.searchbar_icon_cont}` + ' h-100 d-flex align-items-center justify-content-center m-0 p-0 '}>
|
|
187
|
-
<BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
|
|
188
|
-
</button>
|
|
189
|
-
<Searchlist sectionpropertiesprops={sectionproperties} srcfromprops="cardssection" searchinputprops={searchinput} actions={actions} />
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
);
|
|
199
|
-
};
|
|
200
|
-
export default Bgimagewithsearchbar;
|