diff --git a/package-lock.json b/package-lock.json index c65b03a..f56e51a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2782,6 +2782,14 @@ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.5.tgz", "integrity": "sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA==" }, + "axios": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz", + "integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==", + "requires": { + "follow-redirects": "^1.14.4" + } + }, "axobject-query": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", diff --git a/package.json b/package.json index 8f4dc89..aace754 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", + "axios": "^0.24.0", "react": "^17.0.2", "react-countup": "^6.0.0", "react-dom": "^17.0.2", diff --git a/src/Services/BlogData.js b/src/Services/BlogData.js new file mode 100644 index 0000000..3fcf8fa --- /dev/null +++ b/src/Services/BlogData.js @@ -0,0 +1,210 @@ +// http://172.31.4.19:8000/wordpress-data + +//import React from 'react'; +import Axios from 'axios'; + +function BlogData() { +var res = null; + // const getWrenchBoardBlog = () => { + Axios.get("http://10.0.0.52:5101/wp/wrenchboard/", { + headers: { + 'Access-Control-Allow-Origin' : '*', + 'Access-Control-Allow-Credentials':true, + 'crossorigin':true, + 'Access-Control-Allow-Methods':'GET,PUT,POST,DELETE,PATCH,OPTIONS', + }, + responseType: "json", + }).then((response) => { + console.log(response); + res = response; + console.log("~~~~~~~~ ameye ~~~~~~~~~"); + return response; + // console.log(blogResultData); + }); + //} + + /* return ( + <> + Ameye + + ); +*/ +//getWrenchBoardBlog(); + +//console.log(getWrenchBoardBlog()); + +//console.log("Ameye got here"); + // return blogResultData; // getWrenchBoardBlog(); + + var res1 = [ + { + "id": 57, + "ID": 57, + "post_author": 1, + "post_date": "2021-02-05T00:19:28.000Z", + "post_date_gmt": "2021-02-05T00:19:28.000Z", + "post_content": "\n

The gut is part of the digestive tract and especially the intestine or stomach.

\n\n\n\n

An unhealthy gut may lead to many health problems such as skin, weight, heart, immune system, the brain, hormone levels, ability to absorb nutrients.

\n\n\n\n

In Gut issues, Stomach disturbances like bloating, constipation, diarrhoea, and heartburn can all be signs of an unhealthy gut. Constant fatigue.

\n\n\n\n

Indications for an unhealthy gut are :

\n\n\n\n

Upset stomach

\n\n\n\n

 A stable gut will become less strain processing food and excreting waste.

\n\n\n\n
High-sugar diet
\n\n\n\n

A food great in processed foods and added sugars can reduce the number of healthy bacteria in your gut. The imbalance can produce enhanced sugar needs, which can harm your stomach still more. Large quantities of processed sugars, especially high-fructose corn syrup, have been connected to heightened inflammation in the body. Inflammation can be the forerunner to several diseases and even growths.

\n\n\n\n
Erratic weight changes
\n\n\n\n

Increasing or decreasing weight without making changes to your meal or exercise habits may be a sign of an unhealthy gut. An imbalanced gut can hurt your body's capacity to digest nutrients, control blood sugar, and store fat. Weight loss may be caused by tiny abdominal bacterial growth ( while weight gain may be driven by the urge to eat more due to decreased nutrient absorption.

\n\n\n\n
Sleep disturbances or constant fatigue
\n\n\n\n

An unhealthy gut may add to sleep disorders such as insomnia, leading to chronic tiredness. Most of the hormone that affects mood and sleep is produced in the gut. So stomach damage can undermine your capacity to sleep well. Some sleep disorders have also linked to risk for fibromyalgia.

\n\n\n\n
Skin irritation
\n\n\n\n

Skin diseases like eczema may be linked to a damaged gut. Swelling in the gut caused by a low food intake or allergies may cause progressed \"leaking\" of proteins out into the body, which can sting the skin and cause eczema conditions.

\n\n\n\n
Food intolerances
\n\n\n\n

Food intolerances emerge from problem digesting certain foods (this is entirely different from a food allergy). It's believed that the low quality of bacteria may cause food intolerances in the gut. Thus, it can lead to trouble digesting the trigger foods and obnoxious symptoms such as bloating, diarrhoea, abdominal pain, gas and nausea. There are some research results that food allergies may also be related to gut health.

\n\n\n\n

Things you can do to improve your gut health

\n\n\n\n\n\n\n\n

Consuming plenty of water has been proven to help the intestines' lining and regulate good bacteria in the gut. Drinking a lot of liquid is an easy way to support a healthy gut.

\n\n\n\n\n\n\n\n

Not sleeping well-enough can impact your gut health severely. Having Try at least 7–8 hours of uninterrupted sleep per night is very vital. 

