From ac7791b213048ddbddad7a583529fd1a0332d35e Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Mon, 3 Jan 2022 22:00:25 -0500 Subject: [PATCH] Fix general blog page --- src/Routes.js | 1 + src/components/Contact/Forms.js | 2 +- src/components/HomeOne/FooterHomeOne.js | 4 +- src/components/Navigation.js | 4 +- src/components/News/Blogs.js | 221 +++++------------------- 5 files changed, 49 insertions(+), 183 deletions(-) diff --git a/src/Routes.js b/src/Routes.js index 66030ed..31b1912 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -41,6 +41,7 @@ function Routes() { + diff --git a/src/components/Contact/Forms.js b/src/components/Contact/Forms.js index fc38099..3eecbef 100644 --- a/src/components/Contact/Forms.js +++ b/src/components/Contact/Forms.js @@ -29,7 +29,7 @@ function Forms() {
Phone

- (+) 404 855-7966 + (+1) 404 855-7966
(+420) 336 476 328

diff --git a/src/components/HomeOne/FooterHomeOne.js b/src/components/HomeOne/FooterHomeOne.js index fb7df1e..655967a 100644 --- a/src/components/HomeOne/FooterHomeOne.js +++ b/src/components/HomeOne/FooterHomeOne.js @@ -61,7 +61,7 @@ function FooterHomeOne({ className }) { Use Cases
  • - Blog + Blog
  • Contact @@ -133,7 +133,7 @@ function FooterHomeOne({ className }) {
    -

    Copyright © 2021 WrenchBoard. All rights reserved.

    +

    Copyright © 2022 WrenchBoard. All rights reserved.

    diff --git a/src/components/Navigation.js b/src/components/Navigation.js index e612bbd..34a7760 100644 --- a/src/components/Navigation.js +++ b/src/components/Navigation.js @@ -20,10 +20,10 @@ function Navigation() { About
  • - Blog + Blog
  • - FAQs + FAQs
  • diff --git a/src/components/News/Blogs.js b/src/components/News/Blogs.js index fc31e4e..5eaff75 100644 --- a/src/components/News/Blogs.js +++ b/src/components/News/Blogs.js @@ -8,188 +8,53 @@ import blogImg6 from '../../assets/images/blog/6.jpg'; import blogImg7 from '../../assets/images/blog/7.jpg'; import blogImg8 from '../../assets/images/blog/8.jpg'; +import UseCaseData from './../../Services/UseCaseData'; + function Blogs() { + + const UseCaseDataResult = UseCaseData(); + return ( <>
    - - - - - - - - + + + { + UseCaseDataResult.map(i=>{ + var blgImg = i.meta_value!=null?"https://blog.wrenchboard.com/wp-content/uploads/"+ i.meta_value : blogOne; + return (
    +
    +
    + {i.post_title} +
    +
    +
    +
      +
    • {i.post_date}
    • +
    +
    +

    + + {i.post_title} + +

    + + Learn More + +
    +
    +
    ); + + + }) + } + + +