tabexseriescomponents 0.0.64 → 0.0.66

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 (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -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;
@@ -0,0 +1,129 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { serverbaselink } from '../../../../../Env';
4
+ import { IKImage } from 'imagekitio-react';
5
+ import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
6
+ const BackgroundimageandTextsection = (props) => {
7
+ const [sectionproperties, setsectionproperties] = useState('');
8
+ const [imagesarray, setimagesarray] = useState([]);
9
+ const lang = props.actions.lang;
10
+ const langdetect = props.actions.langdetect;
11
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
12
+ const routingcountext = props.actions.routingcountext;
13
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
14
+ const sectionindexcontext = props.sectionindexcontext;
15
+ useEffect(() => {
16
+ if (props.srcfrom == 'addsectionform') {
17
+ var secpropobj = {};
18
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
19
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
20
+ });
21
+ setsectionproperties({ ...secpropobj });
22
+ } else {
23
+ var secpropobj = {};
24
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25
+ if (sectionitem.sectionid == props.sectionidprops) {
26
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
27
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
28
+ });
29
+ }
30
+ });
31
+ setsectionproperties({ ...secpropobj });
32
+ }
33
+ }, [StatePagePropertiesContext]);
34
+ useEffect(() => {
35
+ if (sectionproperties.length != 0) {
36
+ if (sectionproperties.arrayofobjectimagesonly != null) {
37
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
38
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
39
+ setimagesarray([...arrayofobjectimagesonlyparsed]);
40
+ }
41
+ }
42
+ }
43
+ }, [sectionproperties]);
44
+ const sectionstyles = {
45
+ btnstyles: css({
46
+ width: sectionproperties.generalbtn_width + 'px',
47
+ height: sectionproperties.generalbtn_height + 'px',
48
+ background: sectionproperties.generalbtn_bgColor,
49
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
50
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
51
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
52
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
53
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
54
+ color: sectionproperties.generalbtn_textColor,
55
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
56
+ fontWeight: sectionproperties.generalbtn_fontweight,
57
+ ':hover': {
58
+ transition: '.3s',
59
+ background: sectionproperties.generalbtn_bgColoronhover,
60
+ color: sectionproperties.generalbtn_textColoronhover,
61
+ },
62
+ }),
63
+ };
64
+ return (
65
+ <div
66
+ class="row ml-0 mr-0 w-100 pl-md-3 pr-md-3 pt-md-5"
67
+ style={{
68
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
69
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
70
+ marginTop: sectionproperties.marginTop + 'px',
71
+ marginBottom: sectionproperties.marginBottom + 'px',
72
+ background: sectionproperties.backgroundColor,
73
+ }}
74
+ >
75
+ <div class="col-lg-6 d-flex align-items-center mb-md-3 pt-md-5 pb-md-5">
76
+ <div class="row m-0 w-100 d-flex align-items-center pt-md-5 pb-md-1">
77
+ <div class="col-lg-12 d-flex justify-content-md-center">
78
+ <p
79
+ class="p-0 wordbreak text-md-center"
80
+ style={{
81
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
82
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
83
+ color: sectionproperties.slideshowText1ContentColor,
84
+ marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
85
+ }}
86
+ >
87
+ {langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar}
88
+ </p>
89
+ </div>
90
+ <div class="col-lg-12 d-flex justify-content-md-center">
91
+ <p
92
+ class="p-0 wordbreak text-md-center"
93
+ style={{
94
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
95
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
96
+ color: sectionproperties.slideshowText2ContentColor,
97
+ marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
98
+ }}
99
+ >
100
+ {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
101
+ </p>
102
+ </div>
103
+ {sectionproperties.generalbtn_show == 'Show' && (
104
+ <div class="col-lg-12 d-flex justify-content-md-center">
105
+ <button
106
+ class={sectionstyles.btnstyles + ' allcentered '}
107
+ onClick={() => {
108
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
109
+ }}
110
+ >
111
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
112
+ </button>
113
+ </div>
114
+ )}
115
+ </div>
116
+ </div>
117
+ <div
118
+ class="col-lg-6 p-0 d-flex h-sm-50"
119
+ style={{
120
+ backgroundImage: imagesarray.length != 0 ? 'url(' + serverbaselink + imagesarray[0].bgsection_image + ')' : '',
121
+ backgroundSize: sectionproperties.bgcovercontain,
122
+ width: '100%',
123
+ height: sectionproperties.image_height + 'vh',
124
+ }}
125
+ ></div>
126
+ </div>
127
+ );
128
+ };
129
+ export default BackgroundimageandTextsection;
@@ -0,0 +1,153 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { serverbaselink } from '../../../../../Env';
4
+
5
+ const Section_with_rightbgcont = (props) => {
6
+ const [sectionproperties, setsectionproperties] = useState('');
7
+ const [cardsarray, setcardsarray] = useState([]);
8
+ const lang = props.actions.lang;
9
+ const langdetect = props.actions.langdetect;
10
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
11
+ const routingcountext = props.actions.routingcountext;
12
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
13
+
14
+ useEffect(() => {
15
+ if (props.srcfrom == 'addsectionform') {
16
+ var secpropobj = {};
17
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
18
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
19
+ });
20
+ setsectionproperties({ ...secpropobj });
21
+ } else {
22
+ var secpropobj = {};
23
+
24
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25
+ if (sectionitem.sectionid == props.sectionidprops) {
26
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
27
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
28
+ });
29
+ }
30
+ });
31
+ setsectionproperties({ ...secpropobj });
32
+ }
33
+ }, [StatePagePropertiesContext]);
34
+ useEffect(() => {
35
+ if (sectionproperties.length != 0) {
36
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
37
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
38
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
39
+ setcardsarray([...bgsection_imagearrayofobjsparsed]);
40
+ }
41
+ }
42
+ }
43
+ }, [sectionproperties]);
44
+ const bg1_cssstyles = {
45
+ general_btn: css({
46
+ height: sectionproperties.generalbtn_height + 'px',
47
+ width: sectionproperties.generalbtn_width + 'px',
48
+ background: sectionproperties.generalbtn_bgColor,
49
+ color: sectionproperties.generalbtn_textColor,
50
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
51
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
52
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
53
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
54
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
55
+ lineHeight: sectionproperties.generalbtn_fontsize + 'px',
56
+ textTransform: sectionproperties.generalbtn_texttransform,
57
+ fontWeight: sectionproperties.generalbtn_fontweight,
58
+ marginLeft: sectionproperties.generalbtn_marginLeft + 'px',
59
+ marginRight: sectionproperties.generalbtn_marginRight + 'px',
60
+ marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
61
+ marginTop: sectionproperties.generalbtn_marginTop + 'px',
62
+ transition: '.3s',
63
+ ':hover': {
64
+ background: sectionproperties.generalbtn_bgColoronhover,
65
+ color: sectionproperties.generalbtn_textColoronhover,
66
+ },
67
+ }),
68
+ text1styles: css({
69
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
70
+ lineHeight: sectionproperties.slideshowText1ContentFontSize + 'px',
71
+ color: sectionproperties.slideshowText1ContentColor,
72
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
73
+ textTransform: sectionproperties.slideshowText1ContentTextTransform,
74
+ marginLeft: sectionproperties.slideshowText1Content_marginLeft + 'px',
75
+ marginRight: sectionproperties.slideshowText1Content_marginRight + 'px',
76
+ marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
77
+ marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
78
+ ':after': {
79
+ display: 'block',
80
+ content: 's',
81
+ fontSize: '0',
82
+ width: sectionproperties.slideshowText1_lineafterwidth + '%',
83
+ height: '7px',
84
+ background: sectionproperties.slideshowText1_showlineafter == 'Show' ? sectionproperties.slideshowText1ContentColor : 'transparent',
85
+ position: 'absolute',
86
+ bottom: 0,
87
+ left: '10px',
88
+ margin: 'auto',
89
+ borderRadius: '10px',
90
+ },
91
+ }),
92
+ };
93
+ return (
94
+ <div class="row w-100 m-0 mt-sm-3" style={{ position: 'relative', zIndex: 1 }}>
95
+ <div class={`${sectionstyles.homestyling}` + ' d-md-none '} style={{ background: sectionproperties.formRightbgColor }}></div>
96
+ <div class={`${sectionstyles.home1_container} ` + ' w-100 '}>
97
+ <div class="row w-100 m-0 pl-5 pr-5 pl-sm-2 pr-sm-2">
98
+ <div class="col-lg-5 col-md-12 col-sm-12 d-flex justify-content-start align-items-center">
99
+ <div class="row m-0 w-100">
100
+ {sectionproperties.slideshowtext1_show == 'Show' && (
101
+ <div class="col-lg-12 d-md-flex justify-content-md-center align-items-md-center">
102
+ <p class={`${bg1_cssstyles.text1styles} ${sectionstyles.text1styles}` + ' ml-md-0 mr-md-0 font-sm-20 line-height-sm-20 '}>
103
+ {sectionproperties.slideshowtext1_show == 'Show' && sectionproperties.slideshowText1Content}
104
+ </p>
105
+ </div>
106
+ )}
107
+ {sectionproperties.slideshowtext2_show == 'Show' && (
108
+ <div class="col-lg-12 d-md-flex justify-content-md-center align-items-md-center">
109
+ {sectionproperties.slideshowtext2_show == 'Show' && (
110
+ <p
111
+ style={{
112
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
113
+ color: sectionproperties.slideshowText2ContentColor,
114
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
115
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
116
+ marginLeft: sectionproperties.slideshowText2Content_marginLeft + 'px',
117
+ marginRight: sectionproperties.slideshowText2Content_marginRight + 'px',
118
+ marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
119
+ marginTop: sectionproperties.slideshowText2Content_marginTop + 'px',
120
+ }}
121
+ class="font-sm-20 line-height-sm-20"
122
+ >
123
+ {sectionproperties.slideshowText2Content}
124
+ </p>
125
+ )}
126
+ </div>
127
+ )}
128
+ {sectionproperties.generalbtn_show == 'Show' && (
129
+ <div class="col-lg-12 justify-content-start m-md-0 d-md-flex justify-content-md-center align-items-md-center">
130
+ <button
131
+ class={`${bg1_cssstyles.general_btn}` + ' ml-md-0 mr-md-0 '}
132
+ onClick={() => {
133
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
134
+ }}
135
+ >
136
+ {sectionproperties.generalbtn_content}
137
+ </button>
138
+ </div>
139
+ )}
140
+ </div>
141
+ </div>
142
+
143
+ <div class="col-lg-7 col-md-12 col-sm-12 d-flex justify-content-center align-items-center">
144
+ <div class={`${sectionstyles.img_container}`}>
145
+ <img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''}></img>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ );
152
+ };
153
+ export default Section_with_rightbgcont;