From 260c739dbe77c903ef89646e90784a0f9aaa32c6 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 25 Dec 2021 16:47:16 +0330 Subject: [PATCH] design 5 added --- src/App.js | 4 +- src/components/Blogs/design5/BlogDesign5.js | 72 +++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/components/Blogs/design5/BlogDesign5.js diff --git a/src/App.js b/src/App.js index 320a79a..ff6d6fe 100644 --- a/src/App.js +++ b/src/App.js @@ -8,6 +8,7 @@ import BlogDesign1 from "./components/Blogs/design1/BlogDesign1"; import BlogDesign2 from "./components/Blogs/design2/BlogDesign2"; import BlogDesign3 from "./components/Blogs/design3/BlogDesign3"; import BlogDesign4 from "./components/Blogs/design4/BlogDesign4"; +import BlogDesign5 from "./components/Blogs/design5/BlogDesign5"; function App() { return ( @@ -20,7 +21,8 @@ function App() { {/* */} {/* */} - + {/* */} + ); } diff --git a/src/components/Blogs/design5/BlogDesign5.js b/src/components/Blogs/design5/BlogDesign5.js new file mode 100644 index 0000000..8b74a64 --- /dev/null +++ b/src/components/Blogs/design5/BlogDesign5.js @@ -0,0 +1,72 @@ +import React from "react"; + +import blogImage from "../../../assets/images/blog-featured-image.jpg"; +import blogAuthorImg from "../../../assets/images/blog-author.png"; + +import commentIcon from "../../../assets/icons/black-comment-icon.svg"; + +const BlogDesign5 = ({ blogExcerpt, blogAuthor, blogComments }) => { + return ( +
+ {/* title holder */} +
+

+ طراحی بلاگ 5 +

+
+
+

+ آدرس: + + blogs/design5 + +

+
+ {/* blog UI Design5 */} +
+
+ +
+
+

+ آیا مواد غذای پر فیبر و مفید هستند؟ +

+ {blogExcerpt && ( +

+ در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد + شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا + دیگران متوجه شوند. +

+ )} + +
+ {blogAuthor && ( +
+ +

+ حامد دژبانی نسب +

+
+ )} + {blogComments && ( +
+

+ زمان مطالعه 30 دقیقه +

+ +
+ )} +
+
+
+
+ ); +}; + +export default BlogDesign5; + +BlogDesign5.defaultProps = { + blogExcerpt: true, + blogAuthor: true, + blogComments: true, +};