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,281 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- // import { LanguageContext } from '../../../../LanguageContext';
3
- // import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
4
- import { css } from 'glamor';
5
- import { IKImage } from 'imagekitio-react';
6
- import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
7
-
8
- const AboutSection = (props) => {
9
- // const { lang, langdetect } = useContext(LanguageContext);
10
- // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
11
- const [sectionproperties, setsectionproperties] = useState('');
12
- const [bgimagesarray, setbgimagesarray] = useState([]);
13
- const [cardsarray, setcardsarray] = useState([]);
14
-
15
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
16
- const lang = props.actions.lang;
17
- const langdetect = props.actions.langdetect;
18
-
19
- useEffect(() => {
20
- if (props.srcfrom == 'addsectionform') {
21
- var secpropobj = {};
22
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
23
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
24
- });
25
- setsectionproperties({ ...secpropobj });
26
- } else {
27
- var secpropobj = {};
28
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
29
- if (sectionitem.sectionid == props.sectionidprops) {
30
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
31
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
32
- });
33
- }
34
- });
35
- setsectionproperties({ ...secpropobj });
36
- }
37
- }, [StatePagePropertiesContext]);
38
- useEffect(() => {
39
- if (sectionproperties.length != 0) {
40
- if (sectionproperties.bgsection_imagearrayofobjs != null) {
41
- var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
42
- if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
43
- setbgimagesarray([...bgsection_imagearrayofobjsparsed]);
44
- }
45
- }
46
- if (sectionproperties.card_arrayofobjects != null) {
47
- var card_arrayofobjectsparsed = JSON.parse(sectionproperties.card_arrayofobjects);
48
- if (Array.isArray(card_arrayofobjectsparsed)) {
49
- setcardsarray([...card_arrayofobjectsparsed]);
50
- }
51
- }
52
- }
53
- }, [sectionproperties]);
54
- const section_styles = {
55
- cards_sections: css({
56
- marginTop: sectionproperties.marginTop + 'px',
57
- marginBottom: sectionproperties.marginBottom + 'px',
58
- paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
59
- paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
60
- paddingTop: sectionproperties.paddingTop + 'px',
61
- paddingBottom: sectionproperties.paddingBottom + 'px',
62
- background: sectionproperties.backgroundColor,
63
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
64
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
65
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
66
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
67
- borderColor: sectionproperties.sectioncardbordercolor,
68
- border: sectionproperties.sectioncardborderwidth + 'px solid',
69
- }),
70
- sectiontitlespan: css({
71
- ':after': {
72
- position: 'absolute',
73
- content: 's',
74
- fontSize: '0',
75
- bottom: 0,
76
- right: 0,
77
- left: 0,
78
- display: 'block',
79
- height: '3px',
80
- width: sectionproperties.sectitle_lineafterwidth + '%',
81
- backgroundColor: sectionproperties.linebgcolor,
82
- },
83
- }),
84
- sectiontitlespan2: css({
85
- ':after': {
86
- position: 'absolute',
87
- content: 's',
88
- fontSize: '0',
89
- bottom: 0,
90
- right: 0,
91
- left: 0,
92
- display: 'block',
93
- height: '100%',
94
- width: sectionproperties.sectitle_lineafterwidth + '%',
95
- backgroundColor: sectionproperties.linebgcolor,
96
- borderRadius: '5px',
97
- },
98
- }),
99
- };
100
- const imagesection = () => {
101
- return (
102
- <div style={{ height: sectionproperties.image_height + 'px', overflow: 'hidden' }} class="h-sm-auto">
103
- <IKImage
104
- urlEndpoint={IKurlEndpoint}
105
- publicKey={IKpublicKey}
106
- class="h-sm-auto"
107
- path={bgimagesarray.length != 0 ? '/tr:w-500/' + bgimagesarray[0].bgsection_image : ''}
108
- style={{
109
- width: '100%',
110
- height: sectionproperties.image_height + 'px',
111
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
112
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
113
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
114
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
115
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
116
- border: sectionproperties.image_borderwidth + ' solid ' + sectionproperties.image_bordercolor,
117
- objectFit: sectionproperties.bgcovercontain,
118
- }}
119
- />
120
- </div>
121
- );
122
- };
123
-
124
- return (
125
- <div class="row m-0 d-flex justify-content-center w-100 align-items-center">
126
- <div class={section_styles.cards_sections + ' col-lg-12 pl-md-2 pr-md-2 '}>
127
- <div class="row m-0 d-flex justify-content-center w-100">
128
- <div class="col-lg-4 d-flex d-md-none justify-content-end justify-content-md-center p-md-0 align-items-center">{imagesection()}</div>
129
- <div class="col-lg-6 mb-md-3 d-flex justify-content-start h-100">
130
- <div
131
- class="row ml-0 mr-0 w-100 mb-auto"
132
- style={{
133
- paddingTop: sectionproperties.sectionTitleMarginTop + 'px',
134
- }}
135
- >
136
- <div
137
- class="col-lg-12 d-flex justify-content-md-center p-0"
138
- style={{
139
- marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
140
- }}
141
- >
142
- <div class="row ml-0 mr-0 w-100 mb-auto">
143
- <div
144
- class="col-lg-12 d-flex justify-content-md-center p-0"
145
- style={{
146
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
147
- }}
148
- >
149
- {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
150
- <p
151
- style={{
152
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
153
- color: sectionproperties.sectionTitleColor,
154
- fontWeight: sectionproperties.sectionTitleFontWeight,
155
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
156
- position: 'relative',
157
- }}
158
- >
159
- <span class={`${section_styles.sectiontitlespan}`}>
160
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
161
- </span>
162
- </p>
163
- )}
164
- </div>
165
- <div
166
- class="col-lg-12 d-flex justify-content-md-center p-0"
167
- style={{
168
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
169
- }}
170
- >
171
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
172
- <p
173
- className={langdetect == 'en' ? 'pl-3 wordbreak text-md-center' : 'pr-3 wordbreak text-md-center'}
174
- style={{
175
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
176
- color: sectionproperties.sectionTitleColor,
177
- fontWeight: sectionproperties.sectionTitleFontWeight,
178
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
179
- position: 'relative',
180
- }}
181
- >
182
- <span class={`${section_styles.sectiontitlespan2}` + ' wordbreak '}>
183
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
184
- </span>
185
- </p>
186
- )}
187
- </div>
188
- </div>
189
- </div>
190
- <div
191
- class={'col-lg-12 d-flex justify-content-center mb-3 pl-md-2 pr-md-2'}
192
- style={
193
- {
194
- // paddingLeft: sectionproperties.descriptionCentered == 'Centered' ? sectionproperties.description_marginLeft + 'px' : '3rem',
195
- // paddingRight: sectionproperties.descriptionCentered == 'Centered' ? sectionproperties.description_marginRight + 'px' : '3rem',
196
- }
197
- }
198
- >
199
- <p
200
- class={'p-md-0 justify-content-md-center wordbreak text-md-center'}
201
- style={{
202
- position: 'relative',
203
- fontSize: sectionproperties.prodCatFontSize + 'px',
204
- color: sectionproperties.prodCatColor,
205
- fontWeight: sectionproperties.prodCatFontWeight,
206
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
207
- textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
208
- // paddingLeft: sectionproperties.descriptionCentered == 'Centered' ? 0 : '3rem',
209
- // paddingRight: sectionproperties.descriptionCentered == 'Centered' ? 0 : '3rem',
210
- }}
211
- >
212
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
213
- </p>
214
- </div>
215
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
216
- return (
217
- <div class="col-lg-6 d-flex mb-3">
218
- <div class="row m-0 w-100 d-flex flex-row">
219
- <p
220
- class="MonotonCursive mt-n2 p-0 m-0"
221
- style={{
222
- color: sectionproperties.generaltext_fontColor,
223
- fontSize: sectionproperties.generaltext_fontSize + 'px',
224
- whiteSpace: 'nowrap',
225
- }}
226
- >
227
- 0{cardinfoindex + 1}
228
- </p>
229
- <div class="col-lg-9 col-md-9 col-sm-9 d-flex flex-column pl-3">
230
- <p
231
- class="m-0 p-0 wordbreak wordbreak1"
232
- style={{
233
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
234
- color: sectionproperties.slideshowText1ContentColor,
235
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
236
- textAlign: langdetect == 'en' ? 'left' : 'right',
237
- }}
238
- >
239
- {langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_titleen : cardsarray[cardinfoindex].cardobj_titlear}
240
- </p>
241
- <p
242
- class="m-0 p-0 wordbreak wordbreak3"
243
- style={{
244
- color: sectionproperties.slideshowText2ContentColor,
245
- fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
246
- fontWeight: sectionproperties.slideshowText2ContentFontWeight,
247
- textAlign: langdetect == 'en' ? 'left' : 'right',
248
- }}
249
- >
250
- {langdetect == 'en' ? cardsarray[cardinfoindex].cardobj_descripen : cardsarray[cardinfoindex].cardobj_descripar}
251
- </p>
252
- </div>
253
- </div>
254
- </div>
255
- );
256
- })}
257
- </div>
258
- </div>
259
- <div class="col-lg-6 d-none d-md-flex justify-content-end justify-content-md-center pl-3 pr-3">
260
- {imagesection()}
261
- {/* <div style={{ height: sectionproperties.image_height + 'px', overflow: 'hidden' }}>
262
- <IKImage
263
- path={bgimagesarray.length != 0 ? '/tr:w-400/' + bgimagesarray[0].bgsection_image : ''}
264
- style={{
265
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
266
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
267
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
268
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
269
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
270
- border: sectionproperties.image_borderwidth + ' solid ' + sectionproperties.image_bordercolor,
271
- boxShadow: sectionproperties.image_showshadow == 'Show' ? ' 0 0 10px ' + sectionproperties.image_shadowcolor : '',
272
- }}
273
- />
274
- </div> */}
275
- </div>
276
- </div>
277
- </div>
278
- </div>
279
- );
280
- };
281
- export default AboutSection;
@@ -1,166 +0,0 @@
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 sectionstyles from './Backgroundimage_with_topcircle.module.css';
6
- import sectionstyles from '../../../../styles/sections/Backgroundimage_with_topcircle.module.css';
7
-
8
- // import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
9
- const Backgroundimage_with_topcircle = (props) => {
10
- // const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
11
- const [sectionproperties, setsectionproperties] = useState('');
12
- const [cardsarray, setcardsarray] = useState([]);
13
- // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
14
-
15
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
16
- const lang = props.actions.lang;
17
- const langdetect = props.actions.langdetect;
18
- const routingcountext = props.actions.routingcountext;
19
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
20
-
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 bg1_cssstyles = {
52
- topcircle: css({
53
- height: sectionproperties.topcircle_height + 'px',
54
- // height: '800px',
55
- background: sectionproperties.backgroundColor,
56
- // background:sectionproperties.topcircle_bgcolor,
57
- width: '100%',
58
- borderTopLeftRadius: sectionproperties.topcircle_borderTopLeftRadius + 'px',
59
- borderTopRightRadius: sectionproperties.topcircle_borderTopRightRadius + 'px',
60
- borderBottomLeftRadius: sectionproperties.topcircle_borderBottomLeftRadius + 'px',
61
- borderBottomRightRadius: sectionproperties.topcircle_borderBottomRightRadius + 'px',
62
- transition: '.3s',
63
- }),
64
- textstyle: css({
65
- color: sectionproperties.slideshowText1ContentColor,
66
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
67
- textTransform: sectionproperties.slideshowText1ContentTextTransform,
68
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
69
- position: 'absolute',
70
- top: sectionproperties.slideshowText1Content_marginTop + 'px',
71
- left: sectionproperties.slideshowText1Content_marginLeft + 'px',
72
- }),
73
- textstyle2: css({
74
- color: sectionproperties.slideshowText2ContentColor,
75
- fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
76
- textTransform: sectionproperties.slideshowText2ContentTextTransform,
77
- fontWeight: sectionproperties.slideshowText2ContentFontWeight,
78
- position: 'absolute',
79
- top: sectionproperties.generaltext2_topposition + 'px',
80
- left: sectionproperties.generaltext2_leftposition + 'px',
81
- }),
82
- general_btn: css({
83
- height: sectionproperties.generalbtn_height + 'px',
84
- width: sectionproperties.generalbtn_width + 'px',
85
- background: sectionproperties.generalbtn_bgColor,
86
- color: sectionproperties.generalbtn_textColor,
87
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
88
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
89
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
90
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
91
- textTransform: sectionproperties.generalbtn_texttransform,
92
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
93
- fontWeight: sectionproperties.generalbtn_fontweight,
94
- position: 'absolute',
95
- top: sectionproperties.generalbtn_topposition + 'px',
96
- left: sectionproperties.generalbtn_marginLeft + 'px',
97
- transition: '.3s',
98
- ':hover': {
99
- background: sectionproperties.generalbtn_bgColoronhover,
100
- color: sectionproperties.generalbtn_textColoronhover,
101
- },
102
- }),
103
- img_container: css({
104
- width: sectionproperties.img_height + 'px',
105
- height: sectionproperties.img_width + 'px',
106
- }),
107
- imgstyle: css({
108
- width: '100%',
109
- height: '100%',
110
- objectFit: 'contain',
111
- }),
112
- sectionstyle: css({
113
- height: '90vh',
114
- }),
115
- };
116
- return (
117
- <div class={`${bg1_cssstyles.sectionstyle}` + ' row w-100 m-0 '} style={{ position: 'relative', overflowY: 'hidden' }}>
118
- <div class={`${sectionstyles.homestyling} ${bg1_cssstyles.topcircle}`}></div>
119
- <div
120
- class={`${sectionstyles.home1_container}`}
121
- style={{
122
- paddingRight: sectionproperties.paddingRight + 'px',
123
- paddingLeft: sectionproperties.paddingLeft + 'px',
124
- paddingTop: sectionproperties.paddingTop + 'px',
125
- paddingBottom: sectionproperties.paddingBottom + 'px',
126
- position: 'absolute',
127
- top: 100,
128
- bottom: 0,
129
- }}
130
- >
131
- <div class="row w-100 m-0 ">
132
- {sectionproperties.imgstyle_show == 'show' && (
133
- <div class="col-lg-12 d-flex flex-column justify-content-start align-items-center" style={{}}>
134
- <div class={`${bg1_cssstyles.img_container} `}>
135
- <img class={`${bg1_cssstyles.imgstyle}`} src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''}></img>
136
- </div>
137
- </div>
138
- )}
139
- {sectionproperties.slideshowtext1_show == 'Show' && (
140
- <div class="col-lg-12 d-flex flex-row justify-content-center align-items-center">
141
- <p class={`${bg1_cssstyles.textstyle}` + ' m-0 '}>{sectionproperties.slideshowText1Content}</p>
142
- </div>
143
- )}
144
- {sectionproperties.slideshowtext2_show == 'Show' && (
145
- <div class="col-lg-12 d-flex flex-row justify-content-center align-items-center">
146
- <p class={`${bg1_cssstyles.textstyle2}` + ' m-0 '}>{sectionproperties.slideshowText2Content}</p>
147
- </div>
148
- )}
149
- {sectionproperties.generalbtn_show == 'Show' && (
150
- <div class="col-lg-12 text-center d-flex flex-row justify-content-center mt-3 " style={{ zIndex: 1000 }}>
151
- <button
152
- class={`${bg1_cssstyles.general_btn} `}
153
- onClick={() => {
154
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
155
- }}
156
- >
157
- {sectionproperties.generalbtn_content}
158
- </button>
159
- </div>
160
- )}
161
- </div>
162
- </div>
163
- </div>
164
- );
165
- };
166
- export default Backgroundimage_with_topcircle;
@@ -1,152 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- // import { LanguageContext } from '../../../../LanguageContext';
3
- // import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
4
- import { css } from 'glamor';
5
- // import generalstyles from '../../../Generalfiles/CSS_GENERAL/general.module.css';
6
- import generalstyles from '../../../../styles/general/general.module.css';
7
-
8
- const Freetextsection = (props) => {
9
- // const { lang, langdetect } = useContext(LanguageContext);
10
- // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
11
- const [sectionproperties, setsectionproperties] = useState('');
12
-
13
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
14
- const lang = props.actions.lang;
15
- const langdetect = props.actions.langdetect;
16
-
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
-
38
- const section_styles = {
39
- line_left: css({
40
- height: '1px',
41
- position: 'relative',
42
- flex: '1 1 auto',
43
- minWidth: '10%',
44
- background: sectionproperties.linebgcolor,
45
- }),
46
- line_right: css({
47
- height: '1px',
48
- position: 'relative',
49
- flex: '1 1 auto',
50
- minWidth: '10%',
51
- background: sectionproperties.linebgcolor,
52
- }),
53
- btn: css({
54
- width: sectionproperties.generalbtn_width + 'px',
55
- height: sectionproperties.generalbtn_height + 'px',
56
- backgroundColor: sectionproperties.generalbtn_bgColor,
57
- color: sectionproperties.generalbtn_textColor,
58
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
59
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
60
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
61
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
62
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
63
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
64
- fontWeight: sectionproperties.generalbtn_fontweight,
65
- marginTop: sectionproperties.generalbtn_marginTop + 'px',
66
- marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
67
- transition: '.3s',
68
- cursor: 'pointer',
69
- ':hover': {
70
- backgroundColor: sectionproperties.generalbtn_bgColoronhover,
71
- color: sectionproperties.generalbtn_textColoronhover,
72
- },
73
- }),
74
- };
75
-
76
- return (
77
- <div
78
- class={' row ml-0 mr-0 d-flex justify-content-between w-100 align-items-center pl-md-3 pr-md-3 '}
79
- style={{
80
- paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
81
- paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
82
- paddingTop: sectionproperties.paddingTop + 'px',
83
- paddingBottom: sectionproperties.paddingBottom + 'px',
84
- marginTop: sectionproperties.marginTop + 'px',
85
- marginBottom: sectionproperties.marginBottom + 'px',
86
- background: sectionproperties.backgroundColor,
87
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
88
- borderTopRightRadius: sectionproperties.borderTopLeftRadius + 'px',
89
- borderBottomLeftRadius: sectionproperties.borderBottomRightRadius + 'px',
90
- borderBottomRightRadius: sectionproperties.borderBottomLeftRadius + 'px',
91
- }}
92
- >
93
- <div class="col-lg-12 d-flex justify-content-start">
94
- <div class="row m-0 w-100 mb-auto">
95
- <div
96
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex align-items-center '}
97
- style={{
98
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
99
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
100
- }}
101
- >
102
- <div
103
- class="d-flex align-items-center flex-row"
104
- style={{
105
- position: 'relative',
106
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
107
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
108
- }}
109
- >
110
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_styles.line_left}></span>}
111
- <p
112
- class={`${section_styles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start '}
113
- style={{
114
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
115
- color: sectionproperties.sectionTitleColor,
116
- textTransform: sectionproperties.sectionTitleTextTransform,
117
- fontWeight: sectionproperties.sectionTitleFontWeight,
118
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
119
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
120
- }}
121
- >
122
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
123
- </p>
124
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_styles.line_right}></span>}
125
- </div>
126
- </div>
127
- <div class="col-lg-12 p-0 d-flex justify-content-center">
128
- <p
129
- class="text-md-center pl-md-3 pr-md-3"
130
- style={{
131
- textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
132
- color: sectionproperties.slideshowText2ContentColor,
133
- fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
134
- fontWeight: sectionproperties.slideshowText2ContentFontWeight,
135
- paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
136
- paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
137
- }}
138
- >
139
- {langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar}
140
- </p>
141
- </div>
142
- {sectionproperties.generalbtn_show == 'Show' && (
143
- <div class="col-lg-12 p-0">
144
- <button class={`${section_styles.btn}`}>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</button>
145
- </div>
146
- )}
147
- </div>
148
- </div>
149
- </div>
150
- );
151
- };
152
- export default Freetextsection;