Home banners set up
This commit is contained in:
@@ -5,10 +5,18 @@ import localImgLoad from "../../lib/localImgLoad";
|
|||||||
export default function HomeBannerOffersCard(props) {
|
export default function HomeBannerOffersCard(props) {
|
||||||
console.log("HomeBannerOffersCard-> ##->",props)
|
console.log("HomeBannerOffersCard-> ##->",props)
|
||||||
const link_result = "/" + props.itemData.link_path;
|
const link_result = "/" + props.itemData.link_path;
|
||||||
|
var imgUrl = props.itemData.banner; // ? this.state.nextImgSrc : this.state.song.imgSrc;
|
||||||
|
console.log("IMAGE FOR BANNER->",imgUrl);
|
||||||
|
var divStyle = {
|
||||||
|
backgroundImage: 'url(' + imgUrl + ')'
|
||||||
|
}
|
||||||
|
var linkDivStyle = "item w-full block group banner-630-340 " + divStyle;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
to={link_result}
|
to={link_result}
|
||||||
className="item w-full block group banner-630-340"
|
className={linkDivStyle}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col justify-between h-full">
|
<div className="flex flex-col justify-between h-full">
|
||||||
<div className="content flex justify-between items-center mb-5">
|
<div className="content flex justify-between items-center mb-5">
|
||||||
|
|||||||
+4
-2
@@ -11,10 +11,12 @@
|
|||||||
}
|
}
|
||||||
.siderCardHeader{
|
.siderCardHeader{
|
||||||
margin: 40px 40px 10px 40px;
|
margin: 40px 40px 10px 40px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bolder;
|
||||||
}
|
}
|
||||||
.siderCardDescription{
|
.siderCardDescription{
|
||||||
margin: 30px;
|
margin: 20px 45px 10px 45px;
|
||||||
font-size: 24px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
.siderCardButton{
|
.siderCardButton{
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user