corrected bg size and position

This commit is contained in:
2023-06-12 10:55:20 +01:00
parent 7b1f27a641
commit 4204b94231
2 changed files with 2 additions and 4 deletions
@@ -20,12 +20,10 @@ export default function HomeBannerOffersCard(props) {
else return null;
}, []);
var linkDivStyle = `item w-full block group banner-630-340`;
return (
<Link
to={link_result}
className={linkDivStyle}
className="item w-full block group banner-630-340 bg-cover bg-center"
style={{
backgroundImage: `url('${imageUrl}')`,
}}
+1 -1
View File
@@ -13,7 +13,7 @@ export default function HomeSliders(props) {
props.bannerList.map((item, index) => (
<div
key={index}
className="item w-full h-full bg-white dark:bg-dark-white rounded-2xl overflow-hidden"
className="item w-full h-full bg-white dark:bg-dark-white rounded-2xl overflow-hidden"
>
<HomeBannerOffersCard itemData={item} />
</div>