tabexseriescomponents 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +6859 -6478
- package/dist/index.esm.js +6862 -6481
- package/dist/index.umd.js +6862 -6482
- package/package.json +1 -1
- package/srcOLD/Contexts/LanguageContext.jsx +347 -0
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
- package/srcOLD/StylesJS/Customstyles.js +235 -0
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +40 -0
- package/srcOLD/index.jsx +175 -0
- package/srcOLD/styles/Home.module.css +129 -0
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcOLD/styles/cards/Productcard6.module.css +9 -0
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcOLD/styles/cards/categorycard.module.css +102 -0
- package/srcOLD/styles/cards/categorycard3.module.css +51 -0
- package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcOLD/styles/general/bootstrap.css +4420 -0
- package/srcOLD/styles/general/dropdown.css +199 -0
- package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
- package/srcOLD/styles/general/filter.module.css +108 -0
- package/srcOLD/styles/general/form.module.css +273 -0
- package/srcOLD/styles/general/general.module.css +709 -0
- package/srcOLD/styles/general/image-gallery.css +481 -0
- package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
- package/srcOLD/styles/general/scrollbtn.module.css +22 -0
- package/srcOLD/styles/general/slick.module.css +166 -0
- package/srcOLD/styles/general/tabs.module.css +110 -0
- package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
- package/srcOLD/styles/globals.css +26 -0
- package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
- package/srcOLD/styles/headers/Header7.module.css +50 -0
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
- package/srcOLD/styles/headers/Sideheader.module.css +108 -0
- package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +175 -0
- package/srcOLD/styles/headers/header5.module.css +30 -0
- package/srcOLD/styles/headers/header6.module.css +117 -0
- package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
- package/srcOLD/styles/headers/headerresturant.module.css +89 -0
- package/srcOLD/styles/headers/headerstyles.module.css +24 -0
- package/srcOLD/styles/headers/modernheader.module.css +78 -0
- package/srcOLD/styles/headers/subheader.module.css +114 -0
- package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcOLD/styles/staticpages/accordion.module.css +9 -0
- package/srcOLD/styles/staticpages/cart.module.css +108 -0
- package/srcOLD/styles/staticpages/dropdown.css +196 -0
- package/srcOLD/styles/staticpages/filter.module.css +139 -0
- package/srcOLD/styles/staticpages/login.module.css +146 -0
- package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
- package/srcOLD/styles/staticpages/shop.module.css +191 -0
- package/srcOLD/styles/staticpages/signup.module.css +206 -0
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
- package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// import { serverbaselink } from '../../../Env_Variables';
|
|
3
|
+
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
4
|
+
import { css } from 'glamor';
|
|
5
|
+
import cardstyles from '../../../styles/cards/Categorycard_withshapes.module.css';
|
|
6
|
+
|
|
7
|
+
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
8
|
+
import { IKImage } from 'imagekitio-react';
|
|
9
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
10
|
+
|
|
11
|
+
const Categorycard_withshapes = (props) => {
|
|
12
|
+
// const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = React.useContext(WebsiteDesignWorkPlaceContext);
|
|
13
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
14
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
15
|
+
const [item, setitem] = useState(props.cardinfoitemprops);
|
|
16
|
+
const [index, setindex] = useState(props.cardinfoindexprops);
|
|
17
|
+
|
|
18
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
19
|
+
const lang = props.actions.lang;
|
|
20
|
+
const langdetect = props.actions.langdetect;
|
|
21
|
+
const routingcountext = props.actions.routingcountext;
|
|
22
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (props.srcfrom == 'addsectionform') {
|
|
25
|
+
var secpropobj = {};
|
|
26
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
27
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
setsectionproperties({ ...secpropobj });
|
|
31
|
+
} else {
|
|
32
|
+
var secpropobj = {};
|
|
33
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
34
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
35
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
36
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
setsectionproperties({ ...secpropobj });
|
|
41
|
+
}
|
|
42
|
+
}, [StatePagePropertiesContext]);
|
|
43
|
+
const card_cssstyles = {
|
|
44
|
+
categoryCard: css({
|
|
45
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? sectionproperties.backgroundColor : '',
|
|
46
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
47
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
48
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
49
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
50
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
51
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
52
|
+
marginLeft: sectionproperties.card_marginLeft + 'px',
|
|
53
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
54
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
55
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
56
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
57
|
+
height: sectionproperties.height + 'px',
|
|
58
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : '',
|
|
59
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
60
|
+
transition: '0.3s',
|
|
61
|
+
cursor: 'pointer',
|
|
62
|
+
opacity: sectionproperties.cardbg_opacity,
|
|
63
|
+
overflow: 'hidden',
|
|
64
|
+
cursor: 'pointer',
|
|
65
|
+
backgroundSize: 'cover',
|
|
66
|
+
backgroundRepeat: 'no-repeat',
|
|
67
|
+
backgroundPosition: 'center',
|
|
68
|
+
transition: '0.3s',
|
|
69
|
+
':after': {
|
|
70
|
+
backgroundColor: sectionproperties.transitionbg_color,
|
|
71
|
+
},
|
|
72
|
+
}),
|
|
73
|
+
|
|
74
|
+
categorycardtext: css({
|
|
75
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
76
|
+
color: sectionproperties.generaltext_fontColor,
|
|
77
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
78
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
79
|
+
}),
|
|
80
|
+
shadow1: css({
|
|
81
|
+
background: sectionproperties.firstcolor,
|
|
82
|
+
// primary
|
|
83
|
+
}),
|
|
84
|
+
shadow2: css({
|
|
85
|
+
background: sectionproperties.secondcolor,
|
|
86
|
+
// primary
|
|
87
|
+
}),
|
|
88
|
+
cards_three__rect2: css({
|
|
89
|
+
':before': {
|
|
90
|
+
background: sectionproperties.secondcolor,
|
|
91
|
+
},
|
|
92
|
+
':after': {
|
|
93
|
+
background: sectionproperties.firstcolor,
|
|
94
|
+
},
|
|
95
|
+
}),
|
|
96
|
+
cards_three__circle: css({
|
|
97
|
+
':before': {
|
|
98
|
+
background: sectionproperties.firstcolor,
|
|
99
|
+
},
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
return (
|
|
103
|
+
<div
|
|
104
|
+
class={`${cardstyles.card__collection} ${card_cssstyles.categoryCard}`}
|
|
105
|
+
onClick={() => {
|
|
106
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
107
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
108
|
+
}
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
class={`${cardstyles.cards} ${cardstyles.cards_three}`}
|
|
113
|
+
style={{
|
|
114
|
+
// backgroundImage: `url(${serverbaselink + item.image})`,
|
|
115
|
+
backgroundPosition: 'center center',
|
|
116
|
+
backgroundRepeat: 'no-repeat',
|
|
117
|
+
backgroundSize: 'cover',
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
<IKImage
|
|
121
|
+
urlEndpoint={IKurlEndpoint}
|
|
122
|
+
publicKey={IKpublicKey}
|
|
123
|
+
path={item.image}
|
|
124
|
+
style={{
|
|
125
|
+
width: '100%',
|
|
126
|
+
height: '100%',
|
|
127
|
+
objectFit: 'cover',
|
|
128
|
+
}}
|
|
129
|
+
loading="lazy"
|
|
130
|
+
/>
|
|
131
|
+
<span class={`${cardstyles.cards_three__rect1}`}>
|
|
132
|
+
<span class={`${cardstyles.shadow1} ${card_cssstyles.shadow1}`}></span>
|
|
133
|
+
|
|
134
|
+
{sectionproperties.general_showtext == 'Show' && (
|
|
135
|
+
<div class={' row m-0 w-100 '}>
|
|
136
|
+
<div class="col-lg-12 p-0">
|
|
137
|
+
<p class={`${card_cssstyles.categorycardtext}` + ' m-0 p-0 '}>{item.name}</p>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
)}
|
|
141
|
+
</span>
|
|
142
|
+
<span class={`${cardstyles.cards_three__rect2} ${card_cssstyles.cards_three__rect2}`}>
|
|
143
|
+
<span class={`${cardstyles.shadow2} ${card_cssstyles.shadow2}`}></span>
|
|
144
|
+
</span>
|
|
145
|
+
<span class={`${cardstyles.cards_three__circle} ${card_cssstyles.cards_three__circle}`}></span>
|
|
146
|
+
{sectionproperties.generalbtn_show == 'Show' && (
|
|
147
|
+
<div
|
|
148
|
+
class={`${cardstyles.cards_three__list}`}
|
|
149
|
+
onClick={() => {
|
|
150
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
151
|
+
}}
|
|
152
|
+
>
|
|
153
|
+
<div class={`${cardstyles.btncont} ` + ' row m-0 w-100'}>
|
|
154
|
+
<p style={{ zIndex: 1000 }}>More Items</p>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
)}
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
export default Categorycard_withshapes;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// import { serverbaselink } from '../../../Env_Variables';
|
|
3
|
+
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
4
|
+
import { css } from 'glamor';
|
|
5
|
+
import cardstyles from '../../../styles/cards/categorycardwithtext.module.css';
|
|
6
|
+
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
7
|
+
import { IKImage } from 'imagekitio-react';
|
|
8
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
9
|
+
|
|
10
|
+
// import { LanguageContext } from '../../../LanguageContext';
|
|
11
|
+
|
|
12
|
+
const Categorycard_withtext = (props) => {
|
|
13
|
+
// const { lang, langdetect } = useContext(LanguageContext);
|
|
14
|
+
// const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = React.useContext(WebsiteDesignWorkPlaceContext);
|
|
15
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
16
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
17
|
+
const [item, setitem] = useState(props.cardinfoitemprops);
|
|
18
|
+
const [index, setindex] = useState(props.cardinfoindexprops);
|
|
19
|
+
|
|
20
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
21
|
+
const lang = props.actions.lang;
|
|
22
|
+
const langdetect = props.actions.langdetect;
|
|
23
|
+
const routingcountext = props.actions.routingcountext;
|
|
24
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (props.srcfrom == 'addsectionform') {
|
|
27
|
+
var secpropobj = {};
|
|
28
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
29
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
setsectionproperties({ ...secpropobj });
|
|
33
|
+
} else {
|
|
34
|
+
var secpropobj = {};
|
|
35
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
36
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
37
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
38
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
setsectionproperties({ ...secpropobj });
|
|
43
|
+
}
|
|
44
|
+
}, [StatePagePropertiesContext]);
|
|
45
|
+
const categorycard_cssstyles = {
|
|
46
|
+
categorycard: css({
|
|
47
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
48
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
49
|
+
height: sectionproperties.height + 'px',
|
|
50
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
51
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
52
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
53
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
54
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
55
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
56
|
+
transition: '0.3s',
|
|
57
|
+
cursor: 'pointer',
|
|
58
|
+
opacity: sectionproperties.cardbg_opacity,
|
|
59
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
60
|
+
':hover': {
|
|
61
|
+
opacity: sectionproperties.bgopacityonhover,
|
|
62
|
+
},
|
|
63
|
+
':before': {
|
|
64
|
+
content: 's',
|
|
65
|
+
position: 'absolute',
|
|
66
|
+
left: '35px',
|
|
67
|
+
top: '30px',
|
|
68
|
+
border: sectionproperties.bordertransitionbg_colorwidth + 'px solid ' + sectionproperties.bordertransitionbg_color,
|
|
69
|
+
width: 'calc(100% - 70px)',
|
|
70
|
+
height: 'calc(100% - 60px)',
|
|
71
|
+
transform: 'scale(0)',
|
|
72
|
+
transition: 'all 0.3s',
|
|
73
|
+
fontSize: 0,
|
|
74
|
+
},
|
|
75
|
+
':hover:before': {
|
|
76
|
+
opacity: sectionproperties.bordertransitionopacityonhover,
|
|
77
|
+
transform: 'scale(1)',
|
|
78
|
+
},
|
|
79
|
+
':after': {
|
|
80
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
81
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
82
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
83
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
84
|
+
content: 's',
|
|
85
|
+
fontSize: 0,
|
|
86
|
+
position: 'absolute',
|
|
87
|
+
top: 0,
|
|
88
|
+
bottom: 0,
|
|
89
|
+
left: 0,
|
|
90
|
+
width: '100%',
|
|
91
|
+
height: '100%',
|
|
92
|
+
zIndex: 1,
|
|
93
|
+
transition: ' 0.3s',
|
|
94
|
+
background: sectionproperties.transitionbg_color,
|
|
95
|
+
opacity: sectionproperties.cardtransition_opacity,
|
|
96
|
+
},
|
|
97
|
+
':hover:after': {
|
|
98
|
+
opacity: sectionproperties.cardtransitionbgopacityonhover,
|
|
99
|
+
},
|
|
100
|
+
}),
|
|
101
|
+
categorycardtext: css({
|
|
102
|
+
color: sectionproperties.generaltext_fontColor,
|
|
103
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
104
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
105
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
106
|
+
transition: '.3s',
|
|
107
|
+
cursor: 'pointer',
|
|
108
|
+
zIndex: 1000,
|
|
109
|
+
':hover': {
|
|
110
|
+
color: sectionproperties.text_secondarycolor,
|
|
111
|
+
},
|
|
112
|
+
}),
|
|
113
|
+
cardbtn: css({
|
|
114
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
115
|
+
backgroundColor: sectionproperties.generalbtn_bgColor,
|
|
116
|
+
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
117
|
+
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
118
|
+
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
119
|
+
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
120
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
121
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
122
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
123
|
+
color: sectionproperties.generalbtn_textColor,
|
|
124
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
125
|
+
opacity: sectionproperties.generalbtn_showonhover == 'Show On Hover' ? 0 : 1,
|
|
126
|
+
top: sectionproperties.generalbtn_showonhover == 'Show On Hover' ? '100px' : 0,
|
|
127
|
+
zIndex: 1000,
|
|
128
|
+
':hover': {
|
|
129
|
+
backgroundColor: sectionproperties.generalbtn_bgColoronhover,
|
|
130
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
131
|
+
top: sectionproperties.generalbtn_showonhover == 'Show On Hover' ? 0 : '100px',
|
|
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
|
+
<div
|
|
144
|
+
class={`${categorycard_cssstyles.categorycard} ${cardstyles.categorycard}` + ' col-lg-12 p-0 w-100 '}
|
|
145
|
+
onClick={() => {
|
|
146
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
147
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
148
|
+
} else {
|
|
149
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
150
|
+
}
|
|
151
|
+
}}
|
|
152
|
+
style={{
|
|
153
|
+
width: '100%',
|
|
154
|
+
}}
|
|
155
|
+
>
|
|
156
|
+
<IKImage
|
|
157
|
+
urlEndpoint={IKurlEndpoint}
|
|
158
|
+
publicKey={IKpublicKey}
|
|
159
|
+
path={item.image}
|
|
160
|
+
loading="lazy"
|
|
161
|
+
style={{
|
|
162
|
+
width: '100%',
|
|
163
|
+
height: '100%',
|
|
164
|
+
objectFit: 'cover',
|
|
165
|
+
}}
|
|
166
|
+
/>
|
|
167
|
+
<div class={`${categorycard_cssstyles.categorycardtext} ${cardstyles.categorycardtext}` + ' row m-0 w-100 '}>
|
|
168
|
+
<div class="col-lg-12 d-flex justify-content-center align-items-center flex-column">
|
|
169
|
+
{sectionproperties.general_showtext == 'Show' && <p class={'m-0 p-0 font-md-20 font-sm-15 text-center'}>{item.name}</p>}
|
|
170
|
+
{sectionproperties.generalbtn_show == 'Show' && (
|
|
171
|
+
<div>
|
|
172
|
+
<button
|
|
173
|
+
class={`${categorycard_cssstyles.cardbtn} ${cardstyles.cardbtn}` + ' font-md-13 '}
|
|
174
|
+
onClick={(e) => {
|
|
175
|
+
e.stopPropagation();
|
|
176
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
177
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
178
|
+
} else {
|
|
179
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
180
|
+
}
|
|
181
|
+
}}
|
|
182
|
+
>
|
|
183
|
+
{langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar}
|
|
184
|
+
</button>
|
|
185
|
+
</div>
|
|
186
|
+
)}
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
export default Categorycard_withtext;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// import { LanguageContext } from '../../../LanguageContext';
|
|
3
|
+
// import { FetchingContext } from '../../../FetchingContext';
|
|
4
|
+
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
5
|
+
import productcardsstyles from '../../../styles/cards/productcard_with_textonhover.module.css';
|
|
6
|
+
|
|
7
|
+
import { css } from 'glamor';
|
|
8
|
+
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
9
|
+
import { IKImage } from 'imagekitio-react';
|
|
10
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
11
|
+
|
|
12
|
+
const Classiccategorycard = (props) => {
|
|
13
|
+
// const { lang, langdetect } = useContext(LanguageContext);
|
|
14
|
+
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
15
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
16
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
17
|
+
const [item, setitem] = useState(props.cardinfoitemprops);
|
|
18
|
+
|
|
19
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
20
|
+
const lang = props.actions.lang;
|
|
21
|
+
const langdetect = props.actions.langdetect;
|
|
22
|
+
const routingcountext = props.actions.routingcountext;
|
|
23
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (props.srcfrom == 'addsectionform') {
|
|
26
|
+
var secpropobj = {};
|
|
27
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
28
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
setsectionproperties({ ...secpropobj });
|
|
32
|
+
} else {
|
|
33
|
+
var secpropobj = {};
|
|
34
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
35
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
36
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
37
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
setsectionproperties({ ...secpropobj });
|
|
42
|
+
}
|
|
43
|
+
}, [StatePagePropertiesContext]);
|
|
44
|
+
const card_cssstyles = {
|
|
45
|
+
productcard: css({
|
|
46
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
47
|
+
height: sectionproperties.height + 'px',
|
|
48
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
49
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
50
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
51
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
52
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
53
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
54
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
55
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
56
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
57
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
58
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
59
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
60
|
+
opacity: sectionproperties.cardbg_opacity,
|
|
61
|
+
transition: '.3s',
|
|
62
|
+
color: sectionproperties.generaltext_fontColor,
|
|
63
|
+
':hover': {
|
|
64
|
+
opacity: sectionproperties.bgopacityonhover,
|
|
65
|
+
opacity: sectionproperties.bgopacityonhover,
|
|
66
|
+
color: sectionproperties.text_secondarycolor,
|
|
67
|
+
},
|
|
68
|
+
}),
|
|
69
|
+
productNameStyles: css({
|
|
70
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
71
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
72
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
73
|
+
}),
|
|
74
|
+
productcard_text_container: css({
|
|
75
|
+
background: sectionproperties.textcontainer_bgcolor,
|
|
76
|
+
borderRadius: sectionproperties.textcontainer_borderBottomLeftRadius + 'px',
|
|
77
|
+
border: sectionproperties.textcontainer_borderwidth + 'px solid ' + sectionproperties.textcontainer_bordercolor,
|
|
78
|
+
opacity: sectionproperties.textcontainer_opacity,
|
|
79
|
+
paddingLeft: '18px',
|
|
80
|
+
paddingRight: '18px',
|
|
81
|
+
paddingTop: '8px',
|
|
82
|
+
paddingBottom: '8px',
|
|
83
|
+
transition: '.3s',
|
|
84
|
+
':hover': {
|
|
85
|
+
opacity: sectionproperties.textcontainer_opacityonhover,
|
|
86
|
+
},
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<div
|
|
92
|
+
class="row m-0 w-100"
|
|
93
|
+
style={{
|
|
94
|
+
paddingLeft: sectionproperties.card_marginLeft + 'px',
|
|
95
|
+
paddingRight: sectionproperties.card_marginRight + 'px',
|
|
96
|
+
}}
|
|
97
|
+
>
|
|
98
|
+
{sectionproperties.length != 0 && (
|
|
99
|
+
<div
|
|
100
|
+
class={`${productcardsstyles.productcard} ${card_cssstyles.productcard}` + ' col-lg-12 p-0 '}
|
|
101
|
+
onClick={() => {
|
|
102
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
103
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
104
|
+
} else {
|
|
105
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
106
|
+
}
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
<IKImage
|
|
110
|
+
urlEndpoint={IKurlEndpoint}
|
|
111
|
+
publicKey={IKpublicKey}
|
|
112
|
+
path={item.image}
|
|
113
|
+
style={{
|
|
114
|
+
width: '100%',
|
|
115
|
+
objectFit: 'cover',
|
|
116
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
117
|
+
height: sectionproperties.height + 'px',
|
|
118
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
119
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
120
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
121
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
122
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
123
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
124
|
+
color: sectionproperties.prodNameColor,
|
|
125
|
+
opacity: sectionproperties.cardbg_opacity,
|
|
126
|
+
transition: '.3s',
|
|
127
|
+
':hover': {
|
|
128
|
+
opacity: sectionproperties.bgopacityonhover,
|
|
129
|
+
color: sectionproperties.prodNameColorOnHover,
|
|
130
|
+
opacity: sectionproperties.bgopacityonhover,
|
|
131
|
+
position: 'relative',
|
|
132
|
+
},
|
|
133
|
+
}}
|
|
134
|
+
loading="lazy"
|
|
135
|
+
/>
|
|
136
|
+
<div class={`${productcardsstyles.productcard_text_container}` + ' row m-0 w-100 text-center pl-5 pr-5 justify-content-center '}>
|
|
137
|
+
<div class={`${card_cssstyles.productcard_text_container} ` + ' ps-0 '}>
|
|
138
|
+
<p
|
|
139
|
+
onClick={(e) => {
|
|
140
|
+
e.stopPropagation();
|
|
141
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
142
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
143
|
+
} else {
|
|
144
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
145
|
+
}
|
|
146
|
+
}}
|
|
147
|
+
class={`${card_cssstyles.productNameStyles}` + ' m-0 wordbrek '}
|
|
148
|
+
>
|
|
149
|
+
{item.name}
|
|
150
|
+
</p>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
)}
|
|
155
|
+
</div>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
export default Classiccategorycard;
|