diff --git a/src/component/Blog/Blog/Main.js b/src/component/Blog/Blog/Main.js index 2ee2880..b5f327c 100644 --- a/src/component/Blog/Blog/Main.js +++ b/src/component/Blog/Blog/Main.js @@ -1,27 +1,60 @@ -import React from 'react' -import { Link } from 'react-router-dom' -import BGImg from "../../../assets/images/bread_crumb_bg.png" -import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png" -import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png" +import React, { useEffect, useState } from "react"; +import { Link } from "react-router-dom"; +import BGImg from "../../../assets/images/bread_crumb_bg.png"; +import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"; +import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"; +import SiteService from "../../../vendors/service/siteService"; + +const Main = ({ brdcum, bgimg }) => { + const [blogData, setBlogData] = useState([]); + + const api = new SiteService(); + useEffect(() => { + getBlogData(); + }, []); + + const getBlogData = async () => { + try { + const res = await api.blogData(); + setBlogData(res.data); + console.log("data", res.data); + console.log("Blog details ", res); + } catch (error) { + console.log("Error from blog data ", error); + } + }; -const Main = ({brdcum,bgimg}) => { return ( <> - -
-
-
+
{" "}
+
+
+ {" "}
+
{" "}
+
+
+ {" "}
+
{" "}
+
- myFit has powerful connectivity, fitness, health, and safety features - Also makes provision Fitness tracking,Workout tracking,Heart rate monitoringscrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesetting.
- READ MORE -Lorem Ipsum is simply dummy text of the printing and typesetting - industry lorem Ipsum has.
- READ MORE -Simply dummy text of the printing and typesetting industry lorem Ipsum has Lorem Ipsum is.
- READ MORE -Printing and typesetting industry lorem Ipsum has Lorem simply dummy text of the.
- READ MORE -Lorem Ipsum is simply dummy text of the printing and typesetting - industry lorem Ipsum has.
- READ MORE -Simply dummy text of the printing and typesetting industry lorem Ipsum has Lorem Ipsum is.
- READ MORE -Printing and typesetting industry lorem Ipsum has Lorem simply dummy text of the.
- READ MORE -+ myFit has powerful connectivity, fitness, health, and safety + features Also makes provision Fitness tracking,Workout + tracking,Heart rate monitoringscrambled it to make a type + specimen book. It has survived not only five centuries, but + also the leap into electronic Lorem Ipsum is simply dummy + text of the printing and typesetting. +
+ READ MORE{data.post_content}
+ {/* */} + + READ MORE + +
- Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.
-Printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unnown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys centuries, but also the leap into electronic.
-Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic.
-Lorem Ipsum is simply dummy text of the printing and typesetting in
Dustry lorem Ipsum has been the industrys standard dummy text ev er since the when
Unknown printer took a galley of type and scrambled it to make.
Type specimen book. It has survived not only five centuries, but also the leap into electronic.
Lorem Ipsum is simply dummy text of the printing.
Dustry lorem Ipsum has been the industrys standard dummy text ev er since.
Unknown printer took a galley of type and scrambled it to make.
Type specimen book. It has survived not only.
-
- Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.
-Mr. John Doe, Apper Inc
-Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic industry.
-
- Tags:
+ + Lorem Ipsum is simply dummy text of the printing and typesetting + in dustry lorem Ipsum has been the industrys standard dummy text + ev er since the 1500s, when an unknown printer took a galley of + type and scrambled it to make a type specimen book. It has + survived not only five centuries, but also the leap into + electronic Lorem Ipsum is simply dummy text of the printing and + typesettingindustry lorem Ipsum has been the industrys standard + dummy text ever since the 1500s, when an unknown printer took a + galley of type and scrambled it to make a type specimen book. It + has survived. +
++ Printing and typesetting in dustry lorem Ipsum has been the + industrys standard dummy text ev er since the 1500s, when an + unnown printer took a galley of type and scrambled it to make a + type specimen book. It has survived not only five centuries, but + also the leap into electronic Lorem Ipsum is simply dummy text + of the printing and typesettingindustry lorem Ipsum has been the + industrys centuries, but also the leap into electronic. +
++ Lorem Ipsum is simply dummy text of the printing and typesetting + in dustry lorem Ipsum has been the industrys standard dummy text + ev er since the 1500s, when an unknown printer took a galley of + type and scrambled it to make a type specimen book. It has + survived not only five centuries, but also the leap into + electronic. +
++ {" "} + + + {" "} + Lorem Ipsum is simply dummy text of the printing and + typesetting in{" "} +
++ {" "} + + + {" "} + Dustry lorem Ipsum has been the industrys standard dummy + text ev er since the when +
++ {" "} + + + {" "} + Unknown printer took a galley of type and scrambled it to + make. +
++ {" "} + + + {" "} + Type specimen book. It has survived not only five centuries, + but also the leap into electronic. +
++ {" "} + + + {" "} + Lorem Ipsum is simply dummy text of the printing. +
++ {" "} + + + {" "} + Dustry lorem Ipsum has been the industrys standard dummy + text ev er since. +
++ {" "} + + + {" "} + Unknown printer took a galley of type and scrambled it to + make. +
++ {" "} + + + {" "} + Type specimen book. It has survived not only. +
+
+ + Lorem Ipsum is simply dummy text of the printing and typesetting + in dustry lorem Ipsum has been the industrys standard dummy text + ev er since the 1500s, when an unknown printer took a galley of + type and scrambled it to make a type specimen book. It has + survived not only five centuries, but also the leap into + electronic Lorem Ipsum is simply dummy text of the printing and + typesettingindustry lorem Ipsum has been the industrys standard + dummy text ever since the 1500s, when an unknown printer took a + galley of type and scrambled it to make a type specimen book. It + has survived. +
++ Mr. John Doe, Apper Inc +
++ Lorem Ipsum is simply dummy text of the printing and typesetting + in dustry lorem Ipsum has been the industrys standard dummy text + ev er since the 1500s, when an unknown printer took a galley of + type and scrambled it to make a type specimen book. It has + survived not only five centuries, but also the leap into + electronic industry. +
+
+
- Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the in - dustrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
-
- Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the when.
-
- Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the in - dustrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
-Tags:
+
+ + Lorem Ipsum is simply dummy text of the printing and + typesetting in dustry lorem Ipsum has been the in dustrys + standard dummy text ev er since the 1500s, when an unknown + printer took a galley of type and scrambled it to make a type + specimen.{" "} +
+
+ + Lorem Ipsum is simply dummy text of the printing and + typesetting in dustry lorem Ipsum has been the industrys + standard dummy text ev er since the when. +
+
+ + Lorem Ipsum is simply dummy text of the printing and + typesetting in dustry lorem Ipsum has been the in dustrys + standard dummy text ev er since the 1500s, when an unknown + printer took a galley of type and scrambled it to make a type + specimen.{" "} +
+Your email address will not be published. Required fields are marked *
++ Your email address will not be published. Required fields are + marked * +
+Lorem Ipsum is simply dummy text of the printing and typese tting
indus orem Ipsum has beenthe standard dummy.
+ Lorem Ipsum is simply dummy text of the printing and typese tting{" "}
+
indus orem Ipsum has beenthe standard dummy.
+
+ 45 min ago
- 45 min ago
- Lorem Ipsum is simply dummy text of the printing and typesetting - industry lorem Ipsum has.
- READ MORE -
- 45 min ago
- Simply dummy text of the printing and typesetting industry lorem Ipsum has Lorem Ipsum is.
- READ MORE -
- 45 min ago
- Printing and typesetting industry lorem Ipsum has Lorem simply dummy text of the.
- READ MORE -+ Lorem Ipsum is simply dummy text of the printing and + typesetting industry lorem Ipsum has. +
+ READ MORE
+ 45 min ago
+ + Simply dummy text of the printing and typesetting industry + lorem Ipsum has Lorem Ipsum is. +
+ READ MORE +
+ 45 min ago
+ + Printing and typesetting industry lorem Ipsum has Lorem + simply dummy text of the. +
+ READ MORE +