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.
Files changed (179) hide show
  1. package/dist/index.cjs.js +6838 -6468
  2. package/dist/index.esm.js +6841 -6471
  3. package/dist/index.umd.js +6841 -6472
  4. package/package.json +1 -1
  5. package/srcOLD/Contexts/LanguageContext.jsx +347 -0
  6. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/srcOLD/StylesJS/Customstyles.js +235 -0
  8. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
  9. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
  10. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
  11. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
  13. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
  15. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
  16. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
  17. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
  18. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
  19. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
  20. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
  21. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
  22. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
  27. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
  28. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
  29. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
  30. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
  31. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
  32. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
  33. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
  35. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
  36. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
  37. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
  38. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
  39. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
  40. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
  41. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
  55. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
  56. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
  57. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
  58. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
  59. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
  60. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
  61. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
  62. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
  63. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
  64. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
  65. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
  67. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
  73. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  77. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
  78. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  79. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  84. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  85. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
  91. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
  92. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
  93. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  94. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
  95. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  96. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  97. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  98. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  99. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  100. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  101. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
  102. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
  103. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
  104. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
  105. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
  106. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  107. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
  108. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  109. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
  110. package/srcOLD/assets/images/cod.png +0 -0
  111. package/srcOLD/assets/images/egyptflag.png +0 -0
  112. package/srcOLD/assets/images/fawry.png +0 -0
  113. package/srcOLD/assets/images/payment.png +0 -0
  114. package/srcOLD/assets/images/paymob.png +0 -0
  115. package/srcOLD/assets/images/paypal.png +0 -0
  116. package/srcOLD/assets/images/shoppingcart.png +0 -0
  117. package/srcOLD/assets/images/usflag.png +0 -0
  118. package/srcOLD/assets/images/visa.png +0 -0
  119. package/srcOLD/assets/images/whatsapp.png +0 -0
  120. package/srcOLD/button.jsx +40 -0
  121. package/srcOLD/index.jsx +175 -0
  122. package/srcOLD/styles/Home.module.css +129 -0
  123. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
  124. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  125. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
  126. package/srcOLD/styles/cards/Productcard6.module.css +9 -0
  127. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
  128. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  129. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  130. package/srcOLD/styles/cards/categorycard.module.css +102 -0
  131. package/srcOLD/styles/cards/categorycard3.module.css +51 -0
  132. package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
  133. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
  134. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
  135. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  136. package/srcOLD/styles/general/bootstrap.css +4420 -0
  137. package/srcOLD/styles/general/dropdown.css +199 -0
  138. package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
  139. package/srcOLD/styles/general/filter.module.css +108 -0
  140. package/srcOLD/styles/general/form.module.css +273 -0
  141. package/srcOLD/styles/general/general.module.css +709 -0
  142. package/srcOLD/styles/general/image-gallery.css +481 -0
  143. package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
  144. package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
  145. package/srcOLD/styles/general/scrollbtn.module.css +22 -0
  146. package/srcOLD/styles/general/slick.module.css +166 -0
  147. package/srcOLD/styles/general/tabs.module.css +110 -0
  148. package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
  149. package/srcOLD/styles/globals.css +26 -0
  150. package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
  151. package/srcOLD/styles/headers/Header7.module.css +50 -0
  152. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  153. package/srcOLD/styles/headers/Sideheader.module.css +108 -0
  154. package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
  155. package/srcOLD/styles/headers/dropdown.css +0 -0
  156. package/srcOLD/styles/headers/header4.module.css +175 -0
  157. package/srcOLD/styles/headers/header5.module.css +30 -0
  158. package/srcOLD/styles/headers/header6.module.css +117 -0
  159. package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
  160. package/srcOLD/styles/headers/headerresturant.module.css +89 -0
  161. package/srcOLD/styles/headers/headerstyles.module.css +24 -0
  162. package/srcOLD/styles/headers/modernheader.module.css +78 -0
  163. package/srcOLD/styles/headers/subheader.module.css +114 -0
  164. package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
  165. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  166. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
  167. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  168. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  169. package/srcOLD/styles/staticpages/accordion.module.css +9 -0
  170. package/srcOLD/styles/staticpages/cart.module.css +108 -0
  171. package/srcOLD/styles/staticpages/dropdown.css +196 -0
  172. package/srcOLD/styles/staticpages/filter.module.css +139 -0
  173. package/srcOLD/styles/staticpages/login.module.css +146 -0
  174. package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
  175. package/srcOLD/styles/staticpages/shop.module.css +191 -0
  176. package/srcOLD/styles/staticpages/signup.module.css +206 -0
  177. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
  178. package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
  179. package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,312 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+
