tabexseriescomponents 0.0.64 → 0.0.66
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 +25023 -16634
- package/dist/index.esm.js +25033 -16645
- package/dist/index.umd.js +24824 -16437
- package/package.json +1 -1
- package/src1-10/Contexts/LanguageContext.jsx +347 -0
- package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
- package/src1-10/StylesJS/Customstyles.js +235 -0
- package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
- package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
- package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
- package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
- package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
- package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
- package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
- package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
- package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
- package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
- package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
- package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
- package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
- package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
- package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
- package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
- package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
- package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
- package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
- package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
- package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
- package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
- package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
- package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
- package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
- package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
- package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
- package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
- package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
- package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
- package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
- package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
- package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
- package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
- package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
- package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
- package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
- package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
- package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
- package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
- package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
- package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
- package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
- package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
- package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
- package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
- package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
- package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
- package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
- package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
- package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
- package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
- package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
- package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
- package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
- package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
- package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
- package/src1-10/assets/images/cod.png +0 -0
- package/src1-10/assets/images/egyptflag.png +0 -0
- package/src1-10/assets/images/fawry.png +0 -0
- package/src1-10/assets/images/payment.png +0 -0
- package/src1-10/assets/images/paymob.png +0 -0
- package/src1-10/assets/images/paypal.png +0 -0
- package/src1-10/assets/images/shoppingcart.png +0 -0
- package/src1-10/assets/images/usflag.png +0 -0
- package/src1-10/assets/images/visa.png +0 -0
- package/src1-10/assets/images/whatsapp.png +0 -0
- package/src1-10/button.jsx +40 -0
- package/src1-10/index.jsx +179 -0
- package/src1-10/styles/Home.module.css +129 -0
- package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/src1-10/styles/cards/Productcard6.module.css +9 -0
- package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
- package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/src1-10/styles/cards/categorycard.module.css +102 -0
- package/src1-10/styles/cards/categorycard3.module.css +51 -0
- package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
- package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
- package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
- package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/src1-10/styles/general/bootstrap.css +4415 -0
- package/src1-10/styles/general/dropdown.css +199 -0
- package/src1-10/styles/general/editorbardropdown.module.css +94 -0
- package/src1-10/styles/general/filter.module.css +108 -0
- package/src1-10/styles/general/form.module.css +273 -0
- package/src1-10/styles/general/general.module.css +861 -0
- package/src1-10/styles/general/image-gallery.css +481 -0
- package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
- package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
- package/src1-10/styles/general/scrollbtn.module.css +22 -0
- package/src1-10/styles/general/slick.module.css +166 -0
- package/src1-10/styles/general/tabs.module.css +110 -0
- package/src1-10/styles/general/workplaceeditor.module.css +328 -0
- package/src1-10/styles/globals.css +26 -0
- package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
- package/src1-10/styles/headers/Header7.module.css +50 -0
- package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
- package/src1-10/styles/headers/Sideheader.module.css +108 -0
- package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
- package/src1-10/styles/headers/dropdown.css +0 -0
- package/src1-10/styles/headers/header4.module.css +175 -0
- package/src1-10/styles/headers/header5.module.css +30 -0
- package/src1-10/styles/headers/header6.module.css +117 -0
- package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
- package/src1-10/styles/headers/headerresturant.module.css +89 -0
- package/src1-10/styles/headers/headerstyles.module.css +24 -0
- package/src1-10/styles/headers/modernheader.module.css +78 -0
- package/src1-10/styles/headers/subheader.module.css +114 -0
- package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
- package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/src1-10/styles/staticpages/accordion.module.css +9 -0
- package/src1-10/styles/staticpages/cart.module.css +108 -0
- package/src1-10/styles/staticpages/dropdown.css +196 -0
- package/src1-10/styles/staticpages/filter.module.css +139 -0
- package/src1-10/styles/staticpages/login.module.css +146 -0
- package/src1-10/styles/staticpages/productinfo.module.css +54 -0
- package/src1-10/styles/staticpages/shop.module.css +191 -0
- package/src1-10/styles/staticpages/signup.module.css +206 -0
- package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/src1-10/styles/staticpages/viewcart.module.css +129 -0
- package/src1-10/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import headerstyles from '../../../styles/headers/subheader.module.css';
|
|
3
|
+
import { css } from 'glamor';
|
|
4
|
+
import { MdOutlineLayersClear } from 'react-icons/md';
|
|
5
|
+
const Subheader = (props) => {
|
|
6
|
+
const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7
|
+
const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
8
|
+
const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
9
|
+
const routingcountext = props.actions.routingcountext;
|
|
10
|
+
const langdetect = props.actions.langdetect;
|
|
11
|
+
const lang = props.actions.lang;
|
|
12
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
13
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
14
|
+
const history = props.actions.history;
|
|
15
|
+
const [showdownheadermenu, setshowdownheadermenu] = useState(false);
|
|
16
|
+
const [Choosenindex, setChoosenindex] = useState('');
|
|
17
|
+
const [sectionproperties, setsectionproperties] = useState({});
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
20
|
+
tempFetchQueriesEngineContext.categories = true;
|
|
21
|
+
setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
22
|
+
}, []);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (props.sectionpropertiesprops != undefined) {
|
|
25
|
+
setsectionproperties({ ...props?.sectionpropertiesprops });
|
|
26
|
+
}
|
|
27
|
+
}, [props.sectionpropertiesprops]);
|
|
28
|
+
|
|
29
|
+
const header_cssstyles = {
|
|
30
|
+
parentcollection: css({
|
|
31
|
+
color: sectionproperties.subheader_collectiontitle_fontColor,
|
|
32
|
+
fontSize: sectionproperties.subheader_collectiontitle_fontSize + 'px',
|
|
33
|
+
textTransform: sectionproperties.subheader_collectiontitle_textTransform,
|
|
34
|
+
fontWeight: sectionproperties.subheader_collectiontitle_textfontweight,
|
|
35
|
+
transition: '.3s',
|
|
36
|
+
':hover': {
|
|
37
|
+
color: sectionproperties.subheader_collectiontitle_coloronhover,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
subheader_category: css({
|
|
41
|
+
// Title: Category Name Styles
|
|
42
|
+
color: sectionproperties.subheader_categorytitle_fontColor,
|
|
43
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize + 'px',
|
|
44
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
45
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight,
|
|
46
|
+
transition: '.3s',
|
|
47
|
+
':hover': {
|
|
48
|
+
color: sectionproperties.subheader_categorytitle_coloronhover,
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
subheader_collectiontitle: css({
|
|
52
|
+
color: sectionproperties.collectionsectiontextcolor,
|
|
53
|
+
fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
|
|
54
|
+
textTransform: sectionproperties.collectionsectiontexttransform,
|
|
55
|
+
fontWeight: sectionproperties.collectionsectiontextfontweight,
|
|
56
|
+
transition: '.3s',
|
|
57
|
+
':hover': {
|
|
58
|
+
color: sectionproperties.collectionsectiontextcoloronhover,
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
dropdownmenu: css({
|
|
62
|
+
// Title: Subheader Dropdown Styles
|
|
63
|
+
background: sectionproperties.subheader_dropdown_bgcolor,
|
|
64
|
+
border: sectionproperties.subheader_dropdown_borderWidth + 'px solid ' + sectionproperties.subheader_dropdown_borderColor,
|
|
65
|
+
borderRadius: sectionproperties.subheader_dropdown_borderRadius + 'px',
|
|
66
|
+
boxShadow: sectionproperties.subheader_dropdown_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.subheader_dropdown_shadowColor : '',
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
return (
|
|
70
|
+
<div
|
|
71
|
+
class={
|
|
72
|
+
props?.subheaderpropertiesprops?.subheaderpositionprops == 'in nav'
|
|
73
|
+
? `${headerstyles.sub_outercontainer}` + ' ml-0 mr-0 '
|
|
74
|
+
: `${headerstyles.sub_outercontainer}` + ' row ml-0 mr-0 w-100 mt-md-3 pl-sm-2 pr-sm-2 '
|
|
75
|
+
}
|
|
76
|
+
style={{ background: sectionproperties.subheaderbg, zIndex: 200, flex: 1 }}
|
|
77
|
+
>
|
|
78
|
+
{sectionproperties != undefined && sectionproperties.length != 0 && (
|
|
79
|
+
<div class={`${headerstyles.sub_container}` + ' w-100 p-md-0 '}>
|
|
80
|
+
{fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && (
|
|
81
|
+
<div
|
|
82
|
+
class={` ${headerstyles.subheader}` + ' row w-100 m-0 allcentered flex-row w-sm-100 '}
|
|
83
|
+
style={{
|
|
84
|
+
position: 'relative',
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
{props?.subheaderpositionprops == 'Full Width' && (
|
|
88
|
+
<div
|
|
89
|
+
class="ml-auto mr-auto"
|
|
90
|
+
style={{
|
|
91
|
+
background: sectionproperties.upperseparatorbgcolor,
|
|
92
|
+
width: sectionproperties.upperseparatorwidth + '%',
|
|
93
|
+
height: sectionproperties.upperseparatorheight + 'px',
|
|
94
|
+
}}
|
|
95
|
+
></div>
|
|
96
|
+
)}
|
|
97
|
+
<div
|
|
98
|
+
class="col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center "
|
|
99
|
+
style={{
|
|
100
|
+
borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
|
|
101
|
+
paddingTop: sectionproperties.subheader_margintop + 'px',
|
|
102
|
+
paddingBottom: sectionproperties.subheader_marginbottom + 'px',
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
<div
|
|
106
|
+
class={`${headerstyles.nav__item}` + ' scrollhorizontal flex-row align-items-center w-100 '}
|
|
107
|
+
style={{
|
|
108
|
+
zIndex: 1000,
|
|
109
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
110
|
+
justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops,
|
|
111
|
+
}}
|
|
112
|
+
>
|
|
113
|
+
{props?.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' &&
|
|
114
|
+
templatepropcontext?.pagesnprop?.map((item, index) => {
|
|
115
|
+
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
116
|
+
return (
|
|
117
|
+
<div
|
|
118
|
+
onClick={() => {
|
|
119
|
+
history.push(item.navigationroute);
|
|
120
|
+
}}
|
|
121
|
+
class="scrollhorizontalcard"
|
|
122
|
+
style={{
|
|
123
|
+
marginLeft: langdetect == 'ar' ? props?.subheaderpropertiesprops?.paddingLeftprops : 0,
|
|
124
|
+
marginRight: langdetect == 'en' ? props?.subheaderpropertiesprops?.paddingRightprops : 0,
|
|
125
|
+
}}
|
|
126
|
+
>
|
|
127
|
+
<p
|
|
128
|
+
class={`${headerstyles.link} ${header_cssstyles.subheader_category}` + ' mb-0 p-0 ml-md-3 mr-md-3 '}
|
|
129
|
+
onClick={() => {
|
|
130
|
+
templatepropcontext?.pagesnprop.forEach(function (pageitem, pageindex) {
|
|
131
|
+
pageitem.isselected = false;
|
|
132
|
+
});
|
|
133
|
+
templatepropcontext.pagesnprop[index].isselected = true;
|
|
134
|
+
}}
|
|
135
|
+
style={{
|
|
136
|
+
marginLeft: langdetect == 'en' ? 0 : props?.subheaderpropertiesprops?.paddingLeftprops,
|
|
137
|
+
marginRight: langdetect == 'en' ? props?.subheaderpropertiesprops?.paddingRightprops : 0,
|
|
138
|
+
}}
|
|
139
|
+
></p>
|
|
140
|
+
</div>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
})}
|
|
144
|
+
{fetchCategoriesQueryContext?.data?.data?.categories.map((item, index) => (
|
|
145
|
+
<p
|
|
146
|
+
class={`${headerstyles.link} ${header_cssstyles.subheader_category}` + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard '}
|
|
147
|
+
onClick={() => {}}
|
|
148
|
+
onMouseEnter={() => {
|
|
149
|
+
setshowdownheadermenu(true);
|
|
150
|
+
setChoosenindex(index);
|
|
151
|
+
}}
|
|
152
|
+
style={{
|
|
153
|
+
marginLeft: langdetect == 'ar' ? props?.subheaderpropertiesprops?.paddingLeftprops : 0,
|
|
154
|
+
marginRight: langdetect == 'en' ? props?.subheaderpropertiesprops?.paddingRightprops : 0,
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
158
|
+
</p>
|
|
159
|
+
))}
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
{Choosenindex.length != 0 && fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions?.length != 0 && (
|
|
163
|
+
<div
|
|
164
|
+
class={
|
|
165
|
+
`${headerstyles.dropmenu} ${header_cssstyles.dropdownmenu} ${showdownheadermenu ? 'd-flex' : 'd-none'}` +
|
|
166
|
+
' col-lg-11 ml-auto mr-auto flex-row justify-content-center align-items-center '
|
|
167
|
+
}
|
|
168
|
+
onMouseLeave={() => {
|
|
169
|
+
setshowdownheadermenu(false);
|
|
170
|
+
}}
|
|
171
|
+
style={{
|
|
172
|
+
zIndex: 2000,
|
|
173
|
+
position: props.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' ? 'absolute' : '',
|
|
174
|
+
top: props.subheaderpropertiesprops?.subheaderpositionprops == 'in nav' ? 20 : '',
|
|
175
|
+
}}
|
|
176
|
+
>
|
|
177
|
+
<div class="row m-0 w-100 d-flex p-3">
|
|
178
|
+
{fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions?.length == 0 && (
|
|
179
|
+
<div class="col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5">
|
|
180
|
+
<MdOutlineLayersClear size={30} />
|
|
181
|
+
<p class="font-16 font-weight-500 m-0 p-0">{langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات'}</p>
|
|
182
|
+
</div>
|
|
183
|
+
)}
|
|
184
|
+
{fetchCategoriesQueryContext?.data?.data?.categories[Choosenindex]?.parentcolletions.map((item, index) => (
|
|
185
|
+
<div class="col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0" style={{ cursor: 'pointer' }}>
|
|
186
|
+
<div class="row w-100 m-0 d-flex flex-column justify-content-center mb-2">
|
|
187
|
+
<div
|
|
188
|
+
class="col-lg-12 p-0 mb-3"
|
|
189
|
+
onClick={() => {
|
|
190
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
|
|
191
|
+
}}
|
|
192
|
+
>
|
|
193
|
+
<p
|
|
194
|
+
class={`${header_cssstyles.parentcollection}` + ' wordbreak m-0 p-0 '}
|
|
195
|
+
style={{
|
|
196
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
197
|
+
}}
|
|
198
|
+
>
|
|
199
|
+
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
200
|
+
</p>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
{item.collections.map((item, index) => (
|
|
204
|
+
<div
|
|
205
|
+
class="col-lg-12 p-0 mb-2"
|
|
206
|
+
onClick={() => {
|
|
207
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
208
|
+
}}
|
|
209
|
+
>
|
|
210
|
+
<p
|
|
211
|
+
class={`${header_cssstyles.subheader_collectiontitle}` + ' wordbreak m-0 p-0 '}
|
|
212
|
+
style={{
|
|
213
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
214
|
+
}}
|
|
215
|
+
>
|
|
216
|
+
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
217
|
+
</p>
|
|
218
|
+
</div>
|
|
219
|
+
))}
|
|
220
|
+
{(index != item.collections.length) != 0 && (
|
|
221
|
+
<div class="col-lg-12 p-0 d-none d-sm-block">
|
|
222
|
+
<hr class="mt-3 mb-0" />
|
|
223
|
+
</div>
|
|
224
|
+
)}
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
))}
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
)}
|
|
231
|
+
</div>
|
|
232
|
+
)}
|
|
233
|
+
</div>
|
|
234
|
+
)}
|
|
235
|
+
</div>
|
|
236
|
+
);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export default Subheader;
|
package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
import { css } from 'glamor';
|
|
4
|
+
|
|
5
|
+
import cardsstyles from '../../../../styles/sections/Backgroundimage1.module.css';
|
|
6
|
+
|
|
7
|
+
import { IKImage } from 'imagekitio-react';
|
|
8
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
|
|
9
|
+
const Backgroundimage1 = (props) => {
|
|
10
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
11
|
+
const [bgimagesarray, setbgimagesarray] = 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
|
+
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
|
+
|
|
27
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
28
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
29
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
30
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
setsectionproperties({ ...secpropobj });
|
|
35
|
+
}
|
|
36
|
+
}, [StatePagePropertiesContext]);
|
|
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
|
+
setbgimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, [sectionproperties]);
|
|
47
|
+
const bg1_cssstyles = {
|
|
48
|
+
bgImageContainer: css({
|
|
49
|
+
height: sectionproperties.height + 'vh',
|
|
50
|
+
// backgroundImage: `url(${cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''})`,
|
|
51
|
+
background: sectionproperties.backgroundColor,
|
|
52
|
+
backgroundPosition: 'center',
|
|
53
|
+
backgroundRepeat: 'no-repeat',
|
|
54
|
+
backgroundSize: 'cover',
|
|
55
|
+
margin: 0,
|
|
56
|
+
padding: 0,
|
|
57
|
+
position: 'relative',
|
|
58
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
59
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
60
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
61
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
62
|
+
alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
|
|
63
|
+
justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
|
|
64
|
+
}),
|
|
65
|
+
centered_container: css({
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
display: 'flex',
|
|
68
|
+
width: '100%',
|
|
69
|
+
height: '100%',
|
|
70
|
+
}),
|
|
71
|
+
maintitle: css({
|
|
72
|
+
position: 'relative',
|
|
73
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
74
|
+
color: sectionproperties.generaltext_fontColor,
|
|
75
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
76
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
77
|
+
top: sectionproperties.generaltext_topposition + 'px',
|
|
78
|
+
left: sectionproperties.generaltext_position == 'Centered' ? 0 : langdetect == 'en' ? sectionproperties.generaltext_leftposition + 'px' : '',
|
|
79
|
+
right: sectionproperties.generaltext_position == 'Centered' ? 0 : langdetect == 'en' ? '' : sectionproperties.generaltext_leftposition + 'px',
|
|
80
|
+
':after': {
|
|
81
|
+
display: 'block',
|
|
82
|
+
content: 's',
|
|
83
|
+
fontSize: '0',
|
|
84
|
+
width: sectionproperties.generaltext_lineaftertextwidth + 'px',
|
|
85
|
+
height: '7px',
|
|
86
|
+
background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
|
|
87
|
+
position: 'absolute',
|
|
88
|
+
bottom: 0,
|
|
89
|
+
margin: 'auto',
|
|
90
|
+
borderRadius: '10px',
|
|
91
|
+
},
|
|
92
|
+
}),
|
|
93
|
+
maintitle11: css({
|
|
94
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
95
|
+
color: sectionproperties.generaltext_fontColor,
|
|
96
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
97
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
98
|
+
top: sectionproperties.generaltext_topposition + 'px',
|
|
99
|
+
left: sectionproperties.generaltext_leftposition + 'px',
|
|
100
|
+
':after': {
|
|
101
|
+
display: 'block',
|
|
102
|
+
content: 's',
|
|
103
|
+
fontSize: '0',
|
|
104
|
+
width: sectionproperties.generaltext_lineaftertextwidth + 'px',
|
|
105
|
+
height: '7px',
|
|
106
|
+
background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
|
|
107
|
+
position: 'absolute',
|
|
108
|
+
bottom: 0,
|
|
109
|
+
margin: 'auto',
|
|
110
|
+
borderRadius: '10px',
|
|
111
|
+
},
|
|
112
|
+
}),
|
|
113
|
+
maintitle2: css({
|
|
114
|
+
position: 'relative',
|
|
115
|
+
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
116
|
+
color: sectionproperties.slideshowText2ContentColor,
|
|
117
|
+
textTransform: sectionproperties.slideshowText2ContentTextTransform,
|
|
118
|
+
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
119
|
+
top: sectionproperties.generaltext2_topposition + 'px',
|
|
120
|
+
// left: sectionproperties.generaltext2_leftposition + 'px',
|
|
121
|
+
left: langdetect == 'en' ? sectionproperties.generaltext2_leftposition + 'px' : '',
|
|
122
|
+
right: langdetect == 'en' ? '' : sectionproperties.generaltext2_leftposition + 'px',
|
|
123
|
+
':after': {
|
|
124
|
+
display: 'block',
|
|
125
|
+
content: 's',
|
|
126
|
+
fontSize: '0',
|
|
127
|
+
width: '100%',
|
|
128
|
+
height: '7px',
|
|
129
|
+
// background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
|
|
130
|
+
position: 'absolute',
|
|
131
|
+
bottom: 0,
|
|
132
|
+
left: 0,
|
|
133
|
+
right: 0,
|
|
134
|
+
margin: 'auto',
|
|
135
|
+
borderRadius: '10px',
|
|
136
|
+
},
|
|
137
|
+
}),
|
|
138
|
+
buttonshop: css({
|
|
139
|
+
position: 'relative',
|
|
140
|
+
color: sectionproperties.generalbtn_textColor,
|
|
141
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
142
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
143
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
144
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
145
|
+
background: sectionproperties.generalbtn_bgColor,
|
|
146
|
+
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
147
|
+
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
148
|
+
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
149
|
+
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
150
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
151
|
+
top: sectionproperties.generalbtn_topposition + 'px',
|
|
152
|
+
left: langdetect == 'en' ? sectionproperties.generalbtn_leftposition + 'px' : '',
|
|
153
|
+
right: langdetect == 'en' ? '' : sectionproperties.generalbtn_leftposition + 'px',
|
|
154
|
+
transition: '.3s',
|
|
155
|
+
':hover': {
|
|
156
|
+
background: sectionproperties.generalbtn_bgColoronhover,
|
|
157
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
158
|
+
},
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
return (
|
|
162
|
+
<div
|
|
163
|
+
className="row ml-auto mr-auto d-flex justofy-content-center"
|
|
164
|
+
style={{
|
|
165
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
166
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
167
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
168
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
169
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
170
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
171
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
172
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
173
|
+
height: sectionproperties.height + 'vh',
|
|
174
|
+
// zIndex: 2,
|
|
175
|
+
}}
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
className="col-lg-12 p-0"
|
|
179
|
+
style={{
|
|
180
|
+
width: sectionproperties.width + 'vw',
|
|
181
|
+
}}
|
|
182
|
+
>
|
|
183
|
+
<IKImage
|
|
184
|
+
urlEndpoint={IKurlEndpoint}
|
|
185
|
+
publicKey={IKpublicKey}
|
|
186
|
+
path={bgimagesarray.length != 0 ? (langdetect == 'en' ? bgimagesarray[0]?.bgsection_image : '/tr:w-2000,h-1000/' + bgimagesarray[0]?.bgsection_image_ar) : ''}
|
|
187
|
+
style={{
|
|
188
|
+
height: '100%',
|
|
189
|
+
width: '100%',
|
|
190
|
+
objectFit: 'cover',
|
|
191
|
+
height: sectionproperties.height + 'vh',
|
|
192
|
+
background: sectionproperties.backgroundColor,
|
|
193
|
+
margin: 0,
|
|
194
|
+
padding: 0,
|
|
195
|
+
// position: 'relative',
|
|
196
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
197
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
198
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
199
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
200
|
+
zIndex: -1,
|
|
201
|
+
}}
|
|
202
|
+
/>
|
|
203
|
+
<div
|
|
204
|
+
className={`${bg1_cssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
|
|
205
|
+
style={{
|
|
206
|
+
// zIndex: 2000,
|
|
207
|
+
position: 'absolute',
|
|
208
|
+
top: 0,
|
|
209
|
+
right: 0,
|
|
210
|
+
bottom: 0,
|
|
211
|
+
left: 0,
|
|
212
|
+
}}
|
|
213
|
+
>
|
|
214
|
+
<div
|
|
215
|
+
className={`${bg1_cssstyles.centered_container}` + ' row m-0 d-flex '}
|
|
216
|
+
style={{
|
|
217
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
218
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
219
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
220
|
+
// zIndex: 2000,
|
|
221
|
+
}}
|
|
222
|
+
>
|
|
223
|
+
<div className="col-lg-12 p-0 d-flex flex-column pt-md-5 d-md-none">
|
|
224
|
+
{sectionproperties.general_showtext == 'Show' && (
|
|
225
|
+
<p
|
|
226
|
+
className={
|
|
227
|
+
sectionproperties.generaltext_position == 'Centered'
|
|
228
|
+
? `${bg1_cssstyles.maintitle} ${cardsstyles.maintitle}` + ' justify-content-center d-flex justify-content-md-center '
|
|
229
|
+
: `${bg1_cssstyles.maintitle} ${cardsstyles.maintitle}` + ' d-flex justify-content-md-center '
|
|
230
|
+
}
|
|
231
|
+
style={
|
|
232
|
+
{
|
|
233
|
+
// zIndex: 2000,
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
>
|
|
237
|
+
{langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar}
|
|
238
|
+
</p>
|
|
239
|
+
)}
|
|
240
|
+
{sectionproperties.slideshowtext2_show == 'Show' && (
|
|
241
|
+
<p className={`${bg1_cssstyles.maintitle2} ${cardsstyles.maintitle2}` + ' d-flex justify-content-md-center '}>
|
|
242
|
+
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_ar}
|
|
243
|
+
</p>
|
|
244
|
+
)}
|
|
245
|
+
{sectionproperties.generalbtn_show == 'Show' && (
|
|
246
|
+
<button
|
|
247
|
+
className={`${bg1_cssstyles.buttonshop} ${cardsstyles.buttonshop}` + ' d-flex justify-content-center align-items-center '}
|
|
248
|
+
onClick={() => {
|
|
249
|
+
// if(place_clickable == 'Button'){
|
|
250
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
251
|
+
// }
|
|
252
|
+
}}
|
|
253
|
+
>
|
|
254
|
+
{langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar}
|
|
255
|
+
</button>
|
|
256
|
+
)}
|
|
257
|
+
</div>
|
|
258
|
+
<div
|
|
259
|
+
className="col-lg-12 p-0 flex-column justify-content-center align-items-center d-none d-md-flex "
|
|
260
|
+
style={{ width: '100%', height: '100%', position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 }}
|
|
261
|
+
>
|
|
262
|
+
<div className="row m-0 w-100">
|
|
263
|
+
<div className="col-lg-12 d-flex justify-content-center align-items-center">
|
|
264
|
+
{sectionproperties.general_showtext == 'Show' && (
|
|
265
|
+
<p
|
|
266
|
+
className={`${bg1_cssstyles.maintitle11} ${cardsstyles.maintitle}` + ' d-flex justify-content-md-center p-0 font-md-30 font-sm-25 '}
|
|
267
|
+
style={{
|
|
268
|
+
color: sectionproperties.generaltext_fontColor,
|
|
269
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
270
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
271
|
+
}}
|
|
272
|
+
>
|
|
273
|
+
{langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar}
|
|
274
|
+
</p>
|
|
275
|
+
)}
|
|
276
|
+
</div>
|
|
277
|
+
<div className="col-lg-12 d-flex justify-content-center align-items-center">
|
|
278
|
+
{sectionproperties.slideshowtext2_show == 'Show' && (
|
|
279
|
+
<p
|
|
280
|
+
className={`${cardsstyles.maintitle2}` + ' font-md-30 font-sm-23 d-flex justify-content-md-center p-0 '}
|
|
281
|
+
style={{
|
|
282
|
+
fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
|
|
283
|
+
color: sectionproperties.slideshowText2ContentColor,
|
|
284
|
+
textTransform: sectionproperties.slideshowText2ContentTextTransform,
|
|
285
|
+
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
286
|
+
}}
|
|
287
|
+
>
|
|
288
|
+
{langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_ar}
|
|
289
|
+
</p>
|
|
290
|
+
)}
|
|
291
|
+
</div>
|
|
292
|
+
<div className="col-lg-12 d-flex justify-content-center align-items-center">
|
|
293
|
+
{sectionproperties.generalbtn_show == 'Show' && (
|
|
294
|
+
<button
|
|
295
|
+
className={`${bg1_cssstyles.buttonshop} ${cardsstyles.buttonshop}` + ' d-flex justify-content-center align-items-center '}
|
|
296
|
+
onClick={() => {
|
|
297
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
298
|
+
}}
|
|
299
|
+
>
|
|
300
|
+
{langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar}
|
|
301
|
+
</button>
|
|
302
|
+
)}
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
);
|
|
311
|
+
};
|
|
312
|
+
export default Backgroundimage1;
|