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,127 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import cardsstyles from '../../../styles/cards/Prouductcard_with_zoomhover.module.css';
3
+ import { css } from 'glamor';
4
+ import { AiFillStar } from 'react-icons/ai';
5
+ import { MdOutlineShoppingCart } from 'react-icons/md';
6
+ import { IKImage } from 'imagekitio-react';
7
+ const Prouductcard_with_zoomhover = (props) => {
8
+ const [sectionproperties, setsectionproperties] = useState('');
9
+ const [item, setitem] = useState(props.cardinfoitemprops);
10
+ const [index, setindex] = useState(props.cardinfoindexprops);
11
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
12
+ const lang = props.actions.lang;
13
+ const langdetect = props.actions.langdetect;
14
+ const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
15
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
16
+ const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
17
+ const AddtoCartContext = props.actions.AddtoCartContext;
18
+ const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
19
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
20
+ const routingcountext = props.actions.routingcountext;
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
+
28
+ setsectionproperties({ ...secpropobj });
29
+ } else {
30
+ var secpropobj = {};
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 (props.cardinfoitemprops != undefined) {
43
+ setitem(props.cardinfoitemprops);
44
+ }
45
+ }, [props.cardinfoitemprops]);
46
+ const card_cssstyles = {
47
+ productcard: css({
48
+ background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
49
+ opacity: sectionproperties.cardbg_opacity,
50
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
51
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
52
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
53
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
54
+ paddingLeft: sectionproperties.paddingLeft + 'px',
55
+ paddingRight: sectionproperties.paddingRight + 'px',
56
+ paddingTop: sectionproperties.paddingTop + 'px',
57
+ marginBottom: sectionproperties.marginBottom + 'px',
58
+ marginTop: sectionproperties.marginTop + 'px',
59
+ paddingBottom: sectionproperties.paddingBottom + 'px',
60
+ boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
61
+ border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
62
+ transition: '.3s',
63
+ height: '400px',
64
+ ':hover': {
65
+ categorycardtext: css({
66
+ color: sectionproperties.text_secondarycolor,
67
+
68
+ transitionDelay: '0.3s',
69
+ ':after': {
70
+ borderBottomColor: sectionproperties.text_secondarycolor,
71
+ },
72
+ }),
73
+ },
74
+ }),
75
+ categorycardtext: css({
76
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
77
+ color: sectionproperties.generaltext_fontColor,
78
+ textTransform: sectionproperties.generaltext_textTransform,
79
+ fontWeight: sectionproperties.generaltext_fontWeight,
80
+ opacity: 1,
81
+ transitionDelay: '0.3s',
82
+ ':after': {
83
+ borderBottomColor: sectionproperties.generaltext_fontColor,
84
+ },
85
+ }),
86
+ cardbtn: css({
87
+ fontWeight: sectionproperties.generalbtn_fontweight,
88
+ backgroundColor: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
89
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
90
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
91
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
92
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
93
+ height: sectionproperties.generalbtn_height + 'px',
94
+ width: sectionproperties.generalbtn_width + 'px',
95
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
96
+ color: sectionproperties.generalbtn_textColor,
97
+ textTransform: sectionproperties.generalbtn_texttransform,
98
+ opacity: sectionproperties.generalbtn_opacity,
99
+ ':hover': {
100
+ backgroundColor: sectionproperties.generalbtn_bgColoronhover,
101
+ color: sectionproperties.generalbtn_textColoronhover,
102
+ opacity: sectionproperties.generalbtn_opacityonhover,
103
+ },
104
+ }),
105
+ };
106
+
107
+ return (
108
+ <div class="row m-0 w-100 pl-md-2 pr-md-2">
109
+ <div
110
+ class={`${cardsstyles.productcard} ${card_cssstyles.productcard}` + ' d-flex flex-row justify-content-center align-items-center w-100 '}
111
+ style={{
112
+ backgroundImage: `url('https://media.istockphoto.com/photos/fashionable-woman-in-pink-dress-on-pink-background-picture-id917325078?k=20&m=917325078&s=170667a&w=0&h=1QwDo4uUflE8aofqp7bGtw4TNS10ClIh5u13VE75sxk=')`,
113
+ backgroundRepeat: 'no-repeat',
114
+ backgroundSize: 'cover',
115
+ }}
116
+ >
117
+ <div class="d-flex flex-column justify-content-center align-items-center">
118
+ <a class={`${card_cssstyles.categorycardtext}`} href="">
119
+ Sale
120
+ </a>
121
+ <button class={`${card_cssstyles.cardbtn} ` + ' mt-2 '}>Showmore</button>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ );
126
+ };
127
+ export default Prouductcard_with_zoomhover;
@@ -0,0 +1,126 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { IKImage } from 'imagekitio-react';
4
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
5
+
6
+ const Simplecategorycardwithtextbelow = (props) => {
7
+ const [sectionproperties, setsectionproperties] = useState('');
8
+ const [item, setitem] = useState(props.cardinfoitemprops);
9
+ const [index, setindex] = useState(props.cardinfoindexprops);
10
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
11
+ const lang = props.actions.lang;
12
+ const langdetect = props.actions.langdetect;
13
+ const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
14
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
15
+ const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
16
+ const AddtoCartContext = props.actions.AddtoCartContext;
17
+ const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
18
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
19
+ const routingcountext = props.actions.routingcountext;
20
+ useEffect(() => {
21
+ if (props.srcfrom == 'addsectionform') {
22
+ var secpropobj = {};
23
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
24
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
25
+ });
26
+
27
+ setsectionproperties({ ...secpropobj });
28
+ } else {
29
+ var secpropobj = {};
30
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
31
+ if (sectionitem.sectionid == props.sectionidprops) {
32
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
33
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
34
+ });
35
+ }
36
+ });
37
+ setsectionproperties({ ...secpropobj });
38
+ }
39
+ }, [StatePagePropertiesContext]);
40
+
41
+ const card_cssstyles = {
42
+ cardcontainer: css({
43
+ background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
44
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
45
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
46
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
47
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
48
+ marginTop: sectionproperties.marginTop + 'px',
49
+ marginBottom: sectionproperties.marginBottom + 'px',
50
+ paddingLeft: sectionproperties.paddingLeft + 'px',
51
+ paddingRight: sectionproperties.paddingRight + 'px',
52
+ paddingTop: sectionproperties.paddingTop + 'px',
53
+ paddingBottom: sectionproperties.paddingBottom + 'px',
54
+ border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
55
+ color: sectionproperties.generaltext_fontColor,
56
+ transition: '.3s',
57
+ cursor: 'pointer',
58
+ ':hover .categoryname': {
59
+ color: sectionproperties.text_secondarycolor,
60
+ },
61
+ }),
62
+ imagecontainer: css({
63
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'Transparent' : sectionproperties.image_bgcolor,
64
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
65
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
66
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
67
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
68
+ height: sectionproperties.image_height + 'px',
69
+ }),
70
+ categoryname: css({
71
+ color: sectionproperties.generaltext_fontColor,
72
+ textTransform: sectionproperties.generaltext_textTransform,
73
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
74
+ fontWeight: sectionproperties.generaltext_fontWeight,
75
+ transition: '.3s',
76
+ ':hover': {
77
+ color: sectionproperties.text_secondarycolor,
78
+ },
79
+ }),
80
+ };
81
+
82
+ return (
83
+ <div
84
+ class="row m-0 w-100"
85
+ style={{
86
+ paddingLeft: sectionproperties.card_marginLeft + 'px',
87
+ paddingRight: sectionproperties.card_marginRight + 'px',
88
+ }}
89
+ >
90
+ {sectionproperties.length != 0 && (
91
+ <div
92
+ class={card_cssstyles.cardcontainer + ' col-lg-12 '}
93
+ onClick={() => {
94
+ // e.stopPropagation();
95
+ if (props.fetchingtypeprops == 'collections') {
96
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
97
+ } else {
98
+ routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
99
+ }
100
+ }}
101
+ >
102
+ <div class=" row m-0 w-100 ">
103
+ <div class={card_cssstyles.imagecontainer + ' col-lg-12 p-0 mb-2 '}>
104
+ <IKImage
105
+ urlEndpoint={IKurlEndpoint}
106
+ publicKey={IKpublicKey}
107
+ path={'/tr:w-230,h-220/' + item.image}
108
+ // path={item.image}
109
+ style={{
110
+ width: '100%',
111
+ height: '100%',
112
+ objectFit: 'cover',
113
+ }}
114
+ loading="lazy"
115
+ ></IKImage>
116
+ </div>
117
+ <div class="col-lg-12 p-0 allcentered">
118
+ <p class={card_cssstyles.categoryname + ' m-0 p-0 categoryname wordbreak text-center '}>{item.name}</p>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ )}
123
+ </div>
124
+ );
125
+ };
126
+ export default Simplecategorycardwithtextbelow;
@@ -0,0 +1,292 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { IKImage } from 'imagekitio-react';
4
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
5
+ import { FiShoppingCart, FiShoppingBag } from 'react-icons/fi';
6
+ import { IoBagHandleOutline } from 'react-icons/io5';
7
+ import { CgShoppingBag } from 'react-icons/cg';
8
+ import { BsBag } from 'react-icons/bs';
9
+ import { MdOutlineShoppingCart } from 'react-icons/md';
10
+ import { AiFillStar, AiOutlineStar } from 'react-icons/ai';
11
+ import { FaRegHeart, FaHeart } from 'react-icons/fa';
12
+ import { BsHandbag } from 'react-icons/bs';
13
+
14
+ const Simpleproductcard = (props) => {
15
+ const [sectionproperties, setsectionproperties] = useState('');
16
+ const [item, setitem] = useState(props.cardinfoitemprops);
17
+ const [index, setindex] = useState(props.cardinfoindexprops);
18
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
19
+ const lang = props.actions.lang;
20
+ const langdetect = props.actions.langdetect;
21
+ const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
22
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
23
+ const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
24
+ const AddtoCartContext = props.actions.AddtoCartContext;
25
+ const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
26
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27
+ const routingcountext = props.actions.routingcountext;
28
+ useEffect(() => {
29
+ if (props.srcfrom == 'addsectionform') {
30
+ var secpropobj = {};
31
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
32
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
33
+ });
34
+
35
+ setsectionproperties({ ...secpropobj });
36
+ } else {
37
+ var secpropobj = {};
38
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
39
+ if (sectionitem.sectionid == props.sectionidprops) {
40
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
41
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
42
+ });
43
+ }
44
+ });
45
+ setsectionproperties({ ...secpropobj });
46
+ }
47
+ }, [StatePagePropertiesContext]);
48
+
49
+ const card_cssstyles = {
50
+ productcard: css({
51
+ minHeight: 420,
52
+ background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
53
+ opacity: sectionproperties.cardbg_opacity,
54
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
55
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
56
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
57
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
58
+ marginTop: sectionproperties.marginTop + 'px',
59
+ marginBottom: sectionproperties.marginBottom + 'px',
60
+ paddingLeft: sectionproperties.paddingLeft + 'px',
61
+ paddingRight: sectionproperties.paddingRight + 'px',
62
+ paddingTop: sectionproperties.paddingTop + 'px',
63
+ paddingBottom: sectionproperties.paddingBottom + 'px',
64
+ border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
65
+ transition: '.3s',
66
+ color: sectionproperties.prodNameColor,
67
+ ':hover': {
68
+ opacity: sectionproperties.bgopacityonhover,
69
+ color: sectionproperties.prodNameColorOnHover,
70
+ },
71
+ }),
72
+ productcardimagecont: css({
73
+ position: 'relative',
74
+ overflow: 'hidden',
75
+ height: sectionproperties.image_height + 'px',
76
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
77
+ border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
78
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
79
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
80
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
81
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
82
+ transition: '.3s',
83
+ }),
84
+ productNameStyles: css({
85
+ fontSize: sectionproperties.prodNameFontSize + 'px',
86
+ textTransform: sectionproperties.prodNameTextTranform,
87
+ fontWeight: sectionproperties.prodNameFontWeight,
88
+ transition: '.3s',
89
+ cursor: 'pointer',
90
+ }),
91
+ productPricestyles: css({
92
+ color: sectionproperties.prodPriceColor,
93
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
94
+ fontWeight: sectionproperties.prodPriceFontWeight,
95
+ }),
96
+ productSalePricestyles: css({
97
+ color: sectionproperties.prodsalePriceColor,
98
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
99
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
100
+ }),
101
+ wishlist_btn: css({
102
+ width: sectionproperties.favBtnWidth + 'px',
103
+ height: sectionproperties.favBtnHeight + 'px',
104
+ background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
105
+ borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
106
+ color: sectionproperties.favBtnTextcolor,
107
+ fontSize: sectionproperties.favBtnTextfontsize + 'px',
108
+ textTransform: sectionproperties.favBtnTexttransform,
109
+ fontWeight: sectionproperties.favBtnTextfontweight,
110
+ transition: '.3s',
111
+ border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
112
+ ':hover': {
113
+ background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
114
+ color: sectionproperties.favBtnTextcoloronhover,
115
+ },
116
+ }),
117
+ cart_btn: css({
118
+ width: sectionproperties.cartBtnWidth + 'px',
119
+ height: sectionproperties.cartBtnHeight + 'px',
120
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
121
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
122
+ color: sectionproperties.cartBtnTextcolor,
123
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
124
+ textTransform: sectionproperties.cartBtnTexttransform,
125
+ fontWeight: sectionproperties.cartBtnTextfontweight,
126
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
127
+ transition: '.3s',
128
+ ':hover': {
129
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
130
+ color: sectionproperties.cartBtnTextcoloronhover,
131
+ },
132
+ }),
133
+ };
134
+
135
+ return (
136
+ <div
137
+ class="row m-0 w-100"
138
+ style={{
139
+ paddingLeft: sectionproperties.card_marginLeft + 'px',
140
+ paddingRight: sectionproperties.card_marginRight + 'px',
141
+ }}
142
+ >
143
+ {sectionproperties.length != 0 && (
144
+ <div class={`${card_cssstyles.productcard}` + ' cursor-pointer col-lg-12 p-0 w-100 '}>
145
+ <div
146
+ onClick={() => {
147
+ // e.stopPropagation();
148
+ if (props.fetchingtypeprops == 'collections') {
149
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
150
+ } else {
151
+ routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
152
+ }
153
+ }}
154
+ class={`${card_cssstyles.productcardimagecont}` + ' col-lg-12 p-0 mb-2 '}
155
+ style={{
156
+ height: sectionproperties.image_height + 'px',
157
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
158
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
159
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
160
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
161
+ }}
162
+ >
163
+ <IKImage
164
+ urlEndpoint={IKurlEndpoint}
165
+ publicKey={IKpublicKey}
166
+ path={'/tr:w-230,h-300/' + item.image}
167
+ loading="lazy"
168
+ style={{
169
+ width: '100%',
170
+ height: '100%',
171
+ objectFit: 'cover',
172
+ }}
173
+ />
174
+ {sectionproperties.favBtnShow == 'Show' && (
175
+ <button
176
+ class={` ${card_cssstyles.wishlist_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center '}
177
+ onClick={(e) => {
178
+ e.stopPropagation();
179
+ addtofavoritescontext(item.productid);
180
+ }}
181
+ style={{
182
+ position: 'absolute',
183
+ top: 10,
184
+ right: langdetect == 'en' ? 10 : '',
185
+ left: langdetect == 'en' ? '' : 10,
186
+ background: item.IsFavExists == true ? sectionproperties.activebgcolor : '',
187
+ }}
188
+ >
189
+ {item.IsFavExists && (
190
+ <i class="h-100 d-flex align-items-center justify-content-center">
191
+ {sectionproperties.faviconshape == 'Star Shape' && (
192
+ <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
193
+ )}
194
+ {sectionproperties.faviconshape == 'Heart Shape' && (
195
+ <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
196
+ )}
197
+ </i>
198
+ )}
199
+ {!item.IsFavExists && (
200
+ <i class="h-100 d-flex align-items-center justify-content-center">
201
+ {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
202
+ {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
203
+ </i>
204
+ )}
205
+ </button>
206
+ )}
207
+ {item?.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && (
208
+ <div
209
+ class="allcentered"
210
+ style={{
211
+ position: 'absolute',
212
+ top: 10,
213
+ left: langdetect == 'en' ? 10 : '',
214
+ right: langdetect == 'en' ? '' : 10,
215
+ width: sectionproperties.badge_width + 'px',
216
+ height: sectionproperties.badge_height + 'px',
217
+ background: sectionproperties.badge_bgcolor,
218
+ borderRadius: sectionproperties.badge_borderradius + 'px',
219
+ }}
220
+ >
221
+ <p class="m-0 p-0" style={{ color: sectionproperties.badge_color, fontSize: sectionproperties.badge_fontsize + 'px' }}>
222
+ {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
223
+ </p>
224
+ </div>
225
+ )}
226
+ </div>
227
+ <div>
228
+ <div class="row m-0 w-100 ">
229
+ {sectionproperties.prodNameShow == 'Show' && (
230
+ <div class="col-lg-12 p-0">
231
+ <p
232
+ onClick={() => {
233
+ if (props.fetchingtypeprops == 'collections') {
234
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
235
+ } else {
236
+ routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
237
+ }
238
+ }}
239
+ class={`${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak1 text-center m-0 '}
240
+ >
241
+ {item.name}
242
+ </p>
243
+ </div>
244
+ )}
245
+
246
+ <div style={{ flexDirection: 'column' }} class="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
247
+ <div class="row m-0 w-100 ">
248
+ <div class="d-flex flex-row col-lg-12 m-0 p-0 align-items-center justify-content-center mb-1 ">
249
+ <div class=" d-flex align-items-center justify-content-center p-0 mb-0">
250
+ {sectionproperties.prodPriceShow == 'Show' && (
251
+ <p class={`${card_cssstyles.productPricestyles}` + ' m-0 '}>
252
+ {langdetect == 'en' ? 'EGP' : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
253
+ </p>
254
+ )}
255
+ {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && (
256
+ <div class=" d-flex align-items-center justify-content-center p-0 mb-0">
257
+ <p class={`${card_cssstyles.productSalePricestyles}` + ' linethrough m-0 mr-2 ml-2 '}>
258
+ {langdetect == 'en' ? 'EGP' : ''} {item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
259
+ </p>
260
+ </div>
261
+ )}
262
+ </div>
263
+ </div>
264
+ </div>
265
+ {sectionproperties.cartBtnShow == 'Show' && (
266
+ <p
267
+ class={`${card_cssstyles.cart_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center '}
268
+ onClick={() => {
269
+ setShowProductInfoModalContext(true);
270
+ setProductIdProdutInfoModalContext(item.productid);
271
+ }}
272
+ >
273
+ <i class={langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'}>
274
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
275
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
276
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
277
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
278
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
279
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
280
+ </i>
281
+ {lang.addtocart}
282
+ </p>
283
+ )}
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ )}
289
+ </div>
290
+ );
291
+ };
292
+ export default Simpleproductcard;