From 18e7495e00107feffc7b9557372e6be836315725 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Tue, 10 May 2022 15:56:44 +0430 Subject: [PATCH] update 2 files and delete 7 files --- src/components/Blog/design5/index.js | 5 -- src/components/Blogss/design1/index.js | 66 ---------------- src/components/Blogss/design2/index.js | 103 ------------------------- src/components/Blogss/design3/index.js | 71 ----------------- src/components/Blogss/design4/index.js | 68 ---------------- src/components/Blogss/design5/index.js | 71 ----------------- src/components/Blogss/design6/index.js | 63 --------------- src/components/Blogss/index.js | 35 --------- src/redux/data.js | 6 +- 9 files changed, 3 insertions(+), 485 deletions(-) delete mode 100644 src/components/Blogss/design1/index.js delete mode 100644 src/components/Blogss/design2/index.js delete mode 100644 src/components/Blogss/design3/index.js delete mode 100644 src/components/Blogss/design4/index.js delete mode 100644 src/components/Blogss/design5/index.js delete mode 100644 src/components/Blogss/design6/index.js delete mode 100644 src/components/Blogss/index.js diff --git a/src/components/Blog/design5/index.js b/src/components/Blog/design5/index.js index 1a8f0a9..6ce3f09 100644 --- a/src/components/Blog/design5/index.js +++ b/src/components/Blog/design5/index.js @@ -1,9 +1,4 @@ import React from "react"; - -import blogImage from "../assets/blog-featured-image.jpg"; -import blogAuthorImg from "../assets/blog-author.png"; - -import commentIcon from "../assets/light-gray-comment-icon.svg"; import CommentIcon from "../../MiniComponents/CommentIcon"; const BlogDesign5 = ({ diff --git a/src/components/Blogss/design1/index.js b/src/components/Blogss/design1/index.js deleted file mode 100644 index 83be1e5..0000000 --- a/src/components/Blogss/design1/index.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from "react"; -import CommentIcon from "../../MiniComponents/CommentIcon"; - -const BlogDesign1 = ({ - blogTitle, - blogExcerpt, - featuredImage, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
- blogImage -
-
- {blogTitle && ( -

- {blogTitle} -

- )} - {blogExcerpt && ( -

- {blogExcerpt} -

- )} -
-
- {blogAuthor && ( -
- author -

{blogAuthor}

-
- )} - {blogComments && ( -
-

{blogComments}

- -
- )} -
-
-
- ); -}; - -export default BlogDesign1; - -BlogDesign1.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogExcerpt: `در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد - شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا - دیگران متوجه شوند. -`, - - featuredImage: "images/blog-featured-image.jpg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, -}; diff --git a/src/components/Blogss/design2/index.js b/src/components/Blogss/design2/index.js deleted file mode 100644 index 3e9a993..0000000 --- a/src/components/Blogss/design2/index.js +++ /dev/null @@ -1,103 +0,0 @@ -import React from "react"; -import Button from "../../Button"; -import CommentIcon from "../../MiniComponents/CommentIcon"; -import NewTagDesign from "../../NewTagDesign"; - -const BlogDesign2 = ({ - blogTitle, - blogSubTitle, - featuredImage, - dateButton, - tagButton, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
- {dateButton && ( -
- ); -}; - -export default BlogDesign2; - -BlogDesign2.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogSubTitle: `شما چه فکری می کنید`, - - featuredImage: "images/blog-featured-image2.jpg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, - - dateButton: true, - tagButton: false, -}; diff --git a/src/components/Blogss/design3/index.js b/src/components/Blogss/design3/index.js deleted file mode 100644 index 6c9fbc3..0000000 --- a/src/components/Blogss/design3/index.js +++ /dev/null @@ -1,71 +0,0 @@ -import React from "react"; -import CommentIcon from "../../MiniComponents/CommentIcon"; - -const BlogDesign3 = ({ - blogTitle, - blogSubTitle, - featuredImage, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
- {/* */} -
- {blogTitle && ( -

- {blogTitle} -

- )} - {blogSubTitle && ( -

- شما چه فکری می کنید -

- )} -
- {blogAuthor && ( -
- author -

{blogAuthor}

-
- )} - {blogComments && ( -
-

{blogComments}

- -
- )} -
-
-
- ); -}; - -export default BlogDesign3; - -BlogDesign3.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogSubTitle: `شما چه فکری می کنید`, - - featuredImage: "images/blog-featured-image2.jpg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, -}; diff --git a/src/components/Blogss/design4/index.js b/src/components/Blogss/design4/index.js deleted file mode 100644 index d9bf7fb..0000000 --- a/src/components/Blogss/design4/index.js +++ /dev/null @@ -1,68 +0,0 @@ -import React from "react"; -import CommentIcon from "../../MiniComponents/CommentIcon"; - -const BlogDesign4 = ({ - blogTitle, - blogExcerpt, - featuredImage, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
-
- -
-
-
- {blogTitle && ( -

- {blogTitle} -

- )} - {blogExcerpt && ( -

- {blogExcerpt} -

- )} -
-
- {blogAuthor && ( -
- author -

{blogAuthor}

-
- )} - {blogComments && ( -
-

{blogComments}

- -
- )} -
-
-
- ); -}; - -export default BlogDesign4; - -BlogDesign4.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogExcerpt: `در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد - شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا - دیگران متوجه شوند. -`, - - featuredImage: "images/blog-featured-image.jpg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, -}; diff --git a/src/components/Blogss/design5/index.js b/src/components/Blogss/design5/index.js deleted file mode 100644 index 1a8f0a9..0000000 --- a/src/components/Blogss/design5/index.js +++ /dev/null @@ -1,71 +0,0 @@ -import React from "react"; - -import blogImage from "../assets/blog-featured-image.jpg"; -import blogAuthorImg from "../assets/blog-author.png"; - -import commentIcon from "../assets/light-gray-comment-icon.svg"; -import CommentIcon from "../../MiniComponents/CommentIcon"; - -const BlogDesign5 = ({ - blogTitle, - blogExcerpt, - featuredImage, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
- blogImage -
-
- {blogTitle && ( -

- {blogTitle} -

- )} - {blogExcerpt && ( -

- {blogExcerpt} -

- )} -
-
- {blogAuthor && ( -
- author -

{blogAuthor}

-
- )} - {blogComments && ( -
-

{blogComments}

- -
- )} -
-
-
- ); -}; - -export default BlogDesign5; - -BlogDesign5.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogExcerpt: `در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد - شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا - دیگران متوجه شوند. -`, - - featuredImage: "images/blog-featured-image.jpg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, -}; diff --git a/src/components/Blogss/design6/index.js b/src/components/Blogss/design6/index.js deleted file mode 100644 index 83bf6fa..0000000 --- a/src/components/Blogss/design6/index.js +++ /dev/null @@ -1,63 +0,0 @@ -import React from "react"; -import CommentIcon from "../../MiniComponents/CommentIcon"; - -const BlogDesign6 = ({ - blogTitle, - blogExcerpt, - featuredImage, - blogAuthor, - blogAuthorImg, - blogComments, -}) => { - return ( -
- -
- {blogTitle && ( -

- {blogTitle} -

- )} - {blogExcerpt && ( -

- {blogExcerpt} -

- )} -
- {blogAuthor && ( -
- author -

{blogAuthor}

-
- )} - {blogComments && ( -
-

{blogComments}

- -
- )} -
-
-
- ); -}; - -export default BlogDesign6; - -BlogDesign6.defaultProps = { - blogTitle: `آیا مواد غذای پر فیبر و مفید هستند؟`, - blogExcerpt: `در این قسمت یک توضیح بسیار کوتاه یا عادی در مورد ارور نوشته خواهد - شد. طراح سعی می کند تا این متن را بیشتر از خد انتظار بلند کند تا - دیگران متوجه شوند. -`, - featuredImage: "images/article-featured-image.svg", - - blogAuthor: `حامد دژبانی نسب`, - blogAuthorImg: "images/blog-author.png", - - blogComments: `زمان مطالعه 30 دقیقه`, -}; diff --git a/src/components/Blogss/index.js b/src/components/Blogss/index.js deleted file mode 100644 index 2ae8f8d..0000000 --- a/src/components/Blogss/index.js +++ /dev/null @@ -1,35 +0,0 @@ -import React, { useState } from "react"; - -import Blog1 from "./design1"; -import Blog2 from "./design2"; -import Blog3 from "./design3"; -import Blog4 from "./design4"; -import Blog5 from "./design5"; -import Blog6 from "./design6"; - -function Blogs() { - const list = { - 1: , - 2: , - 3: , - 4: , - 5: , - 6: , - }; - const [type, setType] = useState(1); - return ( -
- - {list[type]} -
- ); -} - -export default Blogs; diff --git a/src/redux/data.js b/src/redux/data.js index 106752c..011ed04 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -6,7 +6,7 @@ import Advertisements from "../components/Advertisements"; import Alert from "../components/Alert"; import Toast from "../components/Toast"; import Banners from "../components/Banners"; -import Blogss from "../components/Blogss"; +import Blog from "../components/Blog"; import CardTrelloDesign from "../components/CardTrelloDesign"; import Chart from "../components/Recharts"; @@ -184,12 +184,12 @@ const components = [ }, }, { - name: "Blogss", + name: "Blog", author: "Andalib", props: [], content: { name: "Blog Designs", - component: , + component: , code: null, }, },