\n\n\n\n\n\n\n\n

High levels of stress is a big challenge to your whole body, not exempting your gut. Lowering stress levels include walking, yoga, getting a massage, decreasing caffeine intake, meditation, spending time with friends or family, and diffusing essential oils. 

\n\n\n\n\n\n\n\n

Including a probiotic or prebiotic supplement to your food is one of many ways to improve your gut health. Prebiotics give \"food\" goal is to promote the growth of useful bacteria in the gut, while probiotics are suited to live bacteria. Have it in mind that's not all probiotic supplements will give a benefit. 

\n", + "post_title": "How To Detox Your Gut Daily", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "closed", + "post_password": "", + "post_name": "how-to-detox-your-gut-daily", + "to_ping": "", + "pinged": "", + "post_modified": "2021-02-05T00:19:29.000Z", + "post_modified_gmt": "2021-02-05T00:19:29.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=57", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2021/02/Gut.jpg" + }, + { + "id": 52, + "ID": 52, + "post_author": 1, + "post_date": "2021-01-27T00:50:15.000Z", + "post_date_gmt": "2021-01-27T00:50:15.000Z", + "post_content": "\n

The invented vaccine to tackle the widely spread virus is effective against new variants of the coronavirus and referred to as \"Moderna\".The vaccine effectively immunises us to protect the entire global community from the continued peril of morbidity and death from critical acute respiratory syndrome.

\n\n\n\n

Get a COVID-19 vaccine, wear a mask, stay at least 6 feet apart, avoid crowds, and wash your hands to protect against COVID-19.

\n\n\n\n

Vaccinating ourselves protects us from our immediate environment, home, workplace, grocery store and against getting COVID-19.

\n\n\n\n

The vaccine is a necessity to be taken, but some people have other objections to the vaccination. Let's highlight the significant reasons why the vaccine is healthy and should be considered.

\n\n\n\n

Thousands of employees and even inmates have received their first round of the vaccinations having inmind, precautions are taken, and it is a confined environment.

\n\n\n\n

At least 100,032,461 cases of coronavirus have been recorded across the globe, according to Johns Hopkins.

\n\n\n\n

Countries with the most affected Covid-19 cases are:

\n\n\n\n\n\n\n\n

The United States makes up a quarter of all global cases, with well over 25 million coronavirus cases reported.

\n\n\n\n

After the vaccine have been taken, a two months follow-up should be considered.

\n", + "post_title": "COVID-19 Vaccine", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "closed", + "post_password": "", + "post_name": "covid-19-vaccine", + "to_ping": "", + "pinged": "", + "post_modified": "2021-01-27T01:27:27.000Z", + "post_modified_gmt": "2021-01-27T01:27:27.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=52", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2021/01/COVID-19-vaccine_002.jpg" + }, + { + "id": 26, + "ID": 26, + "post_author": 1, + "post_date": "2020-02-04T17:32:30.000Z", + "post_date_gmt": "2020-02-04T17:32:30.000Z", + "post_content": "\n

Coronavirus is gradually elevating itself to be a pandemic. It is highly infectious, known to have established itself in Southeast Asia-China in Wuhan, Hubei Province. It is also likely to be person-to-person spread.

\n\n\n\n

2019-nCoV is a betacoronavirus, like MERS and SARs, all of which have their origins in bats. The recent emergence of this virus was from an animal reservoir.

\n\n\n\n

Beginning on, several of the patients in the brawl of respiratory sickness prompted by 2019-nCov in Wuhan, China had some connection to vast seafood and live animal market, proposing animal-to-person spread. Following, an increasing amount of patients reportedly did not have vulnerability to animal markets, indicating person-to-person spread. Chinese executives affirm that sustained person-to-person spread in the community is occurring in China. Person-to-person spread has been announced outside China, including in the United States, and other countries. An increasing, cases the asymptomatic extent of the virus have been recorded.

\n\n\n\n

Obvious indications of the virus include respiratory signs, temperature, cold, brevity of breath and breathing problems. While also critical incidents, this virus can cause pneumonitis, severe acute respiratory syndrome, kidney breakdown and even death. 

\n\n\n\n

PRECAUTIONS

\n\n\n\n\n", + "post_title": "Corona Virus", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "open", + "post_password": "", + "post_name": "corona-virus", + "to_ping": "", + "pinged": "", + "post_modified": "2021-09-06T14:04:09.000Z", + "post_modified_gmt": "2021-09-06T14:04:09.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=26", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2020/02/coronavirus.jpg" + }, + { + "id": 23, + "ID": 23, + "post_author": 1, + "post_date": "2019-06-19T12:38:30.000Z", + "post_date_gmt": "2019-06-19T12:38:30.000Z", + "post_content": "\n

Many individuals don’t really know that why some of them get to be \ndistinctly dependent on drugs by just using it for a single time or how \ndrugs change the mind to cultivate urgent medication mishandle. They \nerroneously see the use of drug as entirely a social issue and may \nportray the individuals who take tranquilizers as ethically powerless. \nOne extremely regular conviction is that those who use drugs ought to \nhave the capacity to recently quit taking them on the off chance that \nthey are just eager to change their behavior.

\n\n\n\n

What individuals regularly didn’t think about is the many-sided \nquality of drug usage as it is a kind of disease that generally affects \nthe mind, and hence, quitting drug intake is not just a question of \nself-control. Through logical advances, we now know substantially more \nabout how precisely the drugs function in the brain of a person using \nit.  Using drugs can affect health in a lot of ways such as:

\n\n\n\n\n\n\n\n

Some other effects that are generally short term are:

\n\n\n\n\n\n\n\n\n\n\n\n\n", + "post_title": "Use of Drug and your Health", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "open", + "post_password": "", + "post_name": "use-of-drug-and-your-health", + "to_ping": "", + "pinged": "", + "post_modified": "2021-09-06T14:04:22.000Z", + "post_modified_gmt": "2021-09-06T14:04:22.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=23", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2020/07/drugshealth.jpg" + }, + { + "id": 21, + "ID": 21, + "post_author": 1, + "post_date": "2019-06-19T11:28:43.000Z", + "post_date_gmt": "2019-06-19T11:28:43.000Z", + "post_content": "\n

It can take an ordinary youthful couple up to 12 months to get \npregnant.  Doctors typically suggest patients in their 20s and mid 30s \nattempt to get pregnant or possibly not utilize anti-conception \nmedication for 12 months.  Couples look for specific pregnancy treatment\n for some reasons; however there are some broad elements after \nexperiencing which, a couple should call a reproductive specialist.

\n\n\n\n\n\n\n\n

Men with the issues of fertility are best treated by a urologist or \nby an andrologist. Urologists are prepared in the assessment and \ntreatment of disarranges of the kidneys, urinary tract, bladder, and \nmale regenerative organs, and have no less than two years of general \nsurgical preparing. A urologist will more often than not play out a \nsemen examination, search for varicoceles, check the hormone levels, and\n request lab tests to beware of the nature of sperm. An andrologist is \neither a medicinal specialist or lab expert who may have earned a PhD in\n natural chemistry, endocrinology, or physiology. These specialists \nconcentrate on the physiologic, hormonal conditions that influence the \nfertility of male. While if the a lady has reproductive issues that \ncan’t be tended to by her normal doctor, she can see a regenerative \nendocrinologist which is actually a specialist gaining practical \nexperience in the treatment of hormonal issue that influence \npropagation. REs have finished no less than two years of preparing along\n with their ob-gyn residency and have passed oral and composed exams.

\n\n\n\n

Contingent upon the way of her issue, a lady may likewise need to see\n a reproductive specialist. They all are prepared to treat anatomical \nissues, for example, tubal check, endometriosis along with uterine \nvariations from the norm, and in addition other reproductive organ issue\n that need to be treated with any surgery.

\n", + "post_title": "Pregnancy delay, when to call a reproductive specialist.", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "open", + "post_password": "", + "post_name": "pregnancy-delay-when-to-call-a-reproductive-specialist", + "to_ping": "", + "pinged": "", + "post_modified": "2021-09-06T14:04:33.000Z", + "post_modified_gmt": "2021-09-06T14:04:33.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=21", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2020/07/pregnancy-delay.jpg" + }, + { + "id": 15, + "ID": 15, + "post_author": 1, + "post_date": "2019-06-19T11:25:21.000Z", + "post_date_gmt": "2019-06-19T11:25:21.000Z", + "post_content": "\n

Tracking your health and fitness should be a pivotal part of your training. It helps you to -

\n\n\n\n\n\n\n\n

\n", + "post_title": "Benefits of your Health Tracking", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "closed", + "ping_status": "open", + "post_password": "", + "post_name": "benefits-of-your-health-tracking", + "to_ping": "", + "pinged": "", + "post_modified": "2021-09-06T14:03:21.000Z", + "post_modified_gmt": "2021-09-06T14:03:21.000Z", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://blog.mermsemr.com/?p=15", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": 0, + "meta_value": "2020/07/health-tracking.jpg" + } +]; + + + return res1; + } + +export default BlogData; + + diff --git a/src/components/HomeOne/BlogHomeOne.js b/src/components/HomeOne/BlogHomeOne.js index 62805e0..04c01c6 100644 --- a/src/components/HomeOne/BlogHomeOne.js +++ b/src/components/HomeOne/BlogHomeOne.js @@ -1,9 +1,42 @@ -import React from 'react'; +import React, { useState } from 'react'; import blogOne from '../../assets/images/blog-1.jpg'; import blogTwo from '../../assets/images/blog-2.jpg'; import blogThree from '../../assets/images/blog-3.jpg'; +import BlogData from './../../Services/BlogData'; + +import Axios from 'axios'; function BlogHomeOne() { + +const blogResult = BlogData(); +/* +const [blogResult,setBlogResult] = useState(""); + +var res = null; + // const getWrenchBoardBlog = () => { + Axios.get("http://10.0.0.52:5101/wp/wrenchboard/", { + headers: { + 'Access-Control-Allow-Origin' : '*', + 'Access-Control-Allow-Credentials':true, + 'crossorigin':true, + 'Access-Control-Allow-Methods':'GET,PUT,POST,DELETE,PATCH,OPTIONS', + }, + responseType: "json", + }).then((response) => { + console.log(response); + res = response; + console.log("~~~~~~~~ ameye ~~~~~~~~~"); + // setBlogResult( response !=null ? response.data.blogResult[0]["payload"]:"" ); + setBlogResult( response.data ); + // console.log(blogResultData); + }); + +*/ + +debugger; +console.log("~~~~~~~~ dorcas ~~~~~~~~~"); +console.log(blogResult); + return ( <>
@@ -16,93 +49,50 @@ function BlogHomeOne() {
-
-
-
- -
-
-
- -
-

- - Online Jobs for University Students - -

- - Learn More - -
-
-
-
-
-
- -
- -
-
-
- -
+ + { + blogResult.map(i=>{ + console.log(i); + console.log("------------------------------ 11 ----"); + var blgImg = "https://blog.mermsemr.com/wp-content/uploads/"+ i.meta_value; + + + return (
+
+
+ {i.post_title} +
+
+
+ +
+

+ + {i.post_title} + +

+ + Learn More + +
+
+
); + + + }) + } + + +
diff --git a/src/components/HomeOne/RecentJobsOne.js b/src/components/HomeOne/RecentJobsOne.js new file mode 100644 index 0000000..97eb8e4 --- /dev/null +++ b/src/components/HomeOne/RecentJobsOne.js @@ -0,0 +1,144 @@ +import React from 'react'; +import blogOne from '../../assets/images/blog-1.jpg'; +import blogTwo from '../../assets/images/blog-2.jpg'; +import blogThree from '../../assets/images/blog-3.jpg'; + +function RecentJobsOne() { + return ( + <> +
+
+
+
+
+

Recent Tasks

+
+
+
+ +
+
+ + ); +} + +export default RecentJobsOne; \ No newline at end of file diff --git a/src/components/HomeOne/ServicesHomeOne.js b/src/components/HomeOne/ServicesHomeOne.js index ddd64a1..52d1825 100644 --- a/src/components/HomeOne/ServicesHomeOne.js +++ b/src/components/HomeOne/ServicesHomeOne.js @@ -9,12 +9,12 @@ function ServicesHomeOne({ className }) {
-
+

- Reward possibility
from self-commitment. + Start getting paid in easy steps.

-

Influence your talent skills with the creativity in you

+
@@ -29,7 +29,7 @@ function ServicesHomeOne({ className }) { 1
-

Create Account

+

Free Account

Join WrenchBoard to connect with businesses that need articles writing, blog management, photography, product testing research and surveys and more.

@@ -43,7 +43,7 @@ function ServicesHomeOne({ className }) { 2 -

Skills Scout

+

Find Task

Do what you do best and let WrenchBoard team worry about your blog, online marketing, surveys and more by connecting with dedicated talents for your needed skills.

@@ -57,7 +57,7 @@ function ServicesHomeOne({ className }) { 3 -

Perform

+

Complete

You can do more with WrenchBoard.Create and manage your preferred workgroup.Organize and manage your teams efficiently.Get started

@@ -71,7 +71,7 @@ function ServicesHomeOne({ className }) { 4 -

Payment

+

Get Paid

You can do more with WrenchBoard.Create and manage your preferred workgroup.Organize and manage your teams efficiently.Get started

diff --git a/src/components/HomeOne/index.js b/src/components/HomeOne/index.js index c28647d..74dc371 100644 --- a/src/components/HomeOne/index.js +++ b/src/components/HomeOne/index.js @@ -16,16 +16,20 @@ import TestimonialHomeOne from './TestimonialHomeOne'; //import TrafficHomeOne from './TrafficHomeOne'; import TrafficHomeTwo from './TrafficHomeTwo'; import WrenchBoardHome from './WrenchBoardHome'; +import RecentJobsOne from './RecentJobsOne'; +//import BlogData from './../../Services/BlogData'; function HomeOne() { const [drawer, drawerAction] = useToggle(false); + return ( <> + {/**/}