From 691d2142c3c496c3cf3f8bd3fd1e9aa8efba38e0 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 30 May 2022 11:27:59 +0430 Subject: [PATCH] update src/components/Blog/Design7/index.js, src/components/MiniComponents/OfferSection/index.js, data.js and tailwind.config.js --- src/components/Blog/Design7/index.js | 49 +++++++++++++------ .../MiniComponents/OfferSection/index.js | 2 +- .../ShowCase/BlogShowcase1/index.js | 47 ++++++++++++++++++ src/components/ShowCase/index.js | 25 ++++++++++ src/redux/data.js | 11 +++++ 5 files changed, 118 insertions(+), 16 deletions(-) create mode 100644 src/components/ShowCase/BlogShowcase1/index.js create mode 100644 src/components/ShowCase/index.js diff --git a/src/components/Blog/Design7/index.js b/src/components/Blog/Design7/index.js index 924ce38..7fbe91d 100644 --- a/src/components/Blog/Design7/index.js +++ b/src/components/Blog/Design7/index.js @@ -1,13 +1,34 @@ import React from "react"; -const Design7 = ({ featuredImage, featuredImageClassname }) => { +const Design7 = ({ + cardClass, + featuredImage, + featuredImageClassname, + playImage, + title, +}) => { return ( -
- blog +
+ {/* Featured Image */} +
+ {/* play button */} + {playImage && ( +
+ play +
+ )} +
+ {/* Title */} +

+ {title} +

); }; @@ -15,14 +36,12 @@ const Design7 = ({ featuredImage, featuredImageClassname }) => { export default Design7; Design7.defaultProps = { - featuredImage: "images/offersectionalex-lvrs-HDjExSGuWUw-unsplash.svg", - featuredImageClassname: "", -}; - -// + cardClass: "w-[333px]", -// offersectionalexander-mils-nG4ZimMIO_k-unsplash.svg + featuredImage: `url("images/VodDesign1watermelon.png")`, + featuredImageClassname: "min-h-[180px]", -// offersectionkobby-mendez-w0_w3N_hG00-unsplash.svg + playImage: "images/VodDesign1white-play-button-icon.svg", -// offersectionno-revisions-Fa8lOzYsTss-unsplash.svg + title: "ایا یخ های قطبی در حال اب شدن هستند؟ زنگ خطر به صدا در امد", +}; diff --git a/src/components/MiniComponents/OfferSection/index.js b/src/components/MiniComponents/OfferSection/index.js index 1cccb87..97d9e45 100644 --- a/src/components/MiniComponents/OfferSection/index.js +++ b/src/components/MiniComponents/OfferSection/index.js @@ -11,7 +11,7 @@ const OfferSection = () => { } /> {/* divider */} -
+
{/* left Button */}