From 32c663fd5564e5a0d55fd687b3f60f1d06a9326a Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 00:17:18 +0600 Subject: [PATCH] Update style of blog --- src/components/blog/index.jsx | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/components/blog/index.jsx b/src/components/blog/index.jsx index 0caae57..d817cb4 100644 --- a/src/components/blog/index.jsx +++ b/src/components/blog/index.jsx @@ -20,7 +20,7 @@ const displaySection = () => { } }; -const Blog = ({loading}) => { +const Blog = ({ loading }) => { const [articles, setArticles] = useState(null); useEffect(() => { @@ -152,13 +152,10 @@ const Blog = ({loading}) => {
{article.categories.map((category, index2) => (
- - - - {category} + #{category}
))}
@@ -180,19 +177,15 @@ const Blog = ({loading}) => {
-
    -
  • -
    -
    - {loading || !articles ? ( - skeleton({ width: 'w-28', height: 'h-8' }) - ) : ( - Recent Posts - )} -
    -
    -
  • -
+
+
+ {loading ? ( + skeleton({ width: 'w-28', height: 'h-8' }) + ) : ( + Recent Posts + )} +
+