tabexseriescomponents 0.0.64 → 0.0.65
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 +6838 -6468
- package/dist/index.esm.js +6841 -6471
- package/dist/index.umd.js +6841 -6472
- package/package.json +1 -1
- package/srcOLD/Contexts/LanguageContext.jsx +347 -0
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
- package/srcOLD/StylesJS/Customstyles.js +235 -0
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +40 -0
- package/srcOLD/index.jsx +175 -0
- package/srcOLD/styles/Home.module.css +129 -0
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcOLD/styles/cards/Productcard6.module.css +9 -0
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcOLD/styles/cards/categorycard.module.css +102 -0
- package/srcOLD/styles/cards/categorycard3.module.css +51 -0
- package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcOLD/styles/general/bootstrap.css +4420 -0
- package/srcOLD/styles/general/dropdown.css +199 -0
- package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
- package/srcOLD/styles/general/filter.module.css +108 -0
- package/srcOLD/styles/general/form.module.css +273 -0
- package/srcOLD/styles/general/general.module.css +709 -0
- package/srcOLD/styles/general/image-gallery.css +481 -0
- package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
- package/srcOLD/styles/general/scrollbtn.module.css +22 -0
- package/srcOLD/styles/general/slick.module.css +166 -0
- package/srcOLD/styles/general/tabs.module.css +110 -0
- package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
- package/srcOLD/styles/globals.css +26 -0
- package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
- package/srcOLD/styles/headers/Header7.module.css +50 -0
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
- package/srcOLD/styles/headers/Sideheader.module.css +108 -0
- package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +175 -0
- package/srcOLD/styles/headers/header5.module.css +30 -0
- package/srcOLD/styles/headers/header6.module.css +117 -0
- package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
- package/srcOLD/styles/headers/headerresturant.module.css +89 -0
- package/srcOLD/styles/headers/headerstyles.module.css +24 -0
- package/srcOLD/styles/headers/modernheader.module.css +78 -0
- package/srcOLD/styles/headers/subheader.module.css +114 -0
- package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcOLD/styles/staticpages/accordion.module.css +9 -0
- package/srcOLD/styles/staticpages/cart.module.css +108 -0
- package/srcOLD/styles/staticpages/dropdown.css +196 -0
- package/srcOLD/styles/staticpages/filter.module.css +139 -0
- package/srcOLD/styles/staticpages/login.module.css +146 -0
- package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
- package/srcOLD/styles/staticpages/shop.module.css +191 -0
- package/srcOLD/styles/staticpages/signup.module.css +206 -0
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
- package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { useHistory, Link } from 'react-router-dom';
|
|
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
|
+
import { MdOutlineShoppingCart } from 'react-icons/md';
|
|
9
|
+
|
|
10
|
+
import { css } from 'glamor';
|
|
11
|
+
import { BiLogOutCircle, BiChevronDown } from 'react-icons/bi';
|
|
12
|
+
import { MdOutlinePolicy } from 'react-icons/md';
|
|
13
|
+
import { AiFillStar, AiOutlineLogin, AiOutlineUserAdd, AiOutlineHeart } from 'react-icons/ai';
|
|
14
|
+
import { RiSearchLine } from 'react-icons/ri';
|
|
15
|
+
import { FiShoppingBag } from 'react-icons/fi';
|
|
16
|
+
import { FaRegHeart } from 'react-icons/fa';
|
|
17
|
+
import { CgMenuLeft, CgMenuRight, CgShoppingBag } from 'react-icons/cg';
|
|
18
|
+
import { BsBag, BsHandbag } from 'react-icons/bs';
|
|
19
|
+
import { BiUser } from 'react-icons/bi';
|
|
20
|
+
import Subheader from '../Subheader/Subheader.jsx';
|
|
21
|
+
import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
22
|
+
// import '../../StaticPages/Filter/filter.module.css';
|
|
23
|
+
import egyptflag from '../../Generalfiles/images/egyptflag.png';
|
|
24
|
+
import usflag from '../../Generalfiles/images/usflag.png';
|
|
25
|
+
import { FiShoppingCart } from 'react-icons/fi';
|
|
26
|
+
import { IKImage } from 'imagekitio-react';
|
|
27
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
28
|
+
|
|
29
|
+
// import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
|
|
30
|
+
|
|
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);
|
|
44
|
+
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
45
|
+
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
46
|
+
const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
47
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
48
|
+
const lang = props.actions.lang;
|
|
49
|
+
const langdetect = props.actions.langdetect;
|
|
50
|
+
const setlang = props.actions.setlang;
|
|
51
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
52
|
+
const authdetailsContext = props.actions.authdetailsContext;
|
|
53
|
+
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
54
|
+
const templateproperties_context = props.actions.templateproperties_context;
|
|
55
|
+
const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
56
|
+
const routingcountext = props.actions.routingcountext;
|
|
57
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
58
|
+
const actions = props.actions;
|
|
59
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (props.sectionpropertiesprops != undefined) {
|
|
62
|
+
setsectionproperties({ ...props.sectionpropertiesprops });
|
|
63
|
+
}
|
|
64
|
+
}, [props.sectionpropertiesprops]);
|
|
65
|
+
const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
68
|
+
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
69
|
+
if (Array.isArray(logoarrayofobjectsparsed)) {
|
|
70
|
+
setlogoarrayofobjects([...logoarrayofobjectsparsed]);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, [templateproperties_context]);
|
|
74
|
+
const header_cssstyles = {
|
|
75
|
+
header_logo: css({
|
|
76
|
+
width: sectionproperties.logo_width + 'px',
|
|
77
|
+
height: sectionproperties.logo_height + 'px',
|
|
78
|
+
}),
|
|
79
|
+
navbar_item_text_responsive: css({
|
|
80
|
+
fontSize: sectionproperties.header_fontSizeresponsive + 'px',
|
|
81
|
+
color: sectionproperties.header_fontColorresponsive,
|
|
82
|
+
textTransform: sectionproperties.header_textTransformresponsive,
|
|
83
|
+
fontWeight: sectionproperties.header_textfontweight_responsive,
|
|
84
|
+
transition: '.3s',
|
|
85
|
+
':hover': {
|
|
86
|
+
color: sectionproperties.header_fontColorresponsive_onhover,
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
badge_counter_header_notifications: css({
|
|
90
|
+
display: 'flex',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
position: 'absolute',
|
|
94
|
+
background: sectionproperties.badge_bgcolor,
|
|
95
|
+
width: '45px',
|
|
96
|
+
height: '45px',
|
|
97
|
+
color: sectionproperties.badge_color,
|
|
98
|
+
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
99
|
+
fontSize: '25px',
|
|
100
|
+
transform: 'scale(0.3)',
|
|
101
|
+
transformOrigin: langdetect == 'en' ? 'top right' : 'top left',
|
|
102
|
+
marginRight: langdetect == 'en' ? 0 : '-5px',
|
|
103
|
+
}),
|
|
104
|
+
wishlistbtn: css({
|
|
105
|
+
width: sectionproperties.wishlistbtnresp_width + 'px',
|
|
106
|
+
height: sectionproperties.wishlistbtnresp_height + 'px',
|
|
107
|
+
borderRadius: sectionproperties.wishlistbtnresp_borderRadius + 'px',
|
|
108
|
+
border: sectionproperties.wishlistbtnresp_borderWidth + 'px solid ' + sectionproperties.wishlistbtnresp_borderColor,
|
|
109
|
+
background: sectionproperties.wishlistbtnresp_bgColor,
|
|
110
|
+
fontSize: sectionproperties.wishlistresponsivefontsize + 'px',
|
|
111
|
+
color: sectionproperties.wishlistresponsivecolor,
|
|
112
|
+
position: 'relative',
|
|
113
|
+
}),
|
|
114
|
+
addtocartbtn_resp: css({
|
|
115
|
+
position: 'relative',
|
|
116
|
+
cursor: 'pointer',
|
|
117
|
+
display: 'flex',
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
color: sectionproperties.cart_BtnTextcolor_resp,
|
|
120
|
+
background: sectionproperties.cart_BtnbgColor_resp,
|
|
121
|
+
width: sectionproperties.cart_BtnWidth_resp + 'px',
|
|
122
|
+
height: sectionproperties.cart_BtnHeight_resp + 'px',
|
|
123
|
+
borderRadius: sectionproperties.cart_BtnborderRadius_resp + 'px',
|
|
124
|
+
border: sectionproperties.cartBtnresp_borderWidth + 'px solid ' + sectionproperties.cartBtnresp_borderColor,
|
|
125
|
+
transition: '.3s',
|
|
126
|
+
}),
|
|
127
|
+
searchbarcont: css({
|
|
128
|
+
position: 'relative',
|
|
129
|
+
transition: '.3s',
|
|
130
|
+
}),
|
|
131
|
+
searchbar_icon_cont: css({
|
|
132
|
+
display: 'flex',
|
|
133
|
+
justifyContent: 'center',
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
textAlign: 'center',
|
|
136
|
+
color: sectionproperties.searchbaricon_color,
|
|
137
|
+
transition: '0.3s ease',
|
|
138
|
+
position: 'absolute',
|
|
139
|
+
left: langdetect == 'en' ? 5 : '',
|
|
140
|
+
right: langdetect == 'en' ? '' : 5,
|
|
141
|
+
bottom: 0,
|
|
142
|
+
top: 0,
|
|
143
|
+
margin: 'auto',
|
|
144
|
+
}),
|
|
145
|
+
searchbarcont_input: css({
|
|
146
|
+
height: '100%',
|
|
147
|
+
width: '100%',
|
|
148
|
+
outline: 'none',
|
|
149
|
+
border: 'none',
|
|
150
|
+
background: 'transparent',
|
|
151
|
+
color: sectionproperties.searchbarcontinput_color,
|
|
152
|
+
fontWeight: sectionproperties.searchbarcont_inputfontweight,
|
|
153
|
+
fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
|
|
154
|
+
paddingRight: langdetect == 'en' ? 0 : '20px',
|
|
155
|
+
paddingLeft: langdetect == 'en' ? '20px' : 0,
|
|
156
|
+
transition: '0.3s',
|
|
157
|
+
}),
|
|
158
|
+
languagecontainer: css({
|
|
159
|
+
color: sectionproperties.language_container_color,
|
|
160
|
+
cursor: 'pointer',
|
|
161
|
+
transition: '.3s',
|
|
162
|
+
':hover': {
|
|
163
|
+
color: sectionproperties.language_container_coloronhover,
|
|
164
|
+
},
|
|
165
|
+
}),
|
|
166
|
+
dropdownitemcontainer: css({
|
|
167
|
+
fontSize: '13px',
|
|
168
|
+
color: sectionproperties.dropdown_color,
|
|
169
|
+
fontWeight: sectionproperties.dropdown_fontweight,
|
|
170
|
+
textTransform: sectionproperties.dropdown_texttransform,
|
|
171
|
+
padding: '0.3rem 0.8rem',
|
|
172
|
+
display: 'flex',
|
|
173
|
+
alignItems: 'center',
|
|
174
|
+
transition: '.3s',
|
|
175
|
+
':hover': {
|
|
176
|
+
color: sectionproperties.dropdown_hovercolor,
|
|
177
|
+
},
|
|
178
|
+
}),
|
|
179
|
+
userbtnLoggedin_icon: css({
|
|
180
|
+
fontSize: sectionproperties.userBtniconresp_size,
|
|
181
|
+
color: sectionproperties.userBtnTextresp_color,
|
|
182
|
+
}),
|
|
183
|
+
userbtn_respContainer: css({
|
|
184
|
+
position: 'relative',
|
|
185
|
+
cursor: 'pointer',
|
|
186
|
+
display: 'flex',
|
|
187
|
+
alignItems: 'center',
|
|
188
|
+
color: sectionproperties.userBtnTextresp_color,
|
|
189
|
+
fontSize: sectionproperties.userBtntextfontresp_size + 'px',
|
|
190
|
+
fontWeight: sectionproperties.userBtnTextfontweight,
|
|
191
|
+
transition: '.3s',
|
|
192
|
+
':hover .userbtn_resp': {
|
|
193
|
+
color: sectionproperties.userbtnresp_Coloronhover,
|
|
194
|
+
},
|
|
195
|
+
}),
|
|
196
|
+
userbtnloggedin: css({
|
|
197
|
+
width: sectionproperties.userBtnWidth_resp + 'px',
|
|
198
|
+
height: sectionproperties.userBtnHeight_resp + 'px',
|
|
199
|
+
backgroundColor: sectionproperties.userBtnbgColor_resp,
|
|
200
|
+
color: sectionproperties.userBtnTextcolor_resp, //aywa da icon color
|
|
201
|
+
fontSize: sectionproperties.userBtniconresp_size + 'px',
|
|
202
|
+
borderRadius: sectionproperties.userBtnResp_BorderRadius + 'px',
|
|
203
|
+
border: sectionproperties.userBtnResp_BorderWidth + 'px solid' + sectionproperties.userBtnResp_BorderColor,
|
|
204
|
+
transition: '.3s',
|
|
205
|
+
':hover': {
|
|
206
|
+
color: sectionproperties.userbtnresp_IconColoronhover,
|
|
207
|
+
},
|
|
208
|
+
}),
|
|
209
|
+
loggedintext: css({
|
|
210
|
+
color: sectionproperties.userbtnresp_loggedincolor,
|
|
211
|
+
fontSize: sectionproperties.userBtntextfontresp_size + 'px',
|
|
212
|
+
fontWeight: sectionproperties.userBtnTextfontweight,
|
|
213
|
+
maxWidth: '50px',
|
|
214
|
+
transition: '.3s',
|
|
215
|
+
}),
|
|
216
|
+
userbtnloggedincontainer: css({
|
|
217
|
+
':hover .loggedintext': {
|
|
218
|
+
color: sectionproperties.userbtnresp_loggedincoloronhover,
|
|
219
|
+
},
|
|
220
|
+
':hover .userbtnloggedin': {
|
|
221
|
+
color: sectionproperties.userbtnresp_IconColoronhover,
|
|
222
|
+
borderColor: sectionproperties.userbtnresp_IconColoronhover,
|
|
223
|
+
backgroundColor: sectionproperties.userbtnresp_bgColoronhover,
|
|
224
|
+
},
|
|
225
|
+
}),
|
|
226
|
+
};
|
|
227
|
+
return (
|
|
228
|
+
<div className="row m-0 w-100">
|
|
229
|
+
<div className="col-lg-12 p-0">
|
|
230
|
+
{sectionproperties.length != 0 && (
|
|
231
|
+
<div
|
|
232
|
+
className={' row m-0 w-100 d-none d-md-flex p-0 '}
|
|
233
|
+
style={{
|
|
234
|
+
background: sectionproperties.resposive_bgcolor,
|
|
235
|
+
}}
|
|
236
|
+
>
|
|
237
|
+
<div className="col-lg-12 p-0">
|
|
238
|
+
<div className="row m-0 w-100 p-0 pl-2 pr-2 ">
|
|
239
|
+
<div className="col-md-6 col-sm-5 d-flex filter align-items-center p-0">
|
|
240
|
+
<div
|
|
241
|
+
className={langdetect == 'en' ? 'mr-1' : 'ml-1'}
|
|
242
|
+
onClick={() => {
|
|
243
|
+
var element2 = document.getElementById('filter');
|
|
244
|
+
element2.classList.toggle('d-flex');
|
|
245
|
+
var element3 = document.getElementById('subheader');
|
|
246
|
+
element3.classList.toggle('d-none');
|
|
247
|
+
}}
|
|
248
|
+
>
|
|
249
|
+
{langdetect == 'en' ? (
|
|
250
|
+
<CgMenuLeft size={sectionproperties.resp_sidenav_size + 'px'} style={{ color: sectionproperties.resp_sidenav_color }} />
|
|
251
|
+
) : (
|
|
252
|
+
<CgMenuRight size={sectionproperties.resp_sidenav_size + 'px'} style={{ color: sectionproperties.resp_sidenav_color }} />
|
|
253
|
+
)}
|
|
254
|
+
<i className="h-100 d-flex align-items-center"></i>
|
|
255
|
+
</div>
|
|
256
|
+
<div
|
|
257
|
+
className={header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start '}
|
|
258
|
+
style={{ cursor: 'pointer' }}
|
|
259
|
+
onClick={() => {
|
|
260
|
+
routingcountext('home');
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
263
|
+
<IKImage
|
|
264
|
+
urlEndpoint={IKurlEndpoint}
|
|
265
|
+
publicKey={IKpublicKey}
|
|
266
|
+
path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
|
|
267
|
+
style={{
|
|
268
|
+
maxWidth: '100%',
|
|
269
|
+
maxHeight: '100%',
|
|
270
|
+
}}
|
|
271
|
+
/>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
<div className="col-md-6 col-sm-7 d-flex align-items-center justify-content-end p-0">
|
|
275
|
+
<Dropdown>
|
|
276
|
+
<Dropdown.Toggle>
|
|
277
|
+
{!authdetailsContext.loggedin && (
|
|
278
|
+
<button className={`${header_cssstyles.userbtn_respContainer}` + ' d-flex align-items-center justify-content-center p-0 m-0 font-weight-600 mt-1 '}>
|
|
279
|
+
<p className={`${header_cssstyles.userbtnLoggedin_icon}` + ' userbtn_resp m-0 p-0 p-0 align-items-center allcentered '}>
|
|
280
|
+
<BiUser />
|
|
281
|
+
</p>
|
|
282
|
+
<span
|
|
283
|
+
className="userbtn_resp"
|
|
284
|
+
style={{
|
|
285
|
+
marginLeft: langdetect == 'en' ? '3px' : 0,
|
|
286
|
+
marginRight: langdetect == 'en' ? 0 : '3px',
|
|
287
|
+
}}
|
|
288
|
+
>
|
|
289
|
+
{lang.login}
|
|
290
|
+
</span>
|
|
291
|
+
</button>
|
|
292
|
+
)}
|
|
293
|
+
{authdetailsContext.loggedin && (
|
|
294
|
+
<div className={header_cssstyles.userbtnloggedincontainer + ' d-flex align-items-center justify-content-center mb-1 '} sytle={{ position: 'relative' }}>
|
|
295
|
+
<p
|
|
296
|
+
className={`${header_cssstyles.userbtnloggedin}` + ' m-0 p-0 p-0 align-items-center allcentered userbtnloggedin '}
|
|
297
|
+
style={{ textTransform: 'uppercase' }}
|
|
298
|
+
>
|
|
299
|
+
<i className="allcentered">
|
|
300
|
+
<BiUser />
|
|
301
|
+
</i>
|
|
302
|
+
</p>
|
|
303
|
+
<p
|
|
304
|
+
className="mb-0 p-0 text-capitalize"
|
|
305
|
+
style={{
|
|
306
|
+
lineHeight: '16px',
|
|
307
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
308
|
+
marginLeft: langdetect == 'en' ? '5px' : 0,
|
|
309
|
+
marginRight: langdetect == 'en' ? 0 : '5px',
|
|
310
|
+
}}
|
|
311
|
+
>
|
|
312
|
+
<span
|
|
313
|
+
style={{
|
|
314
|
+
color: sectionproperties.usergreetingresp_color,
|
|
315
|
+
fontSize: sectionproperties.usergreetingresp_size + 'px',
|
|
316
|
+
fontWeight: 300,
|
|
317
|
+
}}
|
|
318
|
+
>
|
|
319
|
+
{lang.hello}
|
|
320
|
+
{langdetect == 'en' ? ',' : '،'}
|
|
321
|
+
</span>
|
|
322
|
+
<br />
|
|
323
|
+
<span className={header_cssstyles.loggedintext + ' text-overflow d-block loggedintext '}>{authdetailsContext.customerinfo.name}</span>
|
|
324
|
+
</p>
|
|
325
|
+
</div>
|
|
326
|
+
)}
|
|
327
|
+
</Dropdown.Toggle>
|
|
328
|
+
{!authdetailsContext.loggedin && (
|
|
329
|
+
<Dropdown.Menu>
|
|
330
|
+
<Dropdown.Item
|
|
331
|
+
onClick={() => {
|
|
332
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
333
|
+
}}
|
|
334
|
+
>
|
|
335
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
336
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
337
|
+
<AiOutlineLogin className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
338
|
+
<span>{lang.login}</span>
|
|
339
|
+
</p>
|
|
340
|
+
</div>
|
|
341
|
+
</Dropdown.Item>
|
|
342
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
343
|
+
<Dropdown.Item
|
|
344
|
+
onClick={() => {
|
|
345
|
+
routingcountext(StaticPagesLinksContext.Signup);
|
|
346
|
+
}}
|
|
347
|
+
>
|
|
348
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
349
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
350
|
+
<AiOutlineUserAdd className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
351
|
+
<span>{lang.signup}</span>
|
|
352
|
+
</p>
|
|
353
|
+
</div>
|
|
354
|
+
</Dropdown.Item>
|
|
355
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
356
|
+
<Dropdown.Item
|
|
357
|
+
onClick={() => {
|
|
358
|
+
routingcountext(StaticPagesLinksContext.viewcart);
|
|
359
|
+
}}
|
|
360
|
+
>
|
|
361
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
362
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
363
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
|
|
364
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
|
|
365
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
|
|
366
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
|
|
367
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
|
|
368
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
|
|
369
|
+
<span className="ml-2 mr-2">{lang.viewcart}</span>
|
|
370
|
+
</p>
|
|
371
|
+
</div>
|
|
372
|
+
</Dropdown.Item>
|
|
373
|
+
</Dropdown.Menu>
|
|
374
|
+
)}
|
|
375
|
+
{authdetailsContext.loggedin && (
|
|
376
|
+
<Dropdown.Menu style={{ minWidth: '200px' }}>
|
|
377
|
+
<Dropdown.Item className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center justify-content-center '}>
|
|
378
|
+
<span
|
|
379
|
+
style={{
|
|
380
|
+
color: '#8fa0bd',
|
|
381
|
+
fontSize: sectionproperties.dropdownusernamefontsize + 'px',
|
|
382
|
+
}}
|
|
383
|
+
>
|
|
384
|
+
{lang.hello}
|
|
385
|
+
{langdetect == 'en' ? ',' : '،'}
|
|
386
|
+
</span>
|
|
387
|
+
<span
|
|
388
|
+
className="font-weight-600 ml-1 mr-1 text-overflow text-capitalize"
|
|
389
|
+
onClick={() => {
|
|
390
|
+
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
391
|
+
}}
|
|
392
|
+
style={{
|
|
393
|
+
color: sectionproperties.dropdownusernamecolor,
|
|
394
|
+
fontSize: sectionproperties.dropdownusernamefontsize + 'px',
|
|
395
|
+
}}
|
|
396
|
+
>
|
|
397
|
+
{authdetailsContext.customerinfo.name}
|
|
398
|
+
</span>
|
|
399
|
+
</Dropdown.Item>
|
|
400
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
401
|
+
<Dropdown.Item
|
|
402
|
+
onClick={() => {
|
|
403
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
404
|
+
}}
|
|
405
|
+
>
|
|
406
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
407
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
408
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
|
|
409
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
|
|
410
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
|
|
411
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
|
|
412
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
|
|
413
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
|
|
414
|
+
<span className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>{lang.orderhistory}</span>
|
|
415
|
+
</p>
|
|
416
|
+
</div>
|
|
417
|
+
</Dropdown.Item>
|
|
418
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
419
|
+
|
|
420
|
+
<Dropdown.Item
|
|
421
|
+
onClick={() => {
|
|
422
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
423
|
+
}}
|
|
424
|
+
>
|
|
425
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
426
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
427
|
+
{sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart />}
|
|
428
|
+
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
|
|
429
|
+
<span className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>{lang.wishlist}</span>
|
|
430
|
+
</p>
|
|
431
|
+
</div>
|
|
432
|
+
</Dropdown.Item>
|
|
433
|
+
|
|
434
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
435
|
+
<Dropdown.Item
|
|
436
|
+
onClick={() => {
|
|
437
|
+
routingcountext(StaticPagesLinksContext.Policies);
|
|
438
|
+
}}
|
|
439
|
+
>
|
|
440
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
441
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
442
|
+
<MdOutlinePolicy />
|
|
443
|
+
<span className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>{lang.policies}</span>
|
|
444
|
+
</p>
|
|
445
|
+
</div>
|
|
446
|
+
</Dropdown.Item>
|
|
447
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
448
|
+
<Dropdown.Item
|
|
449
|
+
onClick={() => {
|
|
450
|
+
LogoutMutationContext.mutate();
|
|
451
|
+
}}
|
|
452
|
+
>
|
|
453
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
454
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
455
|
+
<BiLogOutCircle />
|
|
456
|
+
<span className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>{lang.logout}</span>
|
|
457
|
+
</p>
|
|
458
|
+
</div>
|
|
459
|
+
</Dropdown.Item>
|
|
460
|
+
</Dropdown.Menu>
|
|
461
|
+
)}
|
|
462
|
+
</Dropdown>
|
|
463
|
+
{sectionproperties.faviconshape != null && (
|
|
464
|
+
<div style={{ position: 'relative', marginLeft: langdetect == 'en' ? '12px' : '16px', marginRight: langdetect == 'en' ? '16px' : '16px' }}>
|
|
465
|
+
<button
|
|
466
|
+
className={header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 '}
|
|
467
|
+
onClick={() => {
|
|
468
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
469
|
+
}}
|
|
470
|
+
>
|
|
471
|
+
<i className={' h-100 d-flex align-items-center justify-content-center '}>
|
|
472
|
+
{sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart />}
|
|
473
|
+
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
|
|
474
|
+
</i>
|
|
475
|
+
</button>
|
|
476
|
+
<div
|
|
477
|
+
className={`${header_cssstyles.badge_counter_header_notifications}`}
|
|
478
|
+
style={{
|
|
479
|
+
top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
|
|
480
|
+
right: sectionproperties.wishlistresponsivebadgefromright + 'px',
|
|
481
|
+
}}
|
|
482
|
+
>
|
|
483
|
+
{favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
)}
|
|
487
|
+
<div style={{ position: 'relative' }}>
|
|
488
|
+
<button
|
|
489
|
+
className={`${header_cssstyles.addtocartbtn_resp}` + ' d-flex align-items-center justify-content-center ml-1 p-0 '}
|
|
490
|
+
onClick={() => {
|
|
491
|
+
if (fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length > 7) {
|
|
492
|
+
routingcountext(StaticPagesLinksContext.viewcart);
|
|
493
|
+
} else {
|
|
494
|
+
setsidecartnavshowcontext(true);
|
|
495
|
+
}
|
|
496
|
+
}}
|
|
497
|
+
>
|
|
498
|
+
<i className={' h-100 d-flex align-items-center justify-content-center '}>
|
|
499
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtniconresp_size} />}
|
|
500
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtniconresp_size} />}
|
|
501
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtniconresp_size} />}
|
|
502
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtniconresp_size} />}
|
|
503
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtniconresp_size} />}
|
|
504
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtniconresp_size} />}
|
|
505
|
+
</i>
|
|
506
|
+
</button>
|
|
507
|
+
<div
|
|
508
|
+
className={`${header_cssstyles.badge_counter_header_notifications}`}
|
|
509
|
+
style={{
|
|
510
|
+
top: sectionproperties.cartbadgefromtop + 'px',
|
|
511
|
+
right: sectionproperties.cartbadgefromright + 'px',
|
|
512
|
+
}}
|
|
513
|
+
>
|
|
514
|
+
{fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
</div>
|
|
519
|
+
<div
|
|
520
|
+
className="row m-0 w-100 p-0"
|
|
521
|
+
style={{
|
|
522
|
+
borderTop: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
523
|
+
borderBottom: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
524
|
+
}}
|
|
525
|
+
>
|
|
526
|
+
<div
|
|
527
|
+
className="col-md-10 p-0"
|
|
528
|
+
style={{
|
|
529
|
+
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
530
|
+
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
531
|
+
}}
|
|
532
|
+
>
|
|
533
|
+
<div className={header_cssstyles.searchbarcont + ' p-2 m-auto '}>
|
|
534
|
+
<span className={header_cssstyles.searchbar_icon_cont + ' h-100 d-flex align-items-center justify-content-center m-0 pr-0 cursor-pointer '}>
|
|
535
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
536
|
+
<RiSearchLine size={sectionproperties.searchbarcontfontsize} />
|
|
537
|
+
</i>
|
|
538
|
+
</span>
|
|
539
|
+
<input
|
|
540
|
+
type="text"
|
|
541
|
+
placeholder={langdetect == 'en' ? 'What are you looking for?' : 'بحث...'}
|
|
542
|
+
className={`${header_cssstyles.searchbarcont_input}`}
|
|
543
|
+
onChange={(event) => {
|
|
544
|
+
setSearchHeaderInputContext(event.target.value);
|
|
545
|
+
}}
|
|
546
|
+
/>
|
|
547
|
+
|
|
548
|
+
<Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'respheader'} actions={actions} />
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
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'}>
|
|
552
|
+
<Dropdown>
|
|
553
|
+
<Dropdown.Toggle>
|
|
554
|
+
<div className={'allcentered m-0 cursor-pointer'}>
|
|
555
|
+
{langdetect == 'en' && (
|
|
556
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
557
|
+
<img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
558
|
+
<i className="h-100 allcentered ml-2">
|
|
559
|
+
<BiChevronDown size={20} />
|
|
560
|
+
</i>
|
|
561
|
+
</div>
|
|
562
|
+
)}
|
|
563
|
+
{langdetect == 'ar' && (
|
|
564
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
565
|
+
<img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
566
|
+
<i className="h-100 allcentered mr-2">
|
|
567
|
+
<BiChevronDown size={20} />
|
|
568
|
+
</i>
|
|
569
|
+
</div>
|
|
570
|
+
)}
|
|
571
|
+
</div>
|
|
572
|
+
</Dropdown.Toggle>
|
|
573
|
+
<Dropdown.Menu>
|
|
574
|
+
<Dropdown.Item
|
|
575
|
+
className={`${header_cssstyles.dropdownitem}`}
|
|
576
|
+
onClick={() => {
|
|
577
|
+
setlang('ar');
|
|
578
|
+
}}
|
|
579
|
+
>
|
|
580
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
581
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
582
|
+
<img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
583
|
+
<span className="ml-2 mr-2">{lang.arabic}</span>
|
|
584
|
+
</p>
|
|
585
|
+
</div>
|
|
586
|
+
</Dropdown.Item>
|
|
587
|
+
<Dropdown.Divider></Dropdown.Divider>
|
|
588
|
+
<Dropdown.Item
|
|
589
|
+
className={`${header_cssstyles.dropdownitem}`}
|
|
590
|
+
onClick={() => {
|
|
591
|
+
setlang('en');
|
|
592
|
+
}}
|
|
593
|
+
>
|
|
594
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
595
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
596
|
+
<img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
|
|
597
|
+
<span className="ml-2 mr-2">{lang.english}</span>
|
|
598
|
+
</p>
|
|
599
|
+
</div>
|
|
600
|
+
</Dropdown.Item>
|
|
601
|
+
</Dropdown.Menu>
|
|
602
|
+
</Dropdown>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
<div className="row m-0 w-100 pt-2 pb-2 filter d-none" id="filter">
|
|
606
|
+
<div className="col-lg-12 p-0">
|
|
607
|
+
<ul className={' d-flex justify-content-center flex-column p-0 '}>
|
|
608
|
+
{templatepropcontext.pagesnprop.map((item, index) => {
|
|
609
|
+
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
610
|
+
return (
|
|
611
|
+
<div className="row m-0 w-100">
|
|
612
|
+
<div className="col-lg-12 p-0 d-flex justify-content-start pl-3 pr-3">
|
|
613
|
+
<div
|
|
614
|
+
onClick={() => {
|
|
615
|
+
routingcountext(item.navigationroute, false, '');
|
|
616
|
+
}}
|
|
617
|
+
>
|
|
618
|
+
<p className={`${header_cssstyles.navbar_item_text_responsive}` + ' mb-0 p-0 '}>
|
|
619
|
+
{langdetect == 'en' ? item.pagename : item.pagename_ar}
|
|
620
|
+
</p>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
<div className="col-lg-12 p-0">
|
|
624
|
+
<hr className="mt-3 mb-3" />
|
|
625
|
+
</div>
|
|
626
|
+
</div>
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
})}
|
|
630
|
+
<div className="row m-0 w-100">
|
|
631
|
+
<div
|
|
632
|
+
className="col-lg-12 d-flex justify-content-start"
|
|
633
|
+
onClick={() => {
|
|
634
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
635
|
+
}}
|
|
636
|
+
>
|
|
637
|
+
<p className={`${header_cssstyles.navbar_item_text_responsive}` + ' mb-0 p-0 d-flex justify-content-start '}>{lang.orderhistory}</p>
|
|
638
|
+
</div>
|
|
639
|
+
<div className="col-lg-12 p-0">
|
|
640
|
+
<hr className="mt-3 mb-3" />
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
<div className="row m-0 w-100">
|
|
644
|
+
<div
|
|
645
|
+
className="col-lg-12 d-flex justify-content-start"
|
|
646
|
+
onClick={() => {
|
|
647
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
648
|
+
}}
|
|
649
|
+
>
|
|
650
|
+
<p className={`${header_cssstyles.navbar_item_text_responsive}` + ' mb-0 p-0 d-flex justify-content-start '}>{lang.wishlist}</p>
|
|
651
|
+
</div>
|
|
652
|
+
<div className="col-lg-12 p-0">
|
|
653
|
+
<hr className="mt-3 mb-3" />
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
<div className="row m-0 w-100">
|
|
657
|
+
<div
|
|
658
|
+
className="col-lg-12 d-flex justify-content-start"
|
|
659
|
+
onClick={() => {
|
|
660
|
+
routingcountext(StaticPagesLinksContext.Policies);
|
|
661
|
+
}}
|
|
662
|
+
>
|
|
663
|
+
<p className={`${header_cssstyles.navbar_item_text_responsive}` + ' mb-0 p-0 '}>{lang.policies}</p>
|
|
664
|
+
</div>
|
|
665
|
+
</div>
|
|
666
|
+
</ul>
|
|
667
|
+
</div>
|
|
668
|
+
</div>
|
|
669
|
+
</div>
|
|
670
|
+
<div className="col-lg-12 p-0 h-100" id="subheader">
|
|
671
|
+
<div className="row m-0 w-100 h-100">
|
|
672
|
+
{sectionproperties.showhidesubheader == 'Show' && (
|
|
673
|
+
<div className="col-lg-12 p-0 h-100">
|
|
674
|
+
<Subheader sectionpropertiesprops={sectionproperties} actions={props.actions} />
|
|
675
|
+
</div>
|
|
676
|
+
)}
|
|
677
|
+
</div>
|
|
678
|
+
</div>
|
|
679
|
+
</div>
|
|
680
|
+
)}
|
|
681
|
+
</div>
|
|
682
|
+
</div>
|
|
683
|
+
);
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
export default Headerresponsive;
|