3
+ import { css } from 'glamor';
4
+
5
+ import cardsstyles from '../../../../styles/sections/Backgroundimage1.module.css';
6
+
7
+ import { IKImage } from 'imagekitio-react';
8
+ import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
9
+ const Backgroundimage1 = (props) => {
10
+ const [sectionproperties, setsectionproperties] = useState('');
11
+ const [bgimagesarray, setbgimagesarray] = useState([]);
12
+ const lang = props.actions.lang;
13
+ const langdetect = props.actions.langdetect;
14
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
15
+ const routingcountext = props.actions.routingcountext;
16
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
17
+ useEffect(() => {
18
+ if (props.srcfrom == 'addsectionform') {
19
+ var secpropobj = {};
20
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
21
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
22
+ });
23
+ setsectionproperties({ ...secpropobj });
24
+ } else {
25
+ var secpropobj = {};
26
+
27
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
28
+ if (sectionitem.sectionid == props.sectionidprops) {
29
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
30
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
31
+ });
32
+ }
33
+ });
34
+ setsectionproperties({ ...secpropobj });
35
+ }
36
+ }, [StatePagePropertiesContext]);
37
+ useEffect(() => {
38
+ if (sectionproperties.length != 0) {
39
+ if (sectionproperties.arrayofobjectimagesonly != null) {
40
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
41
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
42
+ setbgimagesarray([...arrayofobjectimagesonlyparsed]);
43
+ }
44
+ }
45
+ }
46
+ }, [sectionproperties]);
47
+ const bg1_cssstyles = {
48
+ bgImageContainer: css({
49
+ height: sectionproperties.height + 'vh',
50
+ // backgroundImage: `url(${cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''})`,
51
+ background: sectionproperties.backgroundColor,
52
+ backgroundPosition: 'center',
53
+ backgroundRepeat: 'no-repeat',
54
+ backgroundSize: 'cover',
55
+ margin: 0,
56
+ padding: 0,
57
+ position: 'relative',
58
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
59
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
60
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
61
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
62
+ alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
63
+ justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
64
+ }),
65
+ centered_container: css({
66
+ position: 'absolute',
67
+ display: 'flex',
68
+ width: '100%',
69
+ height: '100%',
70
+ }),
71
+ maintitle: css({
72
+ position: 'relative',
73
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
74
+ color: sectionproperties.generaltext_fontColor,
75
+ textTransform: sectionproperties.generaltext_textTransform,
76
+ fontWeight: sectionproperties.generaltext_fontWeight,
77
+ top: sectionproperties.generaltext_topposition + 'px',
78
+ left: sectionproperties.generaltext_position == 'Centered' ? 0 : langdetect == 'en' ? sectionproperties.generaltext_leftposition + 'px' : '',
79
+ right: sectionproperties.generaltext_position == 'Centered' ? 0 : langdetect == 'en' ? '' : sectionproperties.generaltext_leftposition + 'px',
80
+ ':after': {
81
+ display: 'block',
82
+ content: 's',
83
+ fontSize: '0',
84
+ width: sectionproperties.generaltext_lineaftertextwidth + 'px',
85
+ height: '7px',
86
+ background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
87
+ position: 'absolute',
88
+ bottom: 0,
89
+ margin: 'auto',
90
+ borderRadius: '10px',
91
+ },
92
+ }),
93
+ maintitle11: css({
94
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
95
+ color: sectionproperties.generaltext_fontColor,
96
+ textTransform: sectionproperties.generaltext_textTransform,
97
+ fontWeight: sectionproperties.generaltext_fontWeight,
98
+ top: sectionproperties.generaltext_topposition + 'px',
99
+ left: sectionproperties.generaltext_leftposition + 'px',
100
+ ':after': {
101
+ display: 'block',
102
+ content: 's',
103
+ fontSize: '0',
104
+ width: sectionproperties.generaltext_lineaftertextwidth + 'px',
105
+ height: '7px',
106
+ background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
107
+ position: 'absolute',
108
+ bottom: 0,
109
+ margin: 'auto',
110
+ borderRadius: '10px',
111
+ },
112
+ }),
113
+ maintitle2: css({
114
+ position: 'relative',
115
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
116
+ color: sectionproperties.slideshowText2ContentColor,
117
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
118
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
119
+ top: sectionproperties.generaltext2_topposition + 'px',
120
+ // left: sectionproperties.generaltext2_leftposition + 'px',
121
+ left: langdetect == 'en' ? sectionproperties.generaltext2_leftposition + 'px' : '',
122
+ right: langdetect == 'en' ? '' : sectionproperties.generaltext2_leftposition + 'px',
123
+ ':after': {
124
+ display: 'block',
125
+ content: 's',
126
+ fontSize: '0',
127
+ width: '100%',
128
+ height: '7px',
129
+ // background: sectionproperties.general_showlineafter == 'Show' ? sectionproperties.generaltext_fontColor : 'transparent',
130
+ position: 'absolute',
131
+ bottom: 0,
132
+ left: 0,
133
+ right: 0,
134
+ margin: 'auto',
135
+ borderRadius: '10px',
136
+ },
137
+ }),
138
+ buttonshop: css({
139
+ position: 'relative',
140
+ color: sectionproperties.generalbtn_textColor,
141
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
142
+ textTransform: sectionproperties.generalbtn_texttransform,
143
+ height: sectionproperties.generalbtn_height + 'px',
144
+ width: sectionproperties.generalbtn_width + 'px',
145
+ background: sectionproperties.generalbtn_bgColor,
146
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
147
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
148
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
149
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
150
+ fontWeight: sectionproperties.generalbtn_fontweight,
151
+ top: sectionproperties.generalbtn_topposition + 'px',
152
+ left: langdetect == 'en' ? sectionproperties.generalbtn_leftposition + 'px' : '',
153
+ right: langdetect == 'en' ? '' : sectionproperties.generalbtn_leftposition + 'px',
154
+ transition: '.3s',
155
+ ':hover': {
156
+ background: sectionproperties.generalbtn_bgColoronhover,
157
+ color: sectionproperties.generalbtn_textColoronhover,
158
+ },
159
+ }),
160
+ };
161
+ return (
162
+ <div
163
+ className="row ml-auto mr-auto d-flex justofy-content-center"
164
+ style={{
165
+ marginTop: sectionproperties.marginTop + 'px',
166
+ marginBottom: sectionproperties.marginBottom + 'px',
167
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
168
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
169
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
170
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
171
+ marginTop: sectionproperties.marginTop + 'px',
172
+ marginBottom: sectionproperties.marginBottom + 'px',
173
+ height: sectionproperties.height + 'vh',
174
+ // zIndex: 2,
175
+ }}
176
+ >
177
+ <div
178
+ className="col-lg-12 p-0"
179
+ style={{
180
+ width: sectionproperties.width + 'vw',
181
+ }}
182
+ >
183
+ <IKImage
184
+ urlEndpoint={IKurlEndpoint}
185
+ publicKey={IKpublicKey}
186
+ path={bgimagesarray.length != 0 ? (langdetect == 'en' ? bgimagesarray[0]?.bgsection_image : '/tr:w-2000,h-1000/' + bgimagesarray[0]?.bgsection_image_ar) : ''}
187
+ style={{
188
+ height: '100%',
189
+ width: '100%',
190
+ objectFit: 'cover',
191
+ height: sectionproperties.height + 'vh',
192
+ background: sectionproperties.backgroundColor,
193
+ margin: 0,
194
+ padding: 0,
195
+ // position: 'relative',
196
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
197
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
198
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
199
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
200
+ zIndex: -1,
201
+ }}
202
+ />
203
+ <div
204
+ className={`${bg1_cssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
205
+ style={{
206
+ // zIndex: 2000,
207
+ position: 'absolute',
208
+ top: 0,
209
+ right: 0,
210
+ bottom: 0,
211
+ left: 0,
212
+ }}
213
+ >
214
+ <div
215
+ className={`${bg1_cssstyles.centered_container}` + ' row m-0 d-flex '}
216
+ style={{
217
+ paddingLeft: sectionproperties.paddingLeft + 'px',
218
+ paddingRight: sectionproperties.paddingRight + 'px',
219
+ paddingBottom: sectionproperties.paddingBottom + 'px',
220
+ // zIndex: 2000,
221
+ }}
222
+ >
223
+ <div className="col-lg-12 p-0 d-flex flex-column pt-md-5 d-md-none">
224
+ {sectionproperties.general_showtext == 'Show' && (
225
+ <p
226
+ className={
227
+ sectionproperties.generaltext_position == 'Centered'
228
+ ? `${bg1_cssstyles.maintitle} ${cardsstyles.maintitle}` + ' justify-content-center d-flex justify-content-md-center '
229
+ : `${bg1_cssstyles.maintitle} ${cardsstyles.maintitle}` + ' d-flex justify-content-md-center '
230
+ }
231
+ style={
232
+ {
233
+ // zIndex: 2000,
234
+ }
235
+ }
236
+ >
237
+ {langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar}
238
+ </p>
239
+ )}
240
+ {sectionproperties.slideshowtext2_show == 'Show' && (
241
+ <p className={`${bg1_cssstyles.maintitle2} ${cardsstyles.maintitle2}` + ' d-flex justify-content-md-center '}>
242
+ {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_ar}
243
+ </p>
244
+ )}
245
+ {sectionproperties.generalbtn_show == 'Show' && (
246
+ <button
247
+ className={`${bg1_cssstyles.buttonshop} ${cardsstyles.buttonshop}` + ' d-flex justify-content-center align-items-center '}
248
+ onClick={() => {
249
+ // if(place_clickable == 'Button'){
250
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
251
+ // }
252
+ }}
253
+ >
254
+ {langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar}
255
+ </button>
256
+ )}
257
+ </div>
258
+ <div
259
+ className="col-lg-12 p-0 flex-column justify-content-center align-items-center d-none d-md-flex "
260
+ style={{ width: '100%', height: '100%', position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 }}
261
+ >
262
+ <div className="row m-0 w-100">
263
+ <div className="col-lg-12 d-flex justify-content-center align-items-center">
264
+ {sectionproperties.general_showtext == 'Show' && (
265
+ <p
266
+ className={`${bg1_cssstyles.maintitle11} ${cardsstyles.maintitle}` + ' d-flex justify-content-md-center p-0 font-md-30 font-sm-25 '}
267
+ style={{
268
+ color: sectionproperties.generaltext_fontColor,
269
+ textTransform: sectionproperties.generaltext_textTransform,
270
+ fontWeight: sectionproperties.generaltext_fontWeight,
271
+ }}
272
+ >
273
+ {langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar}
274
+ </p>
275
+ )}
276
+ </div>
277
+ <div className="col-lg-12 d-flex justify-content-center align-items-center">
278
+ {sectionproperties.slideshowtext2_show == 'Show' && (
279
+ <p
280
+ className={`${cardsstyles.maintitle2}` + ' font-md-30 font-sm-23 d-flex justify-content-md-center p-0 '}
281
+ style={{
282
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
283
+ color: sectionproperties.slideshowText2ContentColor,
284
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
285
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
286
+ }}
287
+ >
288
+ {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_ar}
289
+ </p>
290
+ )}
291
+ </div>
292
+ <div className="col-lg-12 d-flex justify-content-center align-items-center">
293
+ {sectionproperties.generalbtn_show == 'Show' && (
294
+ <button
295
+ className={`${bg1_cssstyles.buttonshop} ${cardsstyles.buttonshop}` + ' d-flex justify-content-center align-items-center '}
296
+ onClick={() => {
297
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
298
+ }}
299
+ >
300
+ {langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar}
301
+ </button>
302
+ )}
303
+ </div>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ </div>
309
+ </div>
310
+ );
311
+ };
312
+ export default Backgroundimage1;
@@ -0,0 +1,278 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ // import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
3
+ import { css } from 'glamor';
4
+ import { serverbaselink } from '../../../../../Env';
5
+ // import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
6
+ // import { LanguageContext } from '../../../../LanguageContext';
7
+
8
+ const Backgroundimage_with_toppill = (props) => {
9
+ // const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
10
+ const [sectionproperties, setsectionproperties] = useState('');
11
+ // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
12
+ // const { lang, langdetect } = useContext(LanguageContext);
13
+ const [cardsarray, setcardsarray] = useState([]);
14
+
15
+ const lang = props.actions.lang;
16
+ const langdetect = props.actions.langdetect;
17
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
18
+ const routingcountext = props.actions.routingcountext;
19
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
20
+ const sectionindexcontext = props.sectionindexcontext;
21
+ useEffect(() => {
22
+ if (props.srcfrom == 'addsectionform') {
23
+ var secpropobj = {};
24
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
25
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
26
+ });
27
+ setsectionproperties({ ...secpropobj });
28
+ } else {
29
+ var secpropobj = {};
30
+
31
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
32
+ if (sectionitem.sectionid == props.sectionidprops) {
33
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
34
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
35
+ });
36
+ }
37
+ });
38
+ setsectionproperties({ ...secpropobj });
39
+ }
40
+ }, [StatePagePropertiesContext]);
41
+ useEffect(() => {
42
+ if (sectionproperties.length != 0) {
43
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
44
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
45
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
46
+ setcardsarray([...bgsection_imagearrayofobjsparsed]);
47
+ }
48
+ }
49
+ }
50
+ }, [sectionproperties]);
51
+ const sectionstyles = {
52
+ general_btn: css({
53
+ height: sectionproperties.generalbtn_height + 'px',
54
+ width: sectionproperties.generalbtn_width + 'px',
55
+ background: sectionproperties.generalbtn_bgColor,
56
+ color: sectionproperties.generalbtn_textColor,
57
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
58
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
59
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
60
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
61
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
62
+ lineHeight: sectionproperties.generalbtn_fontsize + 'px',
63
+ textTransform: sectionproperties.generalbtn_texttransform,
64
+ fontWeight: sectionproperties.generalbtn_fontweight,
65
+ marginLeft: sectionproperties.generalbtn_marginLeft + 'px',
66
+ marginRight: sectionproperties.generalbtn_marginRight + 'px',
67
+ marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
68
+ marginTop: sectionproperties.generalbtn_marginTop + 'px',
69
+ transition: '.3s',
70
+ ':hover': {
71
+ background: sectionproperties.generalbtn_bgColoronhover,
72
+ color: sectionproperties.generalbtn_textColoronhover,
73
+ },
74
+ }),
75
+ text1styles: css({
76
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
77
+ color: sectionproperties.slideshowText1ContentColor,
78
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
79
+ textTransform: sectionproperties.slideshowText1ContentTextTransform,
80
+ marginLeft: sectionproperties.slideshowText1Content_marginLeft + 'px',
81
+ marginRight: sectionproperties.slideshowText1Content_marginRight + 'px',
82
+ marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
83
+ marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
84
+ ':after': {
85
+ display: 'block',
86
+ content: 's',
87
+ fontSize: '0',
88
+ width: sectionproperties.slideshowText1_lineafterwidth + '%',
89
+ height: '7px',
90
+ background: sectionproperties.slideshowText1_showlineafter == 'Show' ? sectionproperties.slideshowText1ContentColor : 'transparent',
91
+ position: 'absolute',
92
+ bottom: 0,
93
+ left: '10px',
94
+ margin: 'auto',
95
+ borderRadius: '10px',
96
+ },
97
+ }),
98
+ };
99
+ return (
100
+ <div class=" row w-100 m-0 d-flex align-items-center" style={{ position: 'relative' }}>
101
+ <div class="col-lg-5 d-none d-md-flex align-items-center justify-content-center mt-md-4">
102
+ <div
103
+ class={'d-flex d-sm-none align-items-center justify-content-center'}
104
+ style={{
105
+ position: 'relative',
106
+ background: sectionproperties.formRightbgColor,
107
+ borderRadius: '50%',
108
+ height: '35vh',
109
+ width: '35vh',
110
+ }}
111
+ >
112
+ <div
113
+ class={' d-flex justify-content-center align-items-center '}
114
+ style={{
115
+ width: '30vh',
116
+ height: '30vh',
117
+ }}
118
+ >
119
+ <img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
120
+ </div>
121
+ </div>
122
+ <div
123
+ class={'d-none d-sm-flex align-items-center justify-content-center'}
124
+ style={{
125
+ position: 'relative',
126
+ background: sectionproperties.formRightbgColor,
127
+ borderRadius: '50%',
128
+ height: '30vh',
129
+ width: '30vh',
130
+ }}
131
+ >
132
+ <div
133
+ class={' d-flex justify-content-center align-items-center '}
134
+ style={{
135
+ width: '25vh',
136
+ height: '25vh',
137
+ }}
138
+ >
139
+ <img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ <div class={' col-lg-7 col-md-12 d-none d-md-flex mt-3'}>
144
+ <div class="row m-0 w-100">
145
+ <div class="col-lg-12 d-flex align-items-center justify-content-center mb-3">
146
+ {sectionproperties.slideshowtext1_show == 'Show' && (
147
+ <p
148
+ class="m-0 wordbreak text-center"
149
+ style={{
150
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
151
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
152
+ color: sectionproperties.slideshowText1ContentColor,
153
+ textTransform: sectionproperties.slideshowText1ContentTextTransform,
154
+ }}
155
+ >
156
+ {langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
157
+ </p>
158
+ )}
159
+ </div>
160
+ <div class="col-lg-12 d-flex align-items-center justify-content-center mb-3">
161
+ {sectionproperties.slideshowtext2_show == 'Show' && (
162
+ <p
163
+ class="m-0 wordbreak text-center"
164
+ style={{
165
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
166
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
167
+ color: sectionproperties.slideshowText2ContentColor,
168
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
169
+ }}
170
+ >
171
+ {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
172
+ </p>
173
+ )}
174
+ </div>
175
+ {sectionproperties.generalbtn_show == 'Show' && (
176
+ <div class="col-lg-12 d-flex align-items-center justify-content-center">
177
+ <button
178
+ class={`${sectionstyles.general_btn}`}
179
+ onClick={() => {
180
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
181
+ }}
182
+ >
183
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
184
+ </button>
185
+ </div>
186
+ )}
187
+ </div>
188
+ </div>
189
+ <div class={' col-lg-7 pl-5 d-flex d-md-none d-flex align-items-center pr-5'}>
190
+ <div class="row m-0 w-100 d-flex align-items-center">
191
+ {sectionproperties.slideshowtext1_show == 'Show' && (
192
+ <div
193
+ class="col-lg-12 p-0 d-flex justify-content-start"
194
+ style={{
195
+ marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
196
+ }}
197
+ >
198
+ <p
199
+ class="m-0 wordbreak"
200
+ style={{
201
+ textAlign: langdetect == 'en' ? 'left' : 'right',
202
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
203
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
204
+ color: sectionproperties.slideshowText1ContentColor,
205
+ textTransform: sectionproperties.slideshowText1ContentTextTransform,
206
+ }}
207
+ >
208
+ {langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
209
+ </p>
210
+ </div>
211
+ )}
212
+ {sectionproperties.slideshowtext2_show == 'Show' && (
213
+ <div class="col-lg-12 p-0 mb-4 d-flex justify-content-start">
214
+ <p
215
+ className="m-0 wordbreak"
216
+ style={{
217
+ textAlign: langdetect == 'en' ? 'left' : 'right',
218
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
219
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
220
+ color: sectionproperties.slideshowText2ContentColor,
221
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
222
+ }}
223
+ >
224
+ {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
225
+ </p>
226
+ </div>
227
+ )}
228
+ {sectionproperties.generalbtn_show == 'Show' && (
229
+ <div class="col-lg-12 p-0 mb-3 d-flex justify-content-start">
230
+ <button
231
+ class={`${sectionstyles.general_btn}`}
232
+ onClick={() => {
233
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
234
+ }}
235
+ >
236
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
237
+ </button>
238
+ </div>
239
+ )}
240
+ </div>
241
+ </div>
242
+
243
+ <div class="col-lg-5 d-flex d-md-none align-items-center justify-content-end">
244
+ <div
245
+ class={' d-none d-lg-block d-flex flex-row align-items-center justify-content-end'}
246
+ style={{
247
+ position: 'relative',
248
+ background: sectionproperties.formRightbgColor,
249
+ borderTopRightRadius: sectionproperties.formRight_bordertoprightradius + 'px',
250
+ borderTopLeftRadius: sectionproperties.formRight_bordertopleftradius + 'px',
251
+ borderBottomRightRadius: sectionproperties.formRight_borderbottomrightadius + 'px',
252
+ borderBottomLeftRadius: sectionproperties.formRight_borderbottomleftadius + 'px',
253
+ height: sectionproperties.formRight_height + 'px',
254
+ width: sectionproperties.formRight_width + 'px',
255
+ }}
256
+ >
257
+ <div class={' row w-100 m-0 d-flex flex-row align-items-center '}>
258
+ <div
259
+ class={' d-flex justify-content-center align-items-center '}
260
+ style={{
261
+ position: 'absolute',
262
+ top: sectionproperties.image_topposition + 'px',
263
+ left: 0,
264
+ right: 0,
265
+ margin: 'auto',
266
+ width: sectionproperties.image_Width + 'px',
267
+ height: sectionproperties.image_height + 'px',
268
+ }}
269
+ >
270
+ <img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''} style={{ maxWidth: '100%', maxHeight: '100%' }}></img>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ );
277
+ };
278
+ export default Backgroundimage_with_toppill;