build(deps): update package.json, src/components/AddToCart/index.js, src/components/Banners/index.js and yarn.lock
parent
a95c47ddba
commit
d8331b1f7c
4 changed files with 10815 additions and 11184 deletions
@ -1,60 +1,61 @@ |
|||||||
import React from "react"; |
import React from "react"; |
||||||
|
|
||||||
const Banners = ({ |
const Banners = ({ mainBanner, leftBanner, midTopBanner, midBottomBanner }) => { |
||||||
mainBanner, |
|
||||||
leftBanner, |
|
||||||
midTopBanner, |
|
||||||
midBottomBanner, |
|
||||||
}) => { |
|
||||||
return ( |
return ( |
||||||
<div className="flex w-full justify-between" style={{ |
<div |
||||||
height: '400px' |
className="w-full flex justify-between" |
||||||
}}> |
style={{ |
||||||
<div className={`h-full w-1/2 rounded-xl flex items-center`} style={{ |
height: "400px", |
||||||
background: mainBanner ? '' : 'rgba(134,160,185,0.16)', |
}} |
||||||
|
> |
||||||
}}> |
<div |
||||||
|
className={`w-1/2 h-full flex items-center rounded-xl`} |
||||||
<img src={mainBanner} className="rounded-xl h-full" /> |
style={{ |
||||||
|
background: mainBanner ? "" : "rgba(134,160,185,0.16)", |
||||||
|
}} |
||||||
|
> |
||||||
|
<img src={mainBanner} className="h-full rounded-xl" alt="banner" /> |
||||||
</div> |
</div> |
||||||
<div className="flex h-full w-1/2 "> |
<div className="w-1/2 h-full flex"> |
||||||
<div className="flex flex-col w-1/2 h-full px-6 justify-center items-between"> |
<div className="w-1/2 h-full flex flex-col justify-center items-between px-6"> |
||||||
|
<div |
||||||
<div className={`${midTopBanner ? '' : 'h-1/2 '} w-full rounded-xl mb-2`} |
className={`${midTopBanner ? "" : "h-1/2 "} w-full rounded-xl mb-2`} |
||||||
style={{ |
style={{ |
||||||
background: midTopBanner ? '' : 'rgba(134,160,185,0.16)', |
background: midTopBanner ? "" : "rgba(134,160,185,0.16)", |
||||||
|
|
||||||
}} |
}} |
||||||
> |
> |
||||||
|
<img |
||||||
<img src={midTopBanner} className="rounded-xl" /> |
src={midTopBanner} |
||||||
|
className="rounded-xl" |
||||||
|
alt="mid-top-banner" |
||||||
|
/> |
||||||
</div> |
</div> |
||||||
<div className={`${midBottomBanner ? '' : 'h-1/2 '} w-full rounded-xl mt-2`} |
<div |
||||||
|
className={`${ |
||||||
|
midBottomBanner ? "" : "h-1/2 " |
||||||
|
} w-full rounded-xl mt-2`}
|
||||||
style={{ |
style={{ |
||||||
background: midBottomBanner ? '' : 'rgba(134,160,185,0.16)', |
background: midBottomBanner ? "" : "rgba(134,160,185,0.16)", |
||||||
|
|
||||||
}} |
}} |
||||||
> |
> |
||||||
|
<img |
||||||
<img src={midBottomBanner} className="rounded-xl" /> |
src={midBottomBanner} |
||||||
|
className="rounded-xl" |
||||||
|
alt="mid-bottom-banner" |
||||||
|
/> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
<div className=" h-full w-1/2 rounded-xl" |
<div |
||||||
|
className="w-1/2 h-full rounded-xl" |
||||||
style={{ |
style={{ |
||||||
background: leftBanner ? '' : 'rgba(134,160,185,0.16)', |
background: leftBanner ? "" : "rgba(134,160,185,0.16)", |
||||||
|
|
||||||
}} |
}} |
||||||
> |
> |
||||||
<img src={leftBanner} className="rounded-xl" /> |
<img src={leftBanner} className="rounded-xl" alt="left-banner" /> |
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
) |
); |
||||||
} |
}; |
||||||
|
|
||||||
|
|
||||||
export default Banners; |
export default Banners; |
Loading…
Reference in new issue