tabexseriescomponents 0.0.225 → 0.0.227
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 +118 -90
- package/dist/index.esm.js +118 -90
- package/dist/index.umd.js +118 -90
- package/package.json +1 -1
- package/srcold/Contexts/LanguageContext.jsx +0 -390
- package/srcold/Contexts/ProductsCardsSectionContext.jsx +0 -34
- package/srcold/StylesJS/Customstyles.js +0 -236
- package/srcold/TabexComponents/Cards/Card20/Card20.jsx +0 -282
- package/srcold/TabexComponents/Cards/Card21/Card21.jsx +0 -388
- package/srcold/TabexComponents/Cards/Card22/Card22.jsx +0 -287
- package/srcold/TabexComponents/Cards/Card23/Card23.jsx +0 -403
- package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -395
- package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
- package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
- package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -220
- package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -230
- package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -198
- package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -170
- package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -181
- package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
- package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -180
- package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -487
- package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -123
- package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -192
- package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -270
- package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -543
- package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -467
- package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
- package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -445
- package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
- package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -256
- package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -278
- package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -443
- package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -275
- package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -301
- package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -419
- package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -524
- package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
- package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -136
- package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -179
- package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -291
- package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -339
- package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -338
- package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -515
- package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -184
- package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -475
- package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +0 -448
- package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +0 -383
- package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +0 -394
- package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +0 -699
- package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +0 -523
- package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +0 -301
- package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +0 -415
- package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +0 -454
- package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -329
- package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -274
- 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/CTAHeader/CTAHeader.jsx +0 -880
- package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -870
- package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -688
- package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -720
- package/srcold/TabexComponents/Headers/Header4/Header4.jsx +0 -621
- package/srcold/TabexComponents/Headers/Header8/Header8.jsx +0 -824
- package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -730
- package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -762
- package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -706
- package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -900
- package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -841
- package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -988
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +0 -1081
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -988
- package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -917
- package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -693
- package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -952
- package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -636
- package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -853
- package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -373
- package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +0 -515
- package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +0 -190
- package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -483
- package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1005
- package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1020
- package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +0 -843
- package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -448
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -301
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -174
- package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
- package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -263
- package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -143
- package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -248
- package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -394
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -406
- package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -246
- package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -1220
- package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -480
- package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -718
- package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
- package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -652
- package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -635
- package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -495
- package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
- package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -250
- package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
- package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -256
- package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -329
- package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -266
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -371
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
- package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -374
- package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -339
- package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -303
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -224
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -147
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -324
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -525
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -569
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -475
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -369
- package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -392
- package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -213
- package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -467
- package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -181
- package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1280
- package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1392
- package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +0 -1399
- package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +0 -1132
- package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -60
- package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
- package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcold/TabexComponents/StaticPages/Login/Login.jsx +0 -469
- package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -143
- package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1329
- package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +0 -306
- package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -1334
- package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -715
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +0 -361
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -361
- package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -501
- package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
- package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -227
- package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -832
- package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +0 -154
- package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -280
- package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -671
- package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -538
- package/srcold/assets/images/appstore.png +0 -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/googleplay.png +0 -0
- package/srcold/assets/images/ksa.png +0 -0
- package/srcold/assets/images/mastercard.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 -283
- 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/ModernCardWithQuantityButton.module.css +0 -30
- package/srcold/styles/cards/Productcard6.module.css +0 -9
- 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/UserCardWithSocialMediaOnHover.module.css +0 -65
- package/srcold/styles/cards/categorycard.module.css +0 -85
- package/srcold/styles/cards/categorycard3.module.css +0 -50
- package/srcold/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcold/styles/cards/productcard_animatedbuttons.module.css +0 -130
- package/srcold/styles/cards/productcard_with_textonhover.module.css +0 -18
- package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcold/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcold/styles/general/bootstrap.css +0 -4727
- package/srcold/styles/general/dropdown.css +0 -206
- 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 -872
- package/srcold/styles/general/image-gallery.css +0 -531
- 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 -119
- package/srcold/styles/general/workplaceeditor.module.css +0 -328
- package/srcold/styles/globals.css +0 -26
- package/srcold/styles/headers/CTAHeader.module.css +0 -40
- package/srcold/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/srcold/styles/headers/Gotoheader.module.css +0 -81
- package/srcold/styles/headers/Header7.module.css +0 -50
- package/srcold/styles/headers/HeaderWithAdSlider.module.css +0 -86
- package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
- package/srcold/styles/headers/HeaderWithUtilityBar.module.css +0 -46
- package/srcold/styles/headers/Header_threesectionslogocentered.module.css +0 -84
- package/srcold/styles/headers/NewHeader.module.css +0 -101
- package/srcold/styles/headers/SearchFocusedHeader.module.css +0 -62
- package/srcold/styles/headers/Sideheader.module.css +0 -108
- package/srcold/styles/headers/Simpleheader.module.css +0 -102
- package/srcold/styles/headers/classicheader.module.css +0 -16
- package/srcold/styles/headers/classicheaderstyles.module.css +0 -9
- 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/header_contactinfo.module.css +0 -53
- package/srcold/styles/headers/headerresturant.module.css +0 -89
- package/srcold/styles/headers/modernheader.module.css +0 -72
- package/srcold/styles/headers/stylishheader.module.css +0 -24
- package/srcold/styles/headers/subheader.module.css +0 -114
- package/srcold/styles/headers/threetieredheader.module.css +0 -91
- package/srcold/styles/sections/BackgroundImageWithTopContent.css +0 -4
- 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/image-gallery.css +0 -481
- package/srcold/styles/staticpages/login.module.css +0 -113
- 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,346 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import { css } from 'glamor';
|
|
3
|
-
import { IKImage } from 'imagekitio-react';
|
|
4
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
5
|
-
|
|
6
|
-
const BackgroundFiveImageStructure = (props) => {
|
|
7
|
-
const lang = props.actions.lang;
|
|
8
|
-
const langdetect = props.actions.langdetect;
|
|
9
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
10
|
-
const routingcountext = props.actions.routingcountext;
|
|
11
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
12
|
-
const sectionindexcontext = props.sectionindexcontext;
|
|
13
|
-
|
|
14
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
15
|
-
const [imagesarray, setimagesarray] = useState([]);
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (props.srcfrom == 'addsectionform') {
|
|
19
|
-
var secpropobj = {};
|
|
20
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
21
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
22
|
-
});
|
|
23
|
-
setsectionproperties({ ...secpropobj });
|
|
24
|
-
} else {
|
|
25
|
-
var secpropobj = {};
|
|
26
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
27
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
28
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
29
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
setsectionproperties({ ...secpropobj });
|
|
34
|
-
}
|
|
35
|
-
}, [StatePagePropertiesContext]);
|
|
36
|
-
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (sectionproperties.length != 0) {
|
|
39
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
40
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
41
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
42
|
-
setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, [sectionproperties]);
|
|
47
|
-
|
|
48
|
-
const sectionstyles = {
|
|
49
|
-
imageBackground: css({
|
|
50
|
-
':before': {
|
|
51
|
-
content: ' ',
|
|
52
|
-
position: 'absolute',
|
|
53
|
-
width: '100%',
|
|
54
|
-
height: '100%',
|
|
55
|
-
backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
|
|
56
|
-
zIndex: 1,
|
|
57
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
58
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
59
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
60
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
61
|
-
},
|
|
62
|
-
}),
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<div
|
|
67
|
-
class="w-100 pl-sm-2 pr-sm-2 px-2015-2"
|
|
68
|
-
style={{
|
|
69
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
70
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
71
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
72
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
73
|
-
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
74
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
75
|
-
background: sectionproperties.backgroundColor,
|
|
76
|
-
}}
|
|
77
|
-
>
|
|
78
|
-
<div
|
|
79
|
-
class="row m-0 w-100 align-items-center justify-content-center"
|
|
80
|
-
style={{
|
|
81
|
-
height: sectionproperties.image_height + 'vh',
|
|
82
|
-
}}
|
|
83
|
-
>
|
|
84
|
-
<div class="col-lg-3 col-md-12 col-sm-12 p-0 mb-md-3 mb-sm-3">
|
|
85
|
-
<div class="row m-0 w-100">
|
|
86
|
-
<div class="col-lg-12 col-md-6 col-sm-6 p-0 mb-xl-3 mb-lg-3 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1">
|
|
87
|
-
<div
|
|
88
|
-
class={`${sectionstyles.imageBackground}` + ' row m-0 w-100 h-sm-auto '}
|
|
89
|
-
style={{
|
|
90
|
-
height: '215px',
|
|
91
|
-
position: 'relative',
|
|
92
|
-
cursor: imagesarray[0]?.IsClickable == 'Yes' ? 'pointer' : 'default',
|
|
93
|
-
}}
|
|
94
|
-
onClick={() => {
|
|
95
|
-
if (imagesarray[0]?.IsClickable == 'Yes') {
|
|
96
|
-
if (imagesarray[0]?.clickable_page_route && imagesarray[0]?.clickable_page_route.length != 0) {
|
|
97
|
-
routingcountext(imagesarray[0].clickable_page_route, false, '');
|
|
98
|
-
} else {
|
|
99
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[0].Clickable_Reference_Collection_ID);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}}
|
|
103
|
-
>
|
|
104
|
-
<IKImage
|
|
105
|
-
urlEndpoint={IKurlEndpoint}
|
|
106
|
-
publicKey={IKpublicKey}
|
|
107
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[0].bgsection_image : imagesarray[0].bgsection_image_ar) : ''}
|
|
108
|
-
class={' d-flex d-sm-none'}
|
|
109
|
-
style={{
|
|
110
|
-
height: '100%',
|
|
111
|
-
width: '100%',
|
|
112
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
113
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
114
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
115
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
116
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
117
|
-
}}
|
|
118
|
-
/>
|
|
119
|
-
<IKImage
|
|
120
|
-
urlEndpoint={IKurlEndpoint}
|
|
121
|
-
publicKey={IKpublicKey}
|
|
122
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[0].bgsection_imageresponsive : imagesarray[0].bgsection_imageresponsive_ar) : ''}
|
|
123
|
-
class="d-none d-sm-flex"
|
|
124
|
-
style={{
|
|
125
|
-
height: '100%',
|
|
126
|
-
width: '100%',
|
|
127
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
128
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
129
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
130
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
131
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
132
|
-
}}
|
|
133
|
-
/>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
<div class="col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1">
|
|
137
|
-
<div
|
|
138
|
-
class={`${sectionstyles.imageBackground}` + ' row m-0 w-100 h-sm-auto '}
|
|
139
|
-
style={{
|
|
140
|
-
height: '215px',
|
|
141
|
-
position: 'relative',
|
|
142
|
-
cursor: imagesarray[1]?.IsClickable == 'Yes' ? 'pointer' : 'default',
|
|
143
|
-
}}
|
|
144
|
-
onClick={() => {
|
|
145
|
-
if (imagesarray[1]?.IsClickable == 'Yes') {
|
|
146
|
-
if (imagesarray[1]?.clickable_page_route && imagesarray[1]?.clickable_page_route.length != 0) {
|
|
147
|
-
routingcountext(imagesarray[1].clickable_page_route, false, '');
|
|
148
|
-
} else {
|
|
149
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[1].Clickable_Reference_Collection_ID);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}}
|
|
153
|
-
>
|
|
154
|
-
<IKImage
|
|
155
|
-
urlEndpoint={IKurlEndpoint}
|
|
156
|
-
publicKey={IKpublicKey}
|
|
157
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[1].bgsection_image : imagesarray[1].bgsection_image_ar) : ''}
|
|
158
|
-
class={' d-flex d-sm-none'}
|
|
159
|
-
style={{
|
|
160
|
-
height: '100%',
|
|
161
|
-
width: '100%',
|
|
162
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
163
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
164
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
165
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
166
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
167
|
-
}}
|
|
168
|
-
/>
|
|
169
|
-
<IKImage
|
|
170
|
-
urlEndpoint={IKurlEndpoint}
|
|
171
|
-
publicKey={IKpublicKey}
|
|
172
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[1].bgsection_imageresponsive : imagesarray[1].bgsection_imageresponsive_ar) : ''}
|
|
173
|
-
class="d-none d-sm-flex"
|
|
174
|
-
style={{
|
|
175
|
-
height: '100%',
|
|
176
|
-
width: '100%',
|
|
177
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
178
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
179
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
180
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
181
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
182
|
-
}}
|
|
183
|
-
/>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
</div>
|
|
188
|
-
<div class="col-lg-6 col-md-12 col-sm-12 p-0 pl-xl-3 pr-xl-3 pl-lg-3 pr-lg-3 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1 mb-md-3 mb-sm-3 h-100">
|
|
189
|
-
<div
|
|
190
|
-
class={`${sectionstyles.imageBackground}` + ' row m-0 w-100 h-sm-auto '}
|
|
191
|
-
style={{
|
|
192
|
-
height: '450px',
|
|
193
|
-
position: 'relative',
|
|
194
|
-
cursor: imagesarray[2]?.IsClickable == 'Yes' ? 'pointer' : 'default',
|
|
195
|
-
}}
|
|
196
|
-
onClick={() => {
|
|
197
|
-
if (imagesarray[2]?.IsClickable == 'Yes') {
|
|
198
|
-
if (imagesarray[2]?.clickable_page_route && imagesarray[2]?.clickable_page_route.length != 0) {
|
|
199
|
-
routingcountext(imagesarray[2].clickable_page_route, false, '');
|
|
200
|
-
} else {
|
|
201
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[2].Clickable_Reference_Collection_ID);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}}
|
|
205
|
-
>
|
|
206
|
-
<IKImage
|
|
207
|
-
urlEndpoint={IKurlEndpoint}
|
|
208
|
-
publicKey={IKpublicKey}
|
|
209
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[2].bgsection_image : imagesarray[2].bgsection_image_ar) : ''}
|
|
210
|
-
class={' d-flex d-sm-none'}
|
|
211
|
-
style={{
|
|
212
|
-
height: '100%',
|
|
213
|
-
width: '100%',
|
|
214
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
215
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
216
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
217
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
218
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
219
|
-
}}
|
|
220
|
-
/>
|
|
221
|
-
<IKImage
|
|
222
|
-
urlEndpoint={IKurlEndpoint}
|
|
223
|
-
publicKey={IKpublicKey}
|
|
224
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[2].bgsection_imageresponsive : imagesarray[2].bgsection_imageresponsive_ar) : ''}
|
|
225
|
-
class="d-none d-sm-flex"
|
|
226
|
-
style={{
|
|
227
|
-
height: '100%',
|
|
228
|
-
width: '100%',
|
|
229
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
230
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
231
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
232
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
233
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
234
|
-
}}
|
|
235
|
-
/>
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
<div class="col-lg-3 col-md-12 col-sm-12 p-0">
|
|
239
|
-
<div class="row m-0 w-100">
|
|
240
|
-
<div class="col-lg-12 col-md-6 col-sm-6 p-0 mb-xl-3 mb-lg-3 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1">
|
|
241
|
-
<div
|
|
242
|
-
class={`${sectionstyles.imageBackground}` + ' row m-0 w-100 h-sm-auto '}
|
|
243
|
-
style={{
|
|
244
|
-
height: '215px',
|
|
245
|
-
position: 'relative',
|
|
246
|
-
cursor: imagesarray[3]?.IsClickable == 'Yes' ? 'pointer' : 'default',
|
|
247
|
-
}}
|
|
248
|
-
onClick={() => {
|
|
249
|
-
if (imagesarray[3]?.IsClickable == 'Yes') {
|
|
250
|
-
if (imagesarray[3]?.clickable_page_route && imagesarray[3]?.clickable_page_route.length != 0) {
|
|
251
|
-
routingcountext(imagesarray[3].clickable_page_route, false, '');
|
|
252
|
-
} else {
|
|
253
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[3].Clickable_Reference_Collection_ID);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}}
|
|
257
|
-
>
|
|
258
|
-
<IKImage
|
|
259
|
-
urlEndpoint={IKurlEndpoint}
|
|
260
|
-
publicKey={IKpublicKey}
|
|
261
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[3].bgsection_image : imagesarray[3].bgsection_image_ar) : ''}
|
|
262
|
-
class={' d-flex d-sm-none'}
|
|
263
|
-
style={{
|
|
264
|
-
height: '100%',
|
|
265
|
-
width: '100%',
|
|
266
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
267
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
268
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
269
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
270
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
271
|
-
}}
|
|
272
|
-
/>
|
|
273
|
-
<IKImage
|
|
274
|
-
urlEndpoint={IKurlEndpoint}
|
|
275
|
-
publicKey={IKpublicKey}
|
|
276
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[3].bgsection_imageresponsive : imagesarray[3].bgsection_imageresponsive_ar) : ''}
|
|
277
|
-
class="d-none d-sm-flex"
|
|
278
|
-
style={{
|
|
279
|
-
height: '100%',
|
|
280
|
-
width: '100%',
|
|
281
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
282
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
283
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
284
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
285
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
286
|
-
}}
|
|
287
|
-
/>
|
|
288
|
-
</div>
|
|
289
|
-
</div>
|
|
290
|
-
<div class="col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1">
|
|
291
|
-
<div
|
|
292
|
-
class={`${sectionstyles.imageBackground}` + ' row m-0 w-100 h-sm-auto '}
|
|
293
|
-
style={{
|
|
294
|
-
height: '215px',
|
|
295
|
-
position: 'relative',
|
|
296
|
-
cursor: imagesarray[4]?.IsClickable == 'Yes' ? 'pointer' : 'default',
|
|
297
|
-
}}
|
|
298
|
-
onClick={() => {
|
|
299
|
-
if (imagesarray[4]?.IsClickable == 'Yes') {
|
|
300
|
-
if (imagesarray[4]?.clickable_page_route && imagesarray[4]?.clickable_page_route.length != 0) {
|
|
301
|
-
routingcountext(imagesarray[4].clickable_page_route, false, '');
|
|
302
|
-
} else {
|
|
303
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[4].Clickable_Reference_Collection_ID);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}}
|
|
307
|
-
>
|
|
308
|
-
<IKImage
|
|
309
|
-
urlEndpoint={IKurlEndpoint}
|
|
310
|
-
publicKey={IKpublicKey}
|
|
311
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[4].bgsection_image : imagesarray[4].bgsection_image_ar) : ''}
|
|
312
|
-
class={' d-flex d-sm-none'}
|
|
313
|
-
style={{
|
|
314
|
-
height: '100%',
|
|
315
|
-
width: '100%',
|
|
316
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
317
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
318
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
319
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
320
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
321
|
-
}}
|
|
322
|
-
/>
|
|
323
|
-
<IKImage
|
|
324
|
-
urlEndpoint={IKurlEndpoint}
|
|
325
|
-
publicKey={IKpublicKey}
|
|
326
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[4].bgsection_imageresponsive : imagesarray[4].bgsection_imageresponsive_ar) : ''}
|
|
327
|
-
class="d-none d-sm-flex"
|
|
328
|
-
style={{
|
|
329
|
-
height: '100%',
|
|
330
|
-
width: '100%',
|
|
331
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
332
|
-
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
333
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
334
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
335
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
336
|
-
}}
|
|
337
|
-
/>
|
|
338
|
-
</div>
|
|
339
|
-
</div>
|
|
340
|
-
</div>
|
|
341
|
-
</div>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
);
|
|
345
|
-
};
|
|
346
|
-
export default BackgroundFiveImageStructure;
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import { css } from 'glamor';
|
|
3
|
-
import '../../../../styles/sections/BackgroundImageWithTopContent.css';
|
|
4
|
-
import Select from 'react-select';
|
|
5
|
-
import { defaultstyles, defaultstylestranslated } from '../../../../StylesJS/Customstyles';
|
|
6
|
-
import { IKImage } from 'imagekitio-react';
|
|
7
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
8
|
-
|
|
9
|
-
const BackgroundImageWithTopContent = (props) => {
|
|
10
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
11
|
-
const [imagesarray, setimagesarray] = useState([]);
|
|
12
|
-
const lang = props.actions.lang;
|
|
13
|
-
const langdetect = props.actions.langdetect;
|
|
14
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
15
|
-
const routingcountext = props.actions.routingcountext;
|
|
16
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
17
|
-
const sectionindexcontext = props.sectionindexcontext;
|
|
18
|
-
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
if (props.srcfrom == 'addsectionform') {
|
|
21
|
-
var secpropobj = {};
|
|
22
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
23
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
24
|
-
});
|
|
25
|
-
setsectionproperties({ ...secpropobj });
|
|
26
|
-
} else {
|
|
27
|
-
var secpropobj = {};
|
|
28
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
29
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
30
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
31
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
setsectionproperties({ ...secpropobj });
|
|
36
|
-
}
|
|
37
|
-
}, [StatePagePropertiesContext]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (sectionproperties.length != 0) {
|
|
40
|
-
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
41
|
-
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
42
|
-
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
43
|
-
setimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [sectionproperties]);
|
|
48
|
-
|
|
49
|
-
const sectionstyles = {
|
|
50
|
-
btnstyles: css({
|
|
51
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
52
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
53
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
54
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
55
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
56
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
57
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
58
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
59
|
-
color: sectionproperties.generalbtn_textColor,
|
|
60
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
61
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
62
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
63
|
-
':hover': {
|
|
64
|
-
transition: '.3s',
|
|
65
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
66
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
67
|
-
},
|
|
68
|
-
}),
|
|
69
|
-
form_control: css({
|
|
70
|
-
backgroundImage: 'linear-gradient(to top, #eac435 2px, rgba(156, 39, 176, 0) 2px), linear-gradient(to top, #d2d2d2 1px, rgba(210, 210, 210, 0) 1px)',
|
|
71
|
-
}),
|
|
72
|
-
input_label_name: css({
|
|
73
|
-
color: sectionproperties.form_labelcolor,
|
|
74
|
-
textTransform: sectionproperties.form_labeltexttransform,
|
|
75
|
-
fontWeight: sectionproperties.form_labelfontweight,
|
|
76
|
-
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
dateInput: css({
|
|
80
|
-
display: 'inline-block',
|
|
81
|
-
outline: 'none',
|
|
82
|
-
background: 'none',
|
|
83
|
-
transition: 'width .4s cubic-bezier(0.000, 0.795, 0.000, 1.000)',
|
|
84
|
-
cursor: 'text',
|
|
85
|
-
Zindex: 2,
|
|
86
|
-
borderBottomStyle: 'solid',
|
|
87
|
-
borderBottomWidth: sectionproperties.inputfieldborderWidth + 'px',
|
|
88
|
-
borderBottomColor: sectionproperties.inputfieldborderColor,
|
|
89
|
-
width: '100%',
|
|
90
|
-
}),
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const countries = [
|
|
94
|
-
{ value: 'egypt', label: 'Egypt' },
|
|
95
|
-
{ value: 'algeria', label: 'Algeria' },
|
|
96
|
-
{ value: 'georgia', label: 'Georgia' },
|
|
97
|
-
];
|
|
98
|
-
|
|
99
|
-
const states = [
|
|
100
|
-
{ value: 'cairo', label: 'Cairo' },
|
|
101
|
-
{ vlaue: 'giza', label: 'Giza' },
|
|
102
|
-
{ vlaue: 'chlef', label: 'Chlef' },
|
|
103
|
-
{ vlaue: 'alabama', label: 'Alabama' },
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
return (
|
|
107
|
-
<div
|
|
108
|
-
class="allcentered h-sm-auto"
|
|
109
|
-
style={{
|
|
110
|
-
// background: `linearGradient(0deg, rgba(255, 0, 150, 0.3), rgba(255, 0, 150, 0.3))`,
|
|
111
|
-
// backgroundImage: imagesarray.length != 0 ? 'url(' + serverbaselink + imagesarray[0].bgsection_image + ')' : '',
|
|
112
|
-
backgroundSize: sectionproperties.bgcovercontain,
|
|
113
|
-
width: '100%',
|
|
114
|
-
height: sectionproperties.image_height + 'vh',
|
|
115
|
-
marginTop: sectionproperties.marginTop + 'px',
|
|
116
|
-
marginBottom: sectionproperties.marginBottom + 'px',
|
|
117
|
-
}}
|
|
118
|
-
>
|
|
119
|
-
<IKImage
|
|
120
|
-
urlEndpoint={IKurlEndpoint}
|
|
121
|
-
publicKey={IKpublicKey}
|
|
122
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[0].bgsection_image : imagesarray[0].bgsection_image_ar) : ''}
|
|
123
|
-
class="d-flex d-sm-none"
|
|
124
|
-
style={{
|
|
125
|
-
position: 'absolute',
|
|
126
|
-
top: 0,
|
|
127
|
-
bottom: 0,
|
|
128
|
-
right: 0,
|
|
129
|
-
left: 0,
|
|
130
|
-
width: '100%',
|
|
131
|
-
height: sectionproperties.image_height + 'vh',
|
|
132
|
-
objectFit: sectionproperties.bgcovercontain,
|
|
133
|
-
}}
|
|
134
|
-
/>
|
|
135
|
-
<IKImage
|
|
136
|
-
urlEndpoint={IKurlEndpoint}
|
|
137
|
-
publicKey={IKpublicKey}
|
|
138
|
-
path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[0].bgsection_imageresponsive : imagesarray[0].bgsection_imageresponsive_ar) : ''}
|
|
139
|
-
class="d-none d-sm-flex"
|
|
140
|
-
style={{
|
|
141
|
-
position: 'absolute',
|
|
142
|
-
top: 0,
|
|
143
|
-
bottom: 0,
|
|
144
|
-
right: 0,
|
|
145
|
-
left: 0,
|
|
146
|
-
width: '100%',
|
|
147
|
-
height: sectionproperties.image_height + 'vh',
|
|
148
|
-
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
149
|
-
}}
|
|
150
|
-
/>
|
|
151
|
-
<div class="row m-0 w-100 justify-content-center mt-sm-5 mb-sm-5">
|
|
152
|
-
{/* Text Section */}
|
|
153
|
-
<div class="col-lg-6 col-md-9 col-sm-9 p-0 mt-auto mb-auto text-align-start">
|
|
154
|
-
{sectionproperties.general_showtext == 'Show' && (
|
|
155
|
-
<div
|
|
156
|
-
class="wordbreak"
|
|
157
|
-
style={{
|
|
158
|
-
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
159
|
-
color: sectionproperties.generaltext_fontColor,
|
|
160
|
-
textTransform: sectionproperties.generaltext_textTransform,
|
|
161
|
-
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
162
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
163
|
-
}}
|
|
164
|
-
>
|
|
165
|
-
{langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar}
|
|
166
|
-
</div>
|
|
167
|
-
)}
|
|
168
|
-
{sectionproperties.sectiontitleshow == 'Show' && (
|
|
169
|
-
<div
|
|
170
|
-
class="wordbreak"
|
|
171
|
-
style={{
|
|
172
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
173
|
-
color: sectionproperties.sectionTitleColor,
|
|
174
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
175
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
176
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
177
|
-
}}
|
|
178
|
-
>
|
|
179
|
-
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
180
|
-
</div>
|
|
181
|
-
)}
|
|
182
|
-
{sectionproperties.prodCatShow == 'Show' && (
|
|
183
|
-
<div
|
|
184
|
-
style={{
|
|
185
|
-
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
186
|
-
color: sectionproperties.prodCatColor,
|
|
187
|
-
textTransform: sectionproperties.prodCatTextTranform,
|
|
188
|
-
fontWeight: sectionproperties.prodCatFontWeight,
|
|
189
|
-
maxWidth: '500px',
|
|
190
|
-
}}
|
|
191
|
-
>
|
|
192
|
-
{langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
|
|
193
|
-
</div>
|
|
194
|
-
)}
|
|
195
|
-
</div>
|
|
196
|
-
{/* Information Section */}
|
|
197
|
-
<div
|
|
198
|
-
class="col-lg-4 col-md-9 col-sm-9 mt-md-2 mt-sm-2"
|
|
199
|
-
style={{
|
|
200
|
-
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
201
|
-
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
202
|
-
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
203
|
-
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
204
|
-
paddingLeft: sectionproperties.reservation_padding_left + 'px',
|
|
205
|
-
paddingRight: sectionproperties.reservation_padding_right + 'px',
|
|
206
|
-
}}
|
|
207
|
-
>
|
|
208
|
-
{sectionproperties.formRightTextShow1 == 'Show' && (
|
|
209
|
-
<div
|
|
210
|
-
class={
|
|
211
|
-
sectionproperties.rightcontainertext1fontfamily == 'Pacifico'
|
|
212
|
-
? ' PacificoFont wordbreak '
|
|
213
|
-
: sectionproperties.rightcontainertext1fontfamily == 'Playfair'
|
|
214
|
-
? ' PlayfairFont wordbreak '
|
|
215
|
-
: sectionproperties.rightcontainertext1fontfamily == 'Great Vibes'
|
|
216
|
-
? ' GreatvibesFont wordbreak '
|
|
217
|
-
: sectionproperties.rightcontainertext1fontfamily == 'Quicksand'
|
|
218
|
-
? ' QuicksandFont wordbreak '
|
|
219
|
-
: ' wordbreak '
|
|
220
|
-
}
|
|
221
|
-
style={{
|
|
222
|
-
fontSize: sectionproperties.formRightTextFontSize1 + 'px',
|
|
223
|
-
color: sectionproperties.formRightTextColor1,
|
|
224
|
-
textTransform: sectionproperties.formRightTextTextTransform1,
|
|
225
|
-
fontWeight: sectionproperties.formRightTextFontWeight1,
|
|
226
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
227
|
-
//
|
|
228
|
-
}}
|
|
229
|
-
>
|
|
230
|
-
{langdetect == 'en' ? sectionproperties.formRightText1 : sectionproperties.formRightText1_ar}
|
|
231
|
-
</div>
|
|
232
|
-
)}
|
|
233
|
-
|
|
234
|
-
{sectionproperties.formRightTextShow2 == 'Show' && (
|
|
235
|
-
<div
|
|
236
|
-
class={
|
|
237
|
-
sectionproperties.rightcontainertext2fontfamily == 'Pacifico'
|
|
238
|
-
? ' PacificoFont wordbreak '
|
|
239
|
-
: sectionproperties.rightcontainertext2fontfamily == 'Playfair'
|
|
240
|
-
? ' PlayfairFont wordbreak '
|
|
241
|
-
: sectionproperties.rightcontainertext2fontfamily == 'Great Vibes'
|
|
242
|
-
? ' GreatvibesFont wordbreak '
|
|
243
|
-
: sectionproperties.rightcontainertext2fontfamily == 'Quicksand'
|
|
244
|
-
? ' QuicksandFont wordbreak '
|
|
245
|
-
: ' wordbreak '
|
|
246
|
-
}
|
|
247
|
-
style={{
|
|
248
|
-
fontSize: sectionproperties.formRightTextFontSize2 + 'px',
|
|
249
|
-
color: sectionproperties.formRightTextColor2,
|
|
250
|
-
textTransform: sectionproperties.formRightTextTextTransform2,
|
|
251
|
-
fontWeight: sectionproperties.formRightTextFontWeight2,
|
|
252
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
253
|
-
}}
|
|
254
|
-
>
|
|
255
|
-
{langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar}
|
|
256
|
-
</div>
|
|
257
|
-
)}
|
|
258
|
-
|
|
259
|
-
{/* Input Fields */}
|
|
260
|
-
<div class="row m-0 w-100 mt-2">
|
|
261
|
-
{/* Country */}
|
|
262
|
-
<div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
|
|
263
|
-
<label className={`${sectionstyles.input_label_name}` + ' m-0 '}>{lang.country}</label>
|
|
264
|
-
<Select options={countries} styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} />
|
|
265
|
-
</div>
|
|
266
|
-
{/* State */}
|
|
267
|
-
<div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
|
|
268
|
-
<label className={`${sectionstyles.input_label_name}` + ' m-0 '}>{langdetect == 'en' ? 'State' : 'الولاية'}</label>
|
|
269
|
-
<Select options={states} styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} />
|
|
270
|
-
</div>
|
|
271
|
-
{/* Check in */}
|
|
272
|
-
<div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
|
|
273
|
-
<label className={`${sectionstyles.input_label_name}` + ' m-0 '}>{langdetect == 'en' ? 'From' : 'من'}</label>
|
|
274
|
-
<div>
|
|
275
|
-
<input className={`${sectionstyles.dateInput}`} type="date" />
|
|
276
|
-
</div>
|
|
277
|
-
</div>
|
|
278
|
-
{/* Check out */}
|
|
279
|
-
<div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
|
|
280
|
-
<label className={`${sectionstyles.input_label_name}` + ' m-0 '}>{langdetect == 'en' ? 'To' : 'إلى'}</label>
|
|
281
|
-
<div>
|
|
282
|
-
<input className={`${sectionstyles.dateInput}`} type="date" />
|
|
283
|
-
</div>
|
|
284
|
-
</div>
|
|
285
|
-
</div>
|
|
286
|
-
|
|
287
|
-
{sectionproperties.generalbtn_show == 'Show' && (
|
|
288
|
-
<div class="row m-0 w-100 justify-content-center">
|
|
289
|
-
<button
|
|
290
|
-
class={sectionstyles.btnstyles + ' allcentered '}
|
|
291
|
-
// onClick={() => {
|
|
292
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
293
|
-
// }}
|
|
294
|
-
>
|
|
295
|
-
{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
|
|
296
|
-
</button>
|
|
297
|
-
</div>
|
|
298
|
-
)}
|
|
299
|
-
</div>
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
);
|
|
303
|
-
};
|
|
304
|
-
export default BackgroundImageWithTopContent;
|