tabexseriescomponents 0.0.80 → 0.0.82

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.
Files changed (180) hide show
  1. package/dist/index.cjs.js +41 -13
  2. package/dist/index.esm.js +41 -13
  3. package/dist/index.umd.js +41 -13
  4. package/package.json +1 -1
  5. package/componentssrc.rar +0 -0
  6. package/srcOLD/Contexts/LanguageContext.jsx +0 -347
  7. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
  8. package/srcOLD/StylesJS/Customstyles.js +0 -235
  9. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
  10. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
  11. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
  13. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
  15. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
  16. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
  17. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
  18. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
  19. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
  20. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
  21. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
  22. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
  27. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
  28. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
  29. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
  30. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
  31. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
  32. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
  33. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
  34. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
  35. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
  36. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
  37. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
  38. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
  39. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
  40. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
  41. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
  42. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  54. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  55. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
  56. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
  57. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
  58. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
  59. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
  60. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
  61. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
  62. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
  63. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
  64. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
  65. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
  67. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  73. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
  77. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  78. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
  79. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
  84. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
  85. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
  91. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
  92. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
  93. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
  94. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
  95. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
  96. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  97. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  98. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  99. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  100. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
  101. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  102. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
  103. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
  104. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
  105. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
  106. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
  107. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
  108. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
  109. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
  110. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
  111. package/srcOLD/assets/images/cod.png +0 -0
  112. package/srcOLD/assets/images/egyptflag.png +0 -0
  113. package/srcOLD/assets/images/fawry.png +0 -0
  114. package/srcOLD/assets/images/payment.png +0 -0
  115. package/srcOLD/assets/images/paymob.png +0 -0
  116. package/srcOLD/assets/images/paypal.png +0 -0
  117. package/srcOLD/assets/images/shoppingcart.png +0 -0
  118. package/srcOLD/assets/images/usflag.png +0 -0
  119. package/srcOLD/assets/images/visa.png +0 -0
  120. package/srcOLD/assets/images/whatsapp.png +0 -0
  121. package/srcOLD/button.jsx +0 -40
  122. package/srcOLD/index.jsx +0 -175
  123. package/srcOLD/styles/Home.module.css +0 -129
  124. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
  125. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  126. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
  127. package/srcOLD/styles/cards/Productcard6.module.css +0 -9
  128. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
  129. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  130. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  131. package/srcOLD/styles/cards/categorycard.module.css +0 -102
  132. package/srcOLD/styles/cards/categorycard3.module.css +0 -51
  133. package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
  134. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
  135. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
  136. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  137. package/srcOLD/styles/general/bootstrap.css +0 -4420
  138. package/srcOLD/styles/general/dropdown.css +0 -199
  139. package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
  140. package/srcOLD/styles/general/filter.module.css +0 -108
  141. package/srcOLD/styles/general/form.module.css +0 -273
  142. package/srcOLD/styles/general/general.module.css +0 -709
  143. package/srcOLD/styles/general/image-gallery.css +0 -481
  144. package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
  145. package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
  146. package/srcOLD/styles/general/scrollbtn.module.css +0 -22
  147. package/srcOLD/styles/general/slick.module.css +0 -166
  148. package/srcOLD/styles/general/tabs.module.css +0 -110
  149. package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
  150. package/srcOLD/styles/globals.css +0 -26
  151. package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
  152. package/srcOLD/styles/headers/Header7.module.css +0 -50
  153. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
  154. package/srcOLD/styles/headers/Sideheader.module.css +0 -108
  155. package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
  156. package/srcOLD/styles/headers/dropdown.css +0 -0
  157. package/srcOLD/styles/headers/header4.module.css +0 -175
  158. package/srcOLD/styles/headers/header5.module.css +0 -30
  159. package/srcOLD/styles/headers/header6.module.css +0 -117
  160. package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
  161. package/srcOLD/styles/headers/headerresturant.module.css +0 -89
  162. package/srcOLD/styles/headers/headerstyles.module.css +0 -24
  163. package/srcOLD/styles/headers/modernheader.module.css +0 -78
  164. package/srcOLD/styles/headers/subheader.module.css +0 -114
  165. package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
  166. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  167. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
  168. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  169. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  170. package/srcOLD/styles/staticpages/accordion.module.css +0 -9
  171. package/srcOLD/styles/staticpages/cart.module.css +0 -108
  172. package/srcOLD/styles/staticpages/dropdown.css +0 -196
  173. package/srcOLD/styles/staticpages/filter.module.css +0 -139
  174. package/srcOLD/styles/staticpages/login.module.css +0 -146
  175. package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
  176. package/srcOLD/styles/staticpages/shop.module.css +0 -191
  177. package/srcOLD/styles/staticpages/signup.module.css +0 -206
  178. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
  179. package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
  180. package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
@@ -1,687 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- // import { useHistory, Link } from 'react-router-dom';
3
- // import '../../Generalfiles/CSS_GENERAL/dropdown.css';
4
- import headerstyles from '../../../styles/headers//headerstyles.module.css';
5
- // import { LanguageContext } from '../../../LanguageContext';
6
- // import { FetchingContext } from '../../../FetchingContext';
7
- // import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
8
- // import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
9
- import { css } from 'glamor';
10
- import Dropdown from 'react-bootstrap/Dropdown';
11
- import { MdOutlinePolicy, MdOutlineShoppingCart, MdKeyboardArrowDown } from 'react-icons/md';
12
- import { BiLogOutCircle } from 'react-icons/bi';
13
- import { AiOutlineStar, AiOutlineUserAdd, AiOutlineLogin, AiOutlineUser, AiFillStar, AiOutlineHeart } from 'react-icons/ai';
14
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
15
- import { CgShoppingBag } from 'react-icons/cg';
16
- import { FaRegHeart } from 'react-icons/fa';
17
- import { FiShoppingBag, FiShoppingCart, FiUser, FiSearch } from 'react-icons/fi';
18
- import { BsBag, BsHandbag, BsSearch } from 'react-icons/bs';
19
- import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
20
- import Subheader from '../Subheader/Subheader.jsx';
21
- import egyptflag from '../../../assets/images/egyptflag.png';
22
- import usflag from '../../../assets/images/usflag.png';
23
- import { IKImage } from 'imagekitio-react';
24
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
25
- const ClassicHeader = (props) => {
26
- const LogoutMutationContext = props.actions.LogoutMutationContext;
27
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
28
- const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
29
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
30
- const lang = props.actions.lang;
31
- const langdetect = props.actions.langdetect;
32
- const setlang = props.actions.setlang;
33
- const templatepropcontext = props.actions.templatepropcontext;
34
- const authdetailsContext = props.actions.authdetailsContext;
35
- const templateproperties_context = props.actions.templateproperties_context;
36
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
37
- const routingcountext = props.actions.routingcountext;
38
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
39
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
40
- const actions = props.actions;
41
- const [sectionproperties, setsectionproperties] = useState('');
42
- useEffect(() => {
43
- var secpropobj = {};
44
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
45
- if (sectionitem.sectionid == props.sectionidprops) {
46
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
47
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
48
- });
49
- }
50
- });
51
- if (Object.keys(secpropobj).length === 0) {
52
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
53
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
54
- });
55
- }
56
- setsectionproperties({ ...secpropobj });
57
- }, [StatePagePropertiesContext]);
58
- const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
59
- useEffect(() => {
60
- if (templateproperties_context != undefined) {
61
- if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
62
- var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
63
- if (Array.isArray(logoarrayofobjectsparsed)) {
64
- setlogoarrayofobjects([...logoarrayofobjectsparsed]);
65
- }
66
- }
67
- }
68
- }, [templateproperties_context]);
69
- const header_cssstyles = {
70
- upperHeaderSection: css({
71
- background: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.uppersection_bgcolor,
72
- paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
73
- paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
74
- paddingTop: sectionproperties.uppersection_paddingtop + 'px',
75
- paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
76
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.uppersection_bblradius + 'px' : sectionproperties.uppersection_bbrradius + 'px',
77
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.uppersection_bbrradius + 'px' : sectionproperties.uppersection_bblradius + 'px',
78
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.uppersection_btlradius + 'px' : sectionproperties.uppersection_btrradius + 'px',
79
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.uppersection_btrradius + 'px' : sectionproperties.uppersection_btlradius + 'px',
80
- }),
81
- lowerHeaderSection: css({
82
- background: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
83
- paddingLeft: langdetect == 'en' ? sectionproperties.lowersection_paddingleft + 'px' : sectionproperties.lowersection_paddingright + 'px',
84
- paddingRight: langdetect == 'en' ? sectionproperties.lowersection_paddingright + 'px' : sectionproperties.lowersection_paddingleft + 'px',
85
- paddingTop: sectionproperties.lowersection_paddingtop + 'px',
86
- paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
87
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderBottomLeftRadius + 'px' : sectionproperties.lowersection_BorderBottomRightRadius + 'px',
88
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.lowersection_BorderBottomRightRadius + 'px' : sectionproperties.lowersection_borderBottomLeftRadius + 'px',
89
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopLeftRadius + 'px' : sectionproperties.lowersection_borderTopRightRadius + 'px',
90
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopRightRadius + 'px' : sectionproperties.lowersection_borderTopLeftRadius + 'px',
91
- }),
92
- header_logo: css({
93
- width: templateproperties_context.logo_width + 'px',
94
- height: templateproperties_context.logo_height + 'px',
95
- }),
96
- navbar_item_text: css({
97
- color: sectionproperties.lowersection_fontColor,
98
- fontSize: sectionproperties.lowersection_fontsize + 'px',
99
- textTransform: sectionproperties.lowersection_textTransform,
100
- fontWeight: sectionproperties.lowersection_textfontweight,
101
- transition: '0.3s',
102
- display: 'block',
103
- position: 'relative',
104
- ':hover': {
105
- color: sectionproperties.lowersection_fontColoronhover,
106
- },
107
- }),
108
- user_btn: css({
109
- fontSize: sectionproperties.userBtntextfontsize + 'px',
110
- color: sectionproperties.userBtnTextcolor,
111
- fontWeight: sectionproperties.userBtnTextfontweight,
112
- textTransform: sectionproperties.userBtnTexttransform,
113
- cursor: 'pointer',
114
- transition: '.3s',
115
- ':hover': {
116
- color: sectionproperties.userBtnTextcoloronhover,
117
- },
118
- }),
119
- loggedinusername: css({
120
- fontWeight: sectionproperties.userBtnTextfontweight,
121
- textTransform: sectionproperties.userBtnTexttransform,
122
- color: sectionproperties.userBtnTextcolor,
123
- fontSize: sectionproperties.userBtntextfontsize + 'px',
124
- lineHeight: sectionproperties.userBtntextfontsize + 'px',
125
- transition: '.3s',
126
- maxWidth: '40px',
127
- }),
128
- userBtnContainer: css({
129
- ':hover .user_btn': {
130
- color: sectionproperties.userBtnTextcoloronhover,
131
- },
132
- }),
133
- loggedinuserbtn: css({
134
- width: sectionproperties.loggedinuserbtn_width + 'px',
135
- height: sectionproperties.loggedinuserbtn_height + 'px',
136
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
137
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
138
- background: sectionproperties.userBtnbgColor_loggedin,
139
- color: sectionproperties.userBtniconcolor_loggedin,
140
- transition: '.3s',
141
- ':hover': {
142
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
143
- },
144
- }),
145
- greetingstyles: css({
146
- color: sectionproperties.greetingtextcolor,
147
- fontSize: sectionproperties.greetingtextfontsize + 'px',
148
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
149
- fontWeight: 400,
150
- }),
151
- userBtnLoggedinContainer: css({
152
- transition: '.3s',
153
- ':hover .loggedinuserbtn': {
154
- transition: '.3s',
155
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
156
- },
157
- ':hover .loggedinuserbtnbg': {
158
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
159
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
160
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
161
- },
162
- }),
163
- cartbtnicon: css({
164
- color: sectionproperties.cart_iconcolor,
165
- transition: '.3s',
166
- }),
167
- cartbtntext: css({
168
- fontSize: sectionproperties.cartBtnTextfontsize + 'px',
169
- textTransform: sectionproperties.cartBtnTexttransform,
170
- fontWeight: sectionproperties.cartBtnTextfontweight,
171
- color: sectionproperties.cartBtnTextcolor,
172
- transition: '.3s',
173
- }),
174
- cartbtncontainer: css({
175
- cursor: 'pointer',
176
- ':hover .cartbtnicon': {
177
- color: sectionproperties.cartBtnTextcoloronhover,
178
- },
179
- }),
180
- wishlist_btn: css({
181
- position: 'relative',
182
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
183
- fontWeight: sectionproperties.favBtnTextfontweight,
184
- color: sectionproperties.favBtnTextcolor,
185
- cursor: 'pointer',
186
- transition: '.3s',
187
- ':hover .wishlist_btn': {
188
- color: sectionproperties.favBtnTextcoloronhover,
189
- },
190
- }),
191
- favbtnicon: css({
192
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
193
- color: sectionproperties.favBtniconcolor,
194
- }),
195
- wishlistbadge: css({
196
- top: sectionproperties.wishlistbadgetop + 'px',
197
- right: sectionproperties.wishlistbadgeright + 'px',
198
- }),
199
- badge_counter_header_notifications: css({
200
- background: sectionproperties.badge_bgcolor,
201
- width: sectionproperties.badge_width + 'px',
202
- height: sectionproperties.badge_height + 'px',
203
- color: sectionproperties.badge_color,
204
- borderRadius: sectionproperties.badge_borderradius + 'px',
205
- fontSize: sectionproperties.badge_fontsize + 'px',
206
- position: 'absolute',
207
- transform: 'scale(0.3)',
208
- transformOrigin: 'top right',
209
- display: 'flex',
210
- alignItems: 'center',
211
- justifyContent: 'center',
212
- }),
213
- searchbarcont: css({
214
- position: 'relative',
215
- transition: '.3s',
216
- height: sectionproperties.searchbarcont_height + 'px',
217
- background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
218
- width: sectionproperties.searchbarcont_width + 'px',
219
- borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
220
- border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
221
- }),
222
- searchbar_icon_cont: css({
223
- width: sectionproperties.searchbaricon_width + 'px',
224
- height: sectionproperties.searchbaricon_height + 'px',
225
- borderRadius: sectionproperties.searchbaricon_borderBottomLeftRadius + 'px',
226
- color: sectionproperties.searchbaricon_color,
227
- backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
228
- transition: '0.3s ease',
229
- position: 'absolute',
230
- right: langdetect == 'en' ? 0 : '',
231
- left: langdetect == 'en' ? '' : 0,
232
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
233
- bottom: sectionproperties.searchbaricon_bottom + 'px',
234
- // top: 0,
235
- margin: 'auto',
236
- }),
237
- searchbarcont_input: css({
238
- height: '100%',
239
- width: '100%',
240
- outline: 'none',
241
- background: 'transparent',
242
- color: sectionproperties.searchbarcontinput_color,
243
- fontWeight: sectionproperties.searchbarcont_inputfontweight,
244
- fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
245
- borderBottom: sectionproperties.searchbarcontinput_borderBottom + 'px solid ' + sectionproperties.searchbarcontinput_borderBottomcolor,
246
- paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
247
- paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
248
- transition: '0.3s',
249
- ':focus': {
250
- borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
251
- },
252
- }),
253
- dropdownitemcontainer: css({
254
- fontSize: sectionproperties.dropdown_fontsize + 'px',
255
- color: sectionproperties.dropdown_color,
256
- fontWeight: sectionproperties.dropdown_fontweight,
257
- textTransform: sectionproperties.dropdown_texttransform,
258
- padding: '0.3rem 0.8rem',
259
- display: 'flex',
260
- alignItems: 'center',
261
- transition: '.3s',
262
- ':hover': {
263
- color: sectionproperties.dropdown_hovercolor,
264
- },
265
- }),
266
- languagecontainer: css({
267
- color: sectionproperties.language_container_color,
268
- fontSize: sectionproperties.language_container_fontsize + 'px',
269
- fontWeight: 600,
270
- cursor: 'pointer',
271
- transition: '.3s',
272
- ':hover': {
273
- color: sectionproperties.language_container_coloronhover,
274
- },
275
- }),
276
- };
277
- return (
278
- <div
279
- class={+' row m-0 w-100 d-flex justify-content-center '}
280
- style={{
281
- width: '100vw',
282
- }}
283
- >
284
- <div
285
- class={`${headerstyles.headercontainer}` + ' col-lg-12 p-0 d-md-none '}
286
- style={{
287
- position: sectionproperties.headerstyles_position,
288
- }}
289
- >
290
- <div class="row m-0 w-100">
291
- <div class={`${header_cssstyles.upperHeaderSection}` + ' col-lg-12 d-flex align-items-center '}>
292
- <div class="row m-0 w-100 d-flex align-items-center">
293
- <div class="col-lg-4 d-flex justify-content-start">
294
- <div
295
- class={`${header_cssstyles.header_logo}`}
296
- style={{ cursor: 'pointer' }}
297
- onClick={() => {
298
- routingcountext('home');
299
- }}
300
- >
301
- <IKImage
302
- urlEndpoint={IKurlEndpoint}
303
- publicKey={IKpublicKey}
304
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
305
- style={{
306
- width: '100%',
307
- height: '100%',
308
- objectFit: 'contain',
309
- }}
310
- />
311
- </div>
312
- </div>
313
- <div class="col-lg-8 d-flex justify-content-end align-items-center">
314
- <div
315
- class={header_cssstyles.searchbarcont}
316
- style={{ position: 'relative', marginRight: langdetect == 'en' ? '1.9rem' : '', marginLeft: langdetect == 'ar' ? '1.9rem' : '' }}
317
- >
318
- <input
319
- type="text"
320
- placeholder={lang.searchproducts}
321
- class={`${header_cssstyles.searchbarcont_input}`}
322
- onChange={(event) => {
323
- setSearchHeaderInputContext(event.target.value);
324
- }}
325
- />
326
- <div class={` ${header_cssstyles.searchbar_icon_cont}` + ' d-flex align-items-center justify-content-center '}>
327
- <BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
328
- </div>
329
- <Searchlist actions={actions} sectionpropertiesprops={sectionproperties} srcfromprops={'headerfullwidth'} />
330
- </div>
331
- <Dropdown
332
- style={{
333
- marginRight: langdetect == 'en' ? '2.2rem' : '',
334
- marginLeft: langdetect == 'ar' ? '2.2rem' : '',
335
- }}
336
- >
337
- <Dropdown.Toggle>
338
- {!authdetailsContext.loggedin && (
339
- <div class={` ${header_cssstyles.user_btn}` + ' d-flex align-items-center justify-content-center '} sytle={{ position: 'relative' }}>
340
- <i class={' h-100 d-flex align-items-center '}>
341
- <FiUser size={sectionproperties.userBtniconfontsize} />
342
- </i>
343
- <p
344
- class="mb-0 p-0"
345
- style={{
346
- marginLeft: langdetect == 'en' ? '8px' : 0,
347
- marginRight: langdetect == 'ar' ? '8px' : 0,
348
- }}
349
- >
350
- {lang.login}
351
- </p>
352
- </div>
353
- )}
354
- {authdetailsContext.loggedin && (
355
- <div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
356
- <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
357
- <i class={' h-100 allcentered '}>
358
- <FiUser size={sectionproperties.loggedinusericonfontsize} />
359
- </i>
360
- </div>
361
- <div
362
- class="m-0 p-0 loggedinuserbtn flex-column"
363
- style={{
364
- textAlign: langdetect == 'en' ? 'left' : 'right',
365
- }}
366
- >
367
- <p
368
- class="m-0 p-0"
369
- style={{
370
- color: sectionproperties.greetingtextcolor,
371
- fontSize: sectionproperties.greetingtextfontsize + 'px',
372
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
373
- fontWeight: 400,
374
- }}
375
- >
376
- {lang.hello}
377
- {langdetect == 'en' ? ',' : '،'}
378
- </p>
379
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow '}>{authdetailsContext.customerinfo.name}</p>
380
- </div>
381
- </div>
382
- )}
383
- </Dropdown.Toggle>
384
- {!authdetailsContext.loggedin && (
385
- <Dropdown.Menu>
386
- <Dropdown.Item
387
- onClick={() => {
388
- routingcountext(StaticPagesLinksContext.Login);
389
- }}
390
- >
391
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
392
- <p class={' d-flex align-items-center m-0 p-0 '}>
393
- <AiOutlineLogin class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
394
- <span>{lang.login}</span>
395
- </p>
396
- </div>
397
- </Dropdown.Item>
398
- <Dropdown.Divider></Dropdown.Divider>
399
- <Dropdown.Item
400
- onClick={() => {
401
- routingcountext(StaticPagesLinksContext.Signup);
402
- }}
403
- >
404
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
405
- <p class={' d-flex align-items-center m-0 p-0 '}>
406
- <AiOutlineUserAdd class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
407
- <span class="text-transform-none">{lang.signup}</span>
408
- </p>
409
- </div>
410
- </Dropdown.Item>
411
- </Dropdown.Menu>
412
- )}
413
- {authdetailsContext.loggedin && (
414
- <Dropdown.Menu style={{ minWidth: '200px' }}>
415
- <Dropdown.Item
416
- onClick={() => {
417
- routingcountext(StaticPagesLinksContext.Ordershistory);
418
- }}
419
- >
420
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
421
- <i class="h-100 allcentered">
422
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
423
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
424
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
425
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
426
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
427
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
428
- </i>
429
- <p class={' allcenetered m-0 p-0 '}>{lang.orderhistory}</p>
430
- </div>
431
- </Dropdown.Item>
432
- <Dropdown.Divider></Dropdown.Divider>
433
- <Dropdown.Item
434
- onClick={() => {
435
- routingcountext(StaticPagesLinksContext.Wishlist);
436
- }}
437
- >
438
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
439
- <i class="h-100 allcentered">
440
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
441
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
442
- </i>
443
- <p class={' allcenetered m-0 p-0 '}>{lang.wishlist}</p>
444
- </div>
445
- </Dropdown.Item>
446
- <Dropdown.Divider></Dropdown.Divider>
447
- <Dropdown.Item
448
- onClick={() => {
449
- routingcountext(StaticPagesLinksContext.Policies);
450
- }}
451
- >
452
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
453
- <i class="h-100 allcentered">
454
- <MdOutlinePolicy class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
455
- </i>
456
- <p class={' allcenetered m-0 p-0 '}>{lang.policies}</p>
457
- </div>
458
- </Dropdown.Item>
459
- <Dropdown.Divider></Dropdown.Divider>
460
- <Dropdown.Item
461
- onClick={() => {
462
- LogoutMutationContext.mutate();
463
- }}
464
- >
465
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
466
- <i class="h-100 allcentered">
467
- <BiLogOutCircle class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
468
- </i>
469
- <p class={' allcenetered m-0 p-0 '}>{lang.logout}</p>
470
- </div>
471
- </Dropdown.Item>
472
- </Dropdown.Menu>
473
- )}
474
- </Dropdown>
475
- <div
476
- class={header_cssstyles.cartbtncontainer + ' d-flex flex-row align-items-center justify-content-end '}
477
- style={{
478
- marginRight: langdetect == 'en' ? '2.2rem' : '',
479
- marginLeft: langdetect == 'ar' ? '2.2rem' : '',
480
- }}
481
- onClick={() => {
482
- setsidecartnavshowcontext(true);
483
- }}
484
- >
485
- <div class={`${header_cssstyles.cartbtnicon}` + ' allcentered cartbtnicon '} style={{ position: 'relative' }}>
486
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
487
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
488
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
489
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
490
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
491
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
492
- <div
493
- class={`${header_cssstyles.badge_counter_header_notifications}`}
494
- style={{
495
- top: sectionproperties.cartbadgetop + 'px',
496
- right: sectionproperties.cartbadgeright + 'px',
497
- }}
498
- >
499
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
500
- </div>
501
- </div>
502
- <p
503
- class={header_cssstyles.cartbtntext + ' mb-0 p-0 cartbtnicon '}
504
- style={{
505
- marginLeft: langdetect == 'en' ? '9px' : 0,
506
- marginRight: langdetect == 'ar' ? '9px' : 0,
507
- }}
508
- >
509
- {lang.cart}
510
- </p>
511
- </div>
512
- <div
513
- class={`${header_cssstyles.wishlist_btn}` + ' wishlist_btn d-flex justify-content-center align-items-center '}
514
- style={{
515
- marginRight: langdetect == 'en' ? '2.2rem' : '',
516
- marginLeft: langdetect == 'ar' ? '2.2rem' : '',
517
- }}
518
- onClick={() => {
519
- routingcountext(StaticPagesLinksContext.Wishlist);
520
- }}
521
- >
522
- <div
523
- style={{
524
- position: 'relative',
525
- }}
526
- >
527
- <i class={header_cssstyles.favbtnicon + ' wishlist_btn h-100 d-flex align-items-center '}>
528
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart />}
529
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar />}
530
- </i>
531
- <div class={` ${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}` + ' d-flex justify-content-center text-center '}>
532
- <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
533
- </div>
534
- </div>
535
- <span
536
- class="mb-0 p-0"
537
- style={{
538
- marginLeft: langdetect == 'en' ? '8px' : 0,
539
- marginRight: langdetect == 'ar' ? '8px' : 0,
540
- }}
541
- >
542
- {lang.wishlist}
543
- </span>
544
- </div>
545
- <div class={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
546
- <Dropdown>
547
- <Dropdown.Toggle>
548
- <li class={' d-flex align-items-center justify-content-center '}>
549
- {langdetect == 'en' && (
550
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
551
- <img src={usflag} style={{ maxWidth: '2.2vh', maxHeight: '2.2vh' }} />
552
- <MdKeyboardArrowDown class="ml-2 mr-2" size={sectionproperties.language_container_fontsize} />
553
- </div>
554
- )}
555
- {langdetect == 'ar' && (
556
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
557
- <img src={egyptflag} style={{ maxWidth: '2.2vh', maxHeight: '2.2vh' }} />
558
- <MdKeyboardArrowDown class="ml-2 mr-2" size={sectionproperties.language_container_fontsize} />
559
- </div>
560
- )}
561
- </li>
562
- </Dropdown.Toggle>
563
- <Dropdown.Menu>
564
- <Dropdown.Item
565
- onClick={() => {
566
- setlang('ar');
567
- }}
568
- >
569
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
570
- <p
571
- class={'dropdownitem d-flex align-items-center m-0 p-0'}
572
- style={{
573
- fontSize: sectionproperties.dropdown_fontsize + 'px',
574
- fontWeight: sectionproperties.dropdown_fontweight,
575
- textTransform: sectionproperties.dropdown_texttransform,
576
- }}
577
- >
578
- <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
579
- <span class={'ml-2 mr-2'}>{lang.arabic}</span>
580
- </p>
581
- </div>
582
- </Dropdown.Item>
583
- <Dropdown.Divider></Dropdown.Divider>
584
- <Dropdown.Item
585
- onClick={() => {
586
- setlang('en');
587
- }}
588
- >
589
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
590
- <p
591
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
592
- style={{
593
- fontSize: sectionproperties.dropdown_fontsize + 'px',
594
- fontWeight: sectionproperties.dropdown_fontweight,
595
- textTransform: sectionproperties.dropdown_texttransform,
596
- }}
597
- >
598
- <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
599
- <span class={'ml-2 mr-2'}>{lang.english}</span>
600
- </p>
601
- </div>
602
- </Dropdown.Item>
603
- </Dropdown.Menu>
604
- </Dropdown>
605
- </div>
606
- </div>
607
- </div>
608
- </div>
609
- <div class="col-lg-12 allcentered p-0">
610
- <div
611
- style={{ background: sectionproperties.upperseparatorbgcolor, height: sectionproperties.upperseparatorheight + 'px', width: sectionproperties.upperseparatorwidth + '%' }}
612
- />
613
- </div>
614
- <div
615
- class={header_cssstyles.lowerHeaderSection + ' col-lg-12 '}
616
- style={
617
- {
618
- // display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
619
- }
620
- }
621
- >
622
- <nav
623
- class={headerstyles.navbar}
624
- style={{
625
- display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
626
- }}
627
- >
628
- <ul>
629
- {templatepropcontext?.pagesnprop?.map((item, index) => {
630
- if (item.isnavigation == 1 && item.isactive == 1) {
631
- return (
632
- <li
633
- style={{
634
- paddingRight: langdetect == 'en' ? '1.5rem' : 0,
635
- paddingLeft: langdetect == 'ar' ? '1.5rem' : 0,
636
- }}
637
- onClick={() => {
638
- templatepropcontext?.pagesnprop?.forEach(function (pageitem, pageindex) {
639
- pageitem.isselected = false;
640
- });
641
- templatepropcontext.pagesnprop[index].isselected = true;
642
- }}
643
- >
644
- <a href={item.navigationroute} class={`${header_cssstyles.navbar_item_text}` + ' navbar_item_text '}>
645
- {langdetect == 'en' ? item.pagename : item.pagename_ar}
646
- </a>
647
- </li>
648
- );
649
- }
650
- })}
651
- </ul>
652
- </nav>
653
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
654
- <Subheader
655
- sectionpropertiesprops={sectionproperties}
656
- subheaderpropertiesprops={{
657
- subheaderpositionprops: 'in nav',
658
- paddingLeftprops: '1rem',
659
- paddingRightprops: '1rem',
660
- subheadercontentpositionprops: 'start',
661
- }}
662
- actions={actions}
663
- />
664
- )}
665
- </div>
666
- <div class="col-lg-12 p-0">
667
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
668
- <Subheader
669
- sectionpropertiesprops={sectionproperties}
670
- subheaderpropertiesprops={{
671
- subheaderpositionprops: 'Full Width',
672
- paddingLeftprops: '35px',
673
- paddingRightprops: '35px',
674
- subheadercontentpositionprops: 'center',
675
- }}
676
- actions={actions}
677
- />
678
- )}
679
- </div>
680
- </div>
681
- </div>
682
- <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
683
- </div>
684
- );
685
- };
686
-
687
- export default ClassicHeader;