tabexseriescomponents 0.0.65 → 0.0.67
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 +22892 -14865
- package/dist/index.esm.js +22897 -14871
- package/dist/index.umd.js +21722 -13696
- package/package.json +1 -1
- package/{srcOLD → src1-10}/Contexts/LanguageContext.jsx +0 -0
- package/{srcOLD → src1-10}/Contexts/ProductsCardsSectionContext.jsx +0 -0
- package/{srcOLD → src1-10}/StylesJS/Customstyles.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -19
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -8
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +45 -72
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -17
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +1 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -11
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +3 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +1 -11
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer1/Footer1.jsx +26 -26
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer2/Footer2.jsx +24 -25
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer3/Footer3.jsx +14 -6
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer4/Footer4.jsx +11 -12
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer5/Footer5.jsx +81 -88
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer6/Footer6.jsx +39 -48
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer7/Footer7.jsx +58 -61
- package/{srcOLD → src1-10}/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +27 -34
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +97 -99
- package/{srcOLD → src1-10}/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +74 -80
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header4/Header4.jsx +77 -95
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header6/Header6.jsx +73 -76
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +93 -137
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +85 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +3 -23
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +116 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Modernheader/Modernheader.jsx +100 -92
- package/{srcOLD → src1-10}/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +110 -98
- package/{srcOLD → src1-10}/TabexComponents/Headers/Subheader/Subheader.jsx +10 -22
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +7 -75
- package/{srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js → src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx} +82 -92
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -0
- package/{srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js → src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx} +34 -74
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -8
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +92 -53
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -0
- package/{srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js → src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx} +110 -40
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Filter/Filter.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/Login.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Policies/Policies.jsx +0 -5
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -50
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -16
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/Signup.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -23
- package/{srcOLD → src1-10}/assets/images/cod.png +0 -0
- package/{srcOLD → src1-10}/assets/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/fawry.png +0 -0
- package/{srcOLD → src1-10}/assets/images/payment.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paymob.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paypal.png +0 -0
- package/{srcOLD → src1-10}/assets/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/assets/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/visa.png +0 -0
- package/{srcOLD → src1-10}/assets/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/button.jsx +0 -0
- package/{srcOLD → src1-10}/index.jsx +6 -2
- package/{srcOLD → src1-10}/styles/Home.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorcycard_fullimage.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_slidebgscaled.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_withshapes.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard_with_circularbg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productccard_with_zoominonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Prouductcard_with_zoomhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard3.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycardwithtext.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_animatedbuttons.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_with_textonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productccard_with_imageontopleft.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/bootstrap.css +68 -73
- package/{srcOLD → src1-10}/styles/general/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/general/editorbardropdown.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/form.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/general.module.css +152 -0
- package/{srcOLD → src1-10}/styles/general/image-gallery.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-accessible-accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-phone-input-2.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/scrollbtn.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/slick.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/tabs.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/workplaceeditor.module.css +0 -0
- package/{srcOLD → src1-10}/styles/globals.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Allinoneheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header7.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header_threesectionslogocentered.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Sideheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/classicheaderstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header4.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header5.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header_contactinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerresturant.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/modernheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/subheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage1.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage_with_topcircle.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Section_with_rightbgcont.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_squarebg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/cart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/login.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/productinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/shop.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/signup.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/staticroutersidenav.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/viewcart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/wishlist.module.css +0 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { useHistory, Link } from 'react-router-dom';
|
|
3
|
-
// import '../../Generalfiles/CSS_GENERAL/dropdown.css';
|
|
4
|
-
|
|
5
2
|
import headerstyles from '../../../styles/headers/Header_threesectionslogocentered.module.css';
|
|
6
|
-
|
|
7
3
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
8
|
-
// import { LanguageContext } from '../../../LanguageContext';
|
|
9
|
-
// import { FetchingContext } from '../../../FetchingContext';
|
|
10
|
-
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
11
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
12
4
|
import { GoSearch } from 'react-icons/go';
|
|
13
5
|
import { css } from 'glamor';
|
|
14
|
-
|
|
15
|
-
// import Searchlist from '../../StaticPages/Searchlist/Searchlist';
|
|
16
|
-
// import Subheader from '../Subheader/Subheader';
|
|
17
|
-
// import Headerresponsive from '../Headerresponsive/Headerresponsive';
|
|
18
|
-
// import egyptflag from '../../Generalfiles/images/egyptflag.png';
|
|
19
|
-
// import usflag from '../../Generalfiles/images/usflag.png';
|
|
20
|
-
|
|
21
6
|
import { FaFacebookF, FaRegHeart } from 'react-icons/fa';
|
|
22
7
|
import { AiOutlineInstagram, AiOutlineHeart, AiFillStar } from 'react-icons/ai';
|
|
23
8
|
import { MdKeyboardArrowDown } from 'react-icons/md';
|
|
@@ -29,7 +14,6 @@ import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
|
|
|
29
14
|
import { AiOutlineStar, AiOutlineUserAdd, AiOutlineLogin } from 'react-icons/ai';
|
|
30
15
|
import { IKImage } from 'imagekitio-react';
|
|
31
16
|
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
32
|
-
|
|
33
17
|
import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
34
18
|
import egyptflag from '../../../assets/images/egyptflag.png';
|
|
35
19
|
import usflag from '../../../assets/images/usflag.png';
|
|
@@ -37,14 +21,7 @@ import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
|
|
|
37
21
|
import Subheader from '../Subheader/Subheader.jsx';
|
|
38
22
|
|
|
39
23
|
const Header_threesectionslogocentered = (props) => {
|
|
40
|
-
// let history = useHistory();
|
|
41
|
-
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
42
|
-
// const { setSearchHeaderInputContext, setsidecartnavshowcontext, fetchAuthorizationQueryContext, fetchcustomercartQueryContext, LogoutMutationContext, templateproperties_context } =
|
|
43
|
-
// useContext(FetchingContext);
|
|
44
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
45
|
-
// const { fetch_inst_tabex_websitetemplatesQueryContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
46
24
|
const [sectionproperties, setsectionproperties] = useState('');
|
|
47
|
-
|
|
48
25
|
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
49
26
|
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
50
27
|
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -60,7 +37,6 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
60
37
|
const routingcountext = props.actions.routingcountext;
|
|
61
38
|
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
62
39
|
const actions = props.actions;
|
|
63
|
-
// const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
|
|
64
40
|
useEffect(() => {
|
|
65
41
|
var secpropobj = {};
|
|
66
42
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -311,12 +287,12 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
311
287
|
}
|
|
312
288
|
}, [templateproperties_context]);
|
|
313
289
|
return (
|
|
314
|
-
<div
|
|
315
|
-
<div
|
|
316
|
-
<div
|
|
290
|
+
<div className={' row m-0 w-100 d-flex justify-content-center align-items-center '} style={{ position: 'relative', zIndex: 1000 }}>
|
|
291
|
+
<div className="col-lg-12 p-0">
|
|
292
|
+
<div className={`${header_cssstyles.header_outercontainer}` + ' d-flex d-md-none row ml-0 mr-0 '}>
|
|
317
293
|
{sectionproperties.showupperheadersection == 'Show' && (
|
|
318
294
|
<div
|
|
319
|
-
|
|
295
|
+
className="col-lg-12"
|
|
320
296
|
style={{
|
|
321
297
|
paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
|
|
322
298
|
paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
|
|
@@ -325,16 +301,16 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
325
301
|
background: sectionproperties.uppersection_bgcolor,
|
|
326
302
|
}}
|
|
327
303
|
>
|
|
328
|
-
<div
|
|
329
|
-
<div
|
|
304
|
+
<div className="row m-0 w-100">
|
|
305
|
+
<div className="col-lg-6 d-flex align-items-center">
|
|
330
306
|
{sectionproperties.fbbtn_show == 'Show' && (
|
|
331
|
-
<FaFacebookF
|
|
307
|
+
<FaFacebookF className={header_cssstyles.fbbtn + ' cursor-pointer ml-3 mr-3 '} size={sectionproperties.facebkbtnniconfontsize} />
|
|
332
308
|
)}
|
|
333
309
|
{sectionproperties.instbtn_show == 'Show' && (
|
|
334
|
-
<AiOutlineInstagram
|
|
310
|
+
<AiOutlineInstagram className={header_cssstyles.instagrambtn + ' cursor-pointer ml-3 mr-3 '} size={sectionproperties.instgrambtniconfontsize} />
|
|
335
311
|
)}
|
|
336
312
|
<p
|
|
337
|
-
|
|
313
|
+
className={header_cssstyles.upperheadertext + ' m-0 p-0 cursor-pointer ml-3 mr-3 '}
|
|
338
314
|
onClick={() => {
|
|
339
315
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
340
316
|
}}
|
|
@@ -342,7 +318,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
342
318
|
{lang.wishlist}
|
|
343
319
|
</p>
|
|
344
320
|
<p
|
|
345
|
-
|
|
321
|
+
className={header_cssstyles.upperheadertext + ' m-0 p-0 cursor-pointer ml-3 mr-3 '}
|
|
346
322
|
onClick={() => {
|
|
347
323
|
routingcountext(StaticPagesLinksContext.Policies);
|
|
348
324
|
}}
|
|
@@ -350,20 +326,20 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
350
326
|
{lang.policies}
|
|
351
327
|
</p>
|
|
352
328
|
</div>
|
|
353
|
-
<div
|
|
354
|
-
<div
|
|
329
|
+
<div className="col-lg-6 d-flex align-items-center justify-content-end">
|
|
330
|
+
<div className={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
|
|
355
331
|
<Dropdown>
|
|
356
332
|
<Dropdown.Toggle>
|
|
357
|
-
<li
|
|
333
|
+
<li className={' d-flex align-items-center justify-content-center '}>
|
|
358
334
|
{langdetect == 'en' && (
|
|
359
|
-
<div
|
|
360
|
-
<p
|
|
335
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
336
|
+
<p className="m-0 p-0 mr-2">English</p>
|
|
361
337
|
<MdKeyboardArrowDown />
|
|
362
338
|
</div>
|
|
363
339
|
)}
|
|
364
340
|
{langdetect == 'ar' && (
|
|
365
|
-
<div
|
|
366
|
-
<p
|
|
341
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
342
|
+
<p className="m-0 p-0 ml-2">لغة عربية</p>
|
|
367
343
|
<MdKeyboardArrowDown />
|
|
368
344
|
</div>
|
|
369
345
|
)}
|
|
@@ -375,9 +351,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
375
351
|
setlang('ar');
|
|
376
352
|
}}
|
|
377
353
|
>
|
|
378
|
-
<div
|
|
354
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}`}>
|
|
379
355
|
<p
|
|
380
|
-
|
|
356
|
+
className={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
|
|
381
357
|
style={{
|
|
382
358
|
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
383
359
|
fontWeight: sectionproperties.dropdown_fontweight,
|
|
@@ -385,7 +361,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
385
361
|
}}
|
|
386
362
|
>
|
|
387
363
|
<img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
388
|
-
<span
|
|
364
|
+
<span className={'ml-2 mr-2'}>{lang.arabic}</span>
|
|
389
365
|
</p>
|
|
390
366
|
</div>
|
|
391
367
|
</Dropdown.Item>
|
|
@@ -395,9 +371,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
395
371
|
setlang('en');
|
|
396
372
|
}}
|
|
397
373
|
>
|
|
398
|
-
<div
|
|
374
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}`}>
|
|
399
375
|
<p
|
|
400
|
-
|
|
376
|
+
className={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
|
|
401
377
|
style={{
|
|
402
378
|
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
403
379
|
fontWeight: sectionproperties.dropdown_fontweight,
|
|
@@ -405,7 +381,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
405
381
|
}}
|
|
406
382
|
>
|
|
407
383
|
<img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
408
|
-
<span
|
|
384
|
+
<span className={'ml-2 mr-2'}>{lang.english}</span>
|
|
409
385
|
</p>
|
|
410
386
|
</div>
|
|
411
387
|
</Dropdown.Item>
|
|
@@ -416,9 +392,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
416
392
|
</div>
|
|
417
393
|
</div>
|
|
418
394
|
)}
|
|
419
|
-
<div
|
|
420
|
-
<div
|
|
421
|
-
<nav
|
|
395
|
+
<div className={`${headerstyles.header_innercontainer} ${header_cssstyles.header_innercontainer}` + ' row m-0 w-100 d-flex align-items-center '} style={{ zIndex: 2 }}>
|
|
396
|
+
<div className="col-lg-4 p-0 d-flex align-items-center justify-content-start">
|
|
397
|
+
<nav className={headerstyles.navbar}>
|
|
422
398
|
<ul>
|
|
423
399
|
{templatepropcontext.pagesnprop.map((item, index) => {
|
|
424
400
|
var activeclass = '';
|
|
@@ -439,8 +415,8 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
439
415
|
routingcountext(item.navigationroute, false, '');
|
|
440
416
|
}}
|
|
441
417
|
>
|
|
442
|
-
<div
|
|
443
|
-
<span
|
|
418
|
+
<div className={`${headerstyles.navbar_item} ${activeclass}`}>
|
|
419
|
+
<span className={`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text}`}>
|
|
444
420
|
{langdetect == 'en' ? item.pagename : item.pagename_ar}
|
|
445
421
|
</span>
|
|
446
422
|
</div>
|
|
@@ -452,9 +428,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
452
428
|
</ul>
|
|
453
429
|
</nav>
|
|
454
430
|
</div>
|
|
455
|
-
<div
|
|
431
|
+
<div className="col-lg-4 p-0 d-flex align-items-center justify-content-center">
|
|
456
432
|
<div
|
|
457
|
-
|
|
433
|
+
className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
|
|
458
434
|
style={{ cursor: 'pointer' }}
|
|
459
435
|
onClick={() => {
|
|
460
436
|
routingcountext('home');
|
|
@@ -471,13 +447,13 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
471
447
|
/>
|
|
472
448
|
</div>
|
|
473
449
|
</div>
|
|
474
|
-
<div
|
|
450
|
+
<div className="col-lg-4 d-flex align-items-center justify-content-end">
|
|
475
451
|
{sectionproperties.searchbar_show == 'Show' && (
|
|
476
|
-
<div
|
|
477
|
-
<div
|
|
478
|
-
<div
|
|
452
|
+
<div className="col-lg-4 p-0 d-flex justify-content-end align-items-center">
|
|
453
|
+
<div className="row m-0 w-100 d-flex justify-content-end align-items-center">
|
|
454
|
+
<div className="col-lg-12 p-0 d-flex justify-content-end align-items-center">
|
|
479
455
|
<input
|
|
480
|
-
|
|
456
|
+
className={`${headerstyles.searchbar} ${header_cssstyles.searchbarcont_input}`}
|
|
481
457
|
placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
|
|
482
458
|
onChange={(event) => {
|
|
483
459
|
setSearchHeaderInputContext(event.target.value);
|
|
@@ -487,8 +463,8 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
487
463
|
left: langdetect == 'en' ? '' : 0,
|
|
488
464
|
}}
|
|
489
465
|
/>
|
|
490
|
-
<div
|
|
491
|
-
<i
|
|
466
|
+
<div className={`${header_cssstyles.searchbarcont}` + ' d-flex justify-content-center align-items-center '}>
|
|
467
|
+
<i className={headerstyles.searchbaractive + ' h-100 d-flex align-items-center'}>
|
|
492
468
|
<GoSearch
|
|
493
469
|
size={sectionproperties.searchbarcontfontsize}
|
|
494
470
|
style={{
|
|
@@ -498,42 +474,37 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
498
474
|
</i>
|
|
499
475
|
</div>
|
|
500
476
|
</div>
|
|
501
|
-
<div
|
|
477
|
+
<div className="col-lg-12 p-0 d-flex justify-content-end align-items-center">
|
|
502
478
|
<Searchlist actions={actions} sectionpropertiesprops={sectionproperties} srcfromprops={'header-300'} />
|
|
503
479
|
</div>
|
|
504
480
|
</div>
|
|
505
481
|
</div>
|
|
506
482
|
)}
|
|
507
|
-
<div
|
|
483
|
+
<div className="headerdropdownml ml-3 mr-3">
|
|
508
484
|
<Dropdown>
|
|
509
485
|
<Dropdown.Toggle>
|
|
510
486
|
{!authdetailsContext.loggedin && (
|
|
511
|
-
<div
|
|
512
|
-
<span
|
|
513
|
-
class={
|
|
514
|
-
`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text} ${header_cssstyles.user_btn}` +
|
|
515
|
-
' d-flex justify-content-center align-items-center '
|
|
516
|
-
}
|
|
517
|
-
>
|
|
487
|
+
<div className={`${headerstyles.navbar_item}` + ' d-flex justify-content-center align-items-center '}>
|
|
488
|
+
<span className={` ${header_cssstyles.user_btn}` + ' d-flex justify-content-center align-items-center '}>
|
|
518
489
|
<FiUser size={sectionproperties.userBtniconfontsize} />
|
|
519
490
|
</span>
|
|
520
491
|
</div>
|
|
521
492
|
)}
|
|
522
493
|
{authdetailsContext.loggedin && (
|
|
523
|
-
<div
|
|
524
|
-
<div
|
|
525
|
-
<i
|
|
494
|
+
<div className={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
|
|
495
|
+
<div className={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
|
|
496
|
+
<i className={' h-100 allcentered '}>
|
|
526
497
|
<FiUser size={sectionproperties.loggedinusericonfontsize} />
|
|
527
498
|
</i>
|
|
528
499
|
</div>
|
|
529
500
|
<div
|
|
530
|
-
|
|
501
|
+
className="m-0 p-0 loggedinuserbtn flex-column"
|
|
531
502
|
style={{
|
|
532
503
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
533
504
|
}}
|
|
534
505
|
>
|
|
535
506
|
<p
|
|
536
|
-
|
|
507
|
+
className="m-0 p-0"
|
|
537
508
|
style={{
|
|
538
509
|
color: sectionproperties.greetingtextcolor,
|
|
539
510
|
fontSize: sectionproperties.greetingtextfontsize + 'px',
|
|
@@ -544,7 +515,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
544
515
|
{lang.hello}
|
|
545
516
|
{langdetect == 'en' ? ',' : '،'}
|
|
546
517
|
</p>
|
|
547
|
-
<p
|
|
518
|
+
<p className={header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow '} style={{ maxWidth: '60px' }}>
|
|
548
519
|
{authdetailsContext.customerinfo.name}
|
|
549
520
|
</p>
|
|
550
521
|
</div>
|
|
@@ -558,10 +529,10 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
558
529
|
routingcountext(StaticPagesLinksContext.Login);
|
|
559
530
|
}}
|
|
560
531
|
>
|
|
561
|
-
<div
|
|
562
|
-
<p
|
|
532
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
533
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
|
|
563
534
|
<AiOutlineLogin />
|
|
564
|
-
<span
|
|
535
|
+
<span className="ml-2 mr-2">{lang.login}</span>
|
|
565
536
|
</p>
|
|
566
537
|
</div>
|
|
567
538
|
</Dropdown.Item>
|
|
@@ -571,10 +542,10 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
571
542
|
routingcountext(StaticPagesLinksContext.Signup);
|
|
572
543
|
}}
|
|
573
544
|
>
|
|
574
|
-
<div
|
|
575
|
-
<p
|
|
545
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
546
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
|
|
576
547
|
<AiOutlineUserAdd />
|
|
577
|
-
<span
|
|
548
|
+
<span className="ml-2 mr-2 text-transform-none">{lang.signup}</span>
|
|
578
549
|
</p>
|
|
579
550
|
</div>
|
|
580
551
|
</Dropdown.Item>
|
|
@@ -583,7 +554,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
583
554
|
{authdetailsContext.loggedin && (
|
|
584
555
|
<Dropdown.Menu style={{ minWidth: '200px' }}>
|
|
585
556
|
<Dropdown.Item>
|
|
586
|
-
<div
|
|
557
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}`}>
|
|
587
558
|
<span
|
|
588
559
|
style={{
|
|
589
560
|
color: '#8fa0bd',
|
|
@@ -592,7 +563,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
592
563
|
{lang.hello},
|
|
593
564
|
</span>
|
|
594
565
|
<span
|
|
595
|
-
|
|
566
|
+
className={`${header_cssstyles.dropdownitem}` + ' dropdownitem font-weight-600 text-overflow text-capitalize p-0 ml-1 mr-1 '}
|
|
596
567
|
onClick={() => {
|
|
597
568
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
598
569
|
}}
|
|
@@ -607,15 +578,15 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
607
578
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
608
579
|
}}
|
|
609
580
|
>
|
|
610
|
-
<div
|
|
611
|
-
<p
|
|
581
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
582
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
612
583
|
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
|
|
613
584
|
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
|
|
614
585
|
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
|
|
615
586
|
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
|
|
616
587
|
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
|
|
617
588
|
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
|
|
618
|
-
<span
|
|
589
|
+
<span className="ml-2 mr-2">{lang.orderhistory}</span>
|
|
619
590
|
</p>
|
|
620
591
|
</div>
|
|
621
592
|
</Dropdown.Item>
|
|
@@ -625,11 +596,11 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
625
596
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
626
597
|
}}
|
|
627
598
|
>
|
|
628
|
-
<div
|
|
629
|
-
<p
|
|
599
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
600
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
630
601
|
{sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart />}
|
|
631
602
|
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
|
|
632
|
-
<span
|
|
603
|
+
<span className="ml-2 mr-2">{lang.wishlist}</span>
|
|
633
604
|
</p>
|
|
634
605
|
</div>
|
|
635
606
|
</Dropdown.Item>
|
|
@@ -639,10 +610,10 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
639
610
|
routingcountext(StaticPagesLinksContext.Policies);
|
|
640
611
|
}}
|
|
641
612
|
>
|
|
642
|
-
<div
|
|
643
|
-
<p
|
|
613
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
614
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
644
615
|
<MdOutlinePolicy />
|
|
645
|
-
<span
|
|
616
|
+
<span className="ml-2 mr-2">{lang.policies}</span>
|
|
646
617
|
</p>
|
|
647
618
|
</div>
|
|
648
619
|
</Dropdown.Item>
|
|
@@ -652,10 +623,10 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
652
623
|
LogoutMutationContext.mutate();
|
|
653
624
|
}}
|
|
654
625
|
>
|
|
655
|
-
<div
|
|
656
|
-
<p
|
|
626
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
627
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
657
628
|
<BiLogOutCircle />
|
|
658
|
-
<span
|
|
629
|
+
<span className="ml-2 mr-2">{lang.logout}</span>
|
|
659
630
|
</p>
|
|
660
631
|
</div>
|
|
661
632
|
</Dropdown.Item>
|
|
@@ -664,7 +635,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
664
635
|
</Dropdown>
|
|
665
636
|
</div>
|
|
666
637
|
<div
|
|
667
|
-
|
|
638
|
+
className={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center cursor-pointer '}
|
|
668
639
|
onClick={() => {
|
|
669
640
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
670
641
|
}}
|
|
@@ -678,14 +649,14 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
678
649
|
</div>
|
|
679
650
|
{sectionproperties.cartBtnShow == 'Show' && (
|
|
680
651
|
<div
|
|
681
|
-
|
|
652
|
+
className={'d-flex align-items-center justify-content-end'}
|
|
682
653
|
style={{
|
|
683
654
|
marginRight: sectionproperties.showupperheadersection == 'Hide' ? (langdetect == 'en' ? '1.5rem' : 0) : 0,
|
|
684
655
|
marginLeft: sectionproperties.showupperheadersection == 'Hide' ? (langdetect == 'ar' ? '1.5rem' : 0) : 0,
|
|
685
656
|
}}
|
|
686
657
|
>
|
|
687
658
|
<div
|
|
688
|
-
|
|
659
|
+
className={`${header_cssstyles.cart_btn}` + ' allcentered '}
|
|
689
660
|
onClick={() => {
|
|
690
661
|
setsidecartnavshowcontext(true);
|
|
691
662
|
}}
|
|
@@ -708,19 +679,19 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
708
679
|
</div>
|
|
709
680
|
)}
|
|
710
681
|
{sectionproperties.showupperheadersection == 'Hide' && (
|
|
711
|
-
<div
|
|
682
|
+
<div className={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
|
|
712
683
|
<Dropdown>
|
|
713
684
|
<Dropdown.Toggle>
|
|
714
|
-
<li
|
|
685
|
+
<li className={' d-flex align-items-center justify-content-center '}>
|
|
715
686
|
{langdetect == 'en' && (
|
|
716
|
-
<div
|
|
717
|
-
<p
|
|
687
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
688
|
+
<p className="m-0 p-0 mr-2">En</p>
|
|
718
689
|
<MdKeyboardArrowDown />
|
|
719
690
|
</div>
|
|
720
691
|
)}
|
|
721
692
|
{langdetect == 'ar' && (
|
|
722
|
-
<div
|
|
723
|
-
<p
|
|
693
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
694
|
+
<p className="m-0 p-0 ml-2">ع</p>
|
|
724
695
|
<MdKeyboardArrowDown />
|
|
725
696
|
</div>
|
|
726
697
|
)}
|
|
@@ -732,9 +703,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
732
703
|
setlang('ar');
|
|
733
704
|
}}
|
|
734
705
|
>
|
|
735
|
-
<div
|
|
706
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
|
|
736
707
|
<p
|
|
737
|
-
|
|
708
|
+
className={'dropdownitem d-flex align-items-center m-0 p-0'}
|
|
738
709
|
style={{
|
|
739
710
|
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
740
711
|
fontWeight: sectionproperties.dropdown_fontweight,
|
|
@@ -742,7 +713,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
742
713
|
}}
|
|
743
714
|
>
|
|
744
715
|
<img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
745
|
-
<span
|
|
716
|
+
<span className={'ml-2 mr-2'}>{lang.arabic}</span>
|
|
746
717
|
</p>
|
|
747
718
|
</div>
|
|
748
719
|
</Dropdown.Item>
|
|
@@ -752,9 +723,9 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
752
723
|
setlang('en');
|
|
753
724
|
}}
|
|
754
725
|
>
|
|
755
|
-
<div
|
|
726
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
|
|
756
727
|
<p
|
|
757
|
-
|
|
728
|
+
className={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
|
|
758
729
|
style={{
|
|
759
730
|
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
760
731
|
fontWeight: sectionproperties.dropdown_fontweight,
|
|
@@ -762,7 +733,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
762
733
|
}}
|
|
763
734
|
>
|
|
764
735
|
<img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
765
|
-
<span
|
|
736
|
+
<span className={'ml-2 mr-2'}>{lang.english}</span>
|
|
766
737
|
</p>
|
|
767
738
|
</div>
|
|
768
739
|
</Dropdown.Item>
|
|
@@ -772,7 +743,7 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
772
743
|
)}
|
|
773
744
|
</div>
|
|
774
745
|
</div>
|
|
775
|
-
<div
|
|
746
|
+
<div className="col-lg-12 p-0">
|
|
776
747
|
{sectionproperties.showhidesubheader == 'Show' && (
|
|
777
748
|
<Subheader
|
|
778
749
|
sectionpropertiesprops={sectionproperties}
|
|
@@ -787,8 +758,8 @@ const Header_threesectionslogocentered = (props) => {
|
|
|
787
758
|
)}
|
|
788
759
|
</div>
|
|
789
760
|
</div>
|
|
790
|
-
<div
|
|
791
|
-
<Headerresponsive
|
|
761
|
+
<div className="col-lg-12 p-0">
|
|
762
|
+
<Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
|
|
792
763
|
</div>
|
|
793
764
|
</div>
|
|
794
765
|
</div>
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState, useContext } from 'react';
|
|
2
2
|
import { useHistory, Link } from 'react-router-dom';
|
|
3
3
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
|
-
// import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
|
|
5
|
-
// import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
|
|
6
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
|
|
7
|
-
// import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
|
|
8
4
|
import { MdOutlineShoppingCart } from 'react-icons/md';
|
|
9
|
-
|
|
10
5
|
import { css } from 'glamor';
|
|
11
6
|
import { BiLogOutCircle, BiChevronDown } from 'react-icons/bi';
|
|
12
7
|
import { MdOutlinePolicy } from 'react-icons/md';
|
|
@@ -19,28 +14,13 @@ import { BsBag, BsHandbag } from 'react-icons/bs';
|
|
|
19
14
|
import { BiUser } from 'react-icons/bi';
|
|
20
15
|
import Subheader from '../Subheader/Subheader.jsx';
|
|
21
16
|
import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
22
|
-
// import '../../StaticPages/Filter/filter.module.css';
|
|
23
17
|
import egyptflag from '../../Generalfiles/images/egyptflag.png';
|
|
24
18
|
import usflag from '../../Generalfiles/images/usflag.png';
|
|
25
19
|
import { FiShoppingCart } from 'react-icons/fi';
|
|
26
20
|
import { IKImage } from 'imagekitio-react';
|
|
27
21
|
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
28
22
|
|
|
29
|
-
// import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
|
|
30
|
-
|
|
31
23
|
const Headerresponsive = (props) => {
|
|
32
|
-
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
33
|
-
// const { templatepropcontext } = useContext(Contexthandlerscontext);
|
|
34
|
-
// const {
|
|
35
|
-
// setsidecartnavshowcontext,
|
|
36
|
-
// fetchAuthorizationQueryContext,
|
|
37
|
-
// LogoutMutationContext,
|
|
38
|
-
// fetchcustomercartQueryContext,
|
|
39
|
-
// templateproperties_context,
|
|
40
|
-
// setSearchHeaderInputContext,
|
|
41
|
-
// favoriteprojectscountContext,
|
|
42
|
-
// } = useContext(FetchingContext);
|
|
43
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
44
24
|
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
45
25
|
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
46
26
|
const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
@@ -348,7 +328,7 @@ const Headerresponsive = (props) => {
|
|
|
348
328
|
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
349
329
|
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
350
330
|
<AiOutlineUserAdd className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
351
|
-
<span>{lang.signup}</span>
|
|
331
|
+
<span className="text-transform-none">{lang.signup}</span>
|
|
352
332
|
</p>
|
|
353
333
|
</div>
|
|
354
334
|
</Dropdown.Item>
|
|
@@ -545,7 +525,7 @@ const Headerresponsive = (props) => {
|
|
|
545
525
|
}}
|
|
546
526
|
/>
|
|
547
527
|
|
|
548
|
-
<Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'respheader'}
|
|
528
|
+
<Searchlist sectionpropertiesprops={sectionproperties} actions={actions} srcfromprops={'respheader'} />
|
|
549
529
|
</div>
|
|
550
530
|
</div>
|
|
551
531
|
<div className={langdetect == 'en' ? 'col-md-2 allcentered pl-1 pr-1 pt-1 resposiveheader_languagedropdown' : 'col-md-2 allcentered pl-1 pr-1 pt-1'}>
|
|
@@ -671,7 +651,7 @@ const Headerresponsive = (props) => {
|
|
|
671
651
|
<div className="row m-0 w-100 h-100">
|
|
672
652
|
{sectionproperties.showhidesubheader == 'Show' && (
|
|
673
653
|
<div className="col-lg-12 p-0 h-100">
|
|
674
|
-
<Subheader sectionpropertiesprops={sectionproperties} actions={
|
|
654
|
+
<Subheader sectionpropertiesprops={sectionproperties} actions={actions} />
|
|
675
655
|
</div>
|
|
676
656
|
)}
|
|
677
657
|
</div>
|