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