From f1f7a5f8a76adb91bf2113a6e3faf20cd9739929 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 10 Jan 2025 09:33:46 +0100 Subject: [PATCH] changed footer text and about top text --- components/layout/footer/MermsFooter.js | 128 +++++++------- .../queryclientProvider/QueryClientContext.js | 2 +- components/queryclientProvider/queryKeys.js | 5 + components/sections/MermsDedicatedTeam.js | 8 +- components/sections/MermsRecentBlog.js | 166 ++++++++---------- components/sections/MermsWhyChooseUs.js | 13 +- pages/about.js | 6 +- pages/merms-blog.js | 4 +- 8 files changed, 160 insertions(+), 172 deletions(-) create mode 100644 components/queryclientProvider/queryKeys.js diff --git a/components/layout/footer/MermsFooter.js b/components/layout/footer/MermsFooter.js index 3a76867..a5cf26a 100644 --- a/components/layout/footer/MermsFooter.js +++ b/components/layout/footer/MermsFooter.js @@ -8,77 +8,79 @@ export default function MermsFooter() { {/* FOOTER CONTENT */}
{/* FOOTER LOGO */} -
+
footer-logo

- MERMS, a HIPAA compliant healthcare reputation management platform, helps doctors & medical practitioner improve their online reputation. + Do you need a secure online presence for your healthcare brand with reliable SEO and online marketing to grow? MermEmr helps healthcare professionals to achieve their online marketing service needs

- {/* FOOTER LINKS */} -
-
- {/* Title */} -
Company
- {/* Links */} -
    -
  • -

    About Us

    -
  • -
  • -

    Contact Us

    -
  • -
  • -

    Our Blog

    -
  • -
-
-
{/* END FOOTER LINKS */} - {/* FOOTER LINKS */} -
-
- {/* Title */} -
Product
- {/* Links */} -
    -
  • -

    Features

    -
  • -
  • -

    What's New

    -
  • -
  • -

    Pricing

    -
  • -
  • -

    Help Center

    -
  • -
-
-
{/* END FOOTER LINKS */} - {/* FOOTER LINKS */} -
-
- {/* Title */} -
Legal
- {/* Links */} -
    -
  • -

    Terms of Use

    -
  • -
  • -

    Privacy Policy

    -
  • -
  • -

    Cookie Policy

    -
  • - {/*
  • */} - {/*

    Site Map

    */} - {/*
  • */} -
+
+ {/* FOOTER LINKS */} +
+
+ {/* Title */} +
Company
+ {/* Links */} +
    +
  • +

    About Us

    +
  • +
  • +

    Contact Us

    +
  • +
  • +

    Our Blog

    +
  • +
+
+
{/* END FOOTER LINKS */} + {/* FOOTER LINKS */} +
+
+ {/* Title */} +
Product
+ {/* Links */} +
    +
  • +

    Features

    +
  • +
  • +

    What's New

    +
  • +
  • +

    Pricing

    +
  • +
  • +

    Help Center

    +
  • +
+
+
{/* END FOOTER LINKS */} + {/* FOOTER LINKS */} +
+
+ {/* Title */} +
Legal
+ {/* Links */} +
    +
  • +

    Terms of Use

    +
  • +
  • +

    Privacy Policy

    +
  • +
  • +

    Cookie Policy

    +
  • + {/*
  • */} + {/*

    Site Map

    */} + {/*
  • */} +
+
{/* END FOOTER CONTENT */} diff --git a/components/queryclientProvider/QueryClientContext.js b/components/queryclientProvider/QueryClientContext.js index 8263637..76b3121 100644 --- a/components/queryclientProvider/QueryClientContext.js +++ b/components/queryclientProvider/QueryClientContext.js @@ -8,7 +8,7 @@ function QueryClientContext({children}) { refetchOnWindowFocus: false, retry: 3, // refetchOnMount: false, - staleTime: 3000 + staleTime: 60000, }, }, }) diff --git a/components/queryclientProvider/queryKeys.js b/components/queryclientProvider/queryKeys.js new file mode 100644 index 0000000..0a59532 --- /dev/null +++ b/components/queryclientProvider/queryKeys.js @@ -0,0 +1,5 @@ +const queryKeys = { + blog: ['blog'] +} + +export default queryKeys \ No newline at end of file diff --git a/components/sections/MermsDedicatedTeam.js b/components/sections/MermsDedicatedTeam.js index 98c0444..4ce0351 100644 --- a/components/sections/MermsDedicatedTeam.js +++ b/components/sections/MermsDedicatedTeam.js @@ -11,13 +11,9 @@ export default function MermsDedicatedTeam (){ {/* Section ID */} our Team at MERMS {/* Title */} -

Henry Adams

+

Dedicated Team

{/* Text */} -

"Sodales tempor sapien diam purus ipsum quaerat and volute fusce - a congue laoreet turpis neque diam auctor turpis vitae dolor magna luctus placerat - neque ipsum fusce cursus ligula cursus purus vitae purus and ipsum suscipit. Nemo - ipsam cubilia donec turpis undo egestas ipsum a purus sapien ultrice aliquam lacus - and quaerat an ipsum augue turpis sapien cursus congue augue" +

"We pride ourselves on fostering a collaborative environment where creativity and innovation thrive. By staying at the forefront of industry trends and technological advancements, we transform your ideas into actionable strategies that elevate your practice. Our goal is to assist you in establishing a strong online presence while you focus on what you do best—providing exceptional care to your patients"

{/* END TEXT BLOCK */} diff --git a/components/sections/MermsRecentBlog.js b/components/sections/MermsRecentBlog.js index 313502b..e274281 100644 --- a/components/sections/MermsRecentBlog.js +++ b/components/sections/MermsRecentBlog.js @@ -1,7 +1,24 @@ +import { useQuery } from "@tanstack/react-query"; import Link from "next/link"; +import queryKeys from "../queryclientProvider/queryKeys"; export default function MermsRecentBlog(){ + const {data, isFetching, isError, error} = useQuery({ + queryKey: queryKeys.blog, + queryFn: async () => { + try { + const blog_url = 'https://blogdata.chiefsoft.net/mermsblogdata/mermsemr'; + const res = await fetch(blog_url) + const data = await res.json() + return data + } + catch(e){ + return(e) + } + } + }) + return <>
@@ -16,98 +33,69 @@ export default function MermsRecentBlog(){
-
- {/* BLOG POST #1 */} -
-
- {/* BLOG POST IMAGE */} -
- blog-post-image -
- {/* BLOG POST TEXT */} -
- {/* Post Tag */} - Product News - {/* Post Link */} -
- Aliqum mullam porta blandit: tempor sapien and gravida -
- {/* Text */} -

Egestas luctus vitae augue and ipsum ultrice quisque in cursus lacus feugiat congue - diam ultrice laoreet sagittis -

- {/* Post Meta */} -
-
    -
  • By Helen J.

  • -
  • -
  • Apr 28, 2023

  • -
-
-
{/* END BLOG POST TEXT */} + {isFetching ? +
+
+

Loading...

-
{/* END BLOG POST #1 */} - {/* BLOG POST #2 */} -
-
- {/* BLOG POST IMAGE */} -
- blog-post-image -
- {/* BLOG POST TEXT */} -
- {/* Post Tag */} - Community - {/* Post Link */} -
- Porttitor cursus fusce egestas CEO cursus at magna sapien - suscipit and egestas ipsum - -
- {/* Text */} -

Aliqum mullam ipsum vitae and blandit vitae tempor sapien and donec lipsum

- {/* Post Meta */} -
-
    -
  • By MERMS Team

  • -
  • -
  • Apr 14, 2023

  • -
-
-
{/* END BLOG POST TEXT */} +
+ : isError ? +
+
+

{error.message}

-
{/* END BLOG POST #2 */} - {/* BLOG POST #3 */} -
-
- {/* BLOG POST IMAGE */} -
- blog-post-image -
- {/* BLOG POST TEXT */} -
- {/* Post Tag */} - Freelancer Tips - {/* Post Link */} -
- Cubilia laoreet augue egestas and MERMS magna impedit -
- {/* Text */} -

Luctus vitae egestas augue and ipsum ultrice quisque in cursus lacus feugiat egets - congue ultrice sagittis laoreet -

- {/* Post Meta */} -
-
    -
  • By Miranda Green

  • -
  • -
  • Mar 27, 2023

  • -
-
-
{/* END BLOG POST TEXT */} +
+ : + <> + {(data && data?.payload?.blogdata?.length > 0) ? +
+ {data?.payload?.blogdata.map((item, index)=>{ + if(index < 3){ + return ( +
+
+ {/* BLOG POST IMAGE */} +
+ blog-post-image +
+ {/* BLOG POST TEXT */} +
+ {/* Post Tag */} + {/* Product News */} + {/* Post Link */} +
+ {item.post_title} +
+ {/* Text */} +

250 ? item.post_content.substring(0, 250) + ' ...' : item.post_content.substring(0, 250) }} /> + {/* Post Meta */} +

+
    +
  • Merms

  • +
  • +
  • {new Date(item.post_date).toDateString()}

  • +
+
+
{/* END BLOG POST TEXT */} +
+
+ ) + } + })}
-
{/* END BLOG POST #3 */} -
{/* End row */} + : +
+
+

No Blog Found!

+
+
+ } + + }
{/* End container */} diff --git a/components/sections/MermsWhyChooseUs.js b/components/sections/MermsWhyChooseUs.js index c6cde47..52a4881 100644 --- a/components/sections/MermsWhyChooseUs.js +++ b/components/sections/MermsWhyChooseUs.js @@ -10,18 +10,17 @@ export default function MermsWhyChooseUs(){
{/* Section ID */} - Why Choose Us + Why Choose Us {/* Title */} -

With knowledge, skills & hard work

+

Experience, Knowledge, Skills & Passion

{/* Text */} -

Sodales tempor sapien quaerat congue eget ipsum laoreet turpis neque auctor - vitae eros dolor luctus placerat magna ligula cursus and purus pretium +

+ We make your practice stand out from other physicians in your area with modern A.I.-enabled solutions relevant to this period and time.

{/* Small Title */} -
Your road to success!
+
Your success is the goal!
{/* Text */} -

Sapien tempor sodales quaerat ipsum undo congue laoreet turpis neque - auctor turpis vitae dolor luctus placerat magna and ligula cursus purus vitae +

Our platform helps any provider quickly create an online presence, a landing page, or a multi-page website. We also provide everything you need to get your practice humming at full speed.

{/* END TEXT BLOCK */} diff --git a/pages/about.js b/pages/about.js index 582b1bd..5eee4a4 100644 --- a/pages/about.js +++ b/pages/about.js @@ -64,12 +64,10 @@ export default function Home() {
{/* Text */} -

Nullam tempor pretium a gravida donec congue ipsum porta justo integer dolor - odio auctor a neque suscipit an ipsum integer congue purus at pretium turpis - egestas and volute laoreet quaerat +

As a healthcare provider, you must stay up-to-date on the latest trends and technologies to connect with your patients and provide them with top-notch care. We offer a variety of products that are specifically designed to help you meet the growing online needs of your practice

{/* Author */} -

Charlie Cheever CEO & CO-FOUNDER

+ {/*

Charlie Cheever CEO & CO-FOUNDER

*/}
{/* IMAGE-4 */} diff --git a/pages/merms-blog.js b/pages/merms-blog.js index 96e7749..5bf5d22 100644 --- a/pages/merms-blog.js +++ b/pages/merms-blog.js @@ -3,15 +3,15 @@ import { useQuery } from "@tanstack/react-query"; import VideoPopup from "../components/elements/VidepPopup" import Layout from "../components/layout/Layout" import Link from "next/link" +import queryKeys from "../components/queryclientProvider/queryKeys"; export default function Home() { const {data, isFetching, isError, error} = useQuery({ - queryKey: ['blog'], + queryKey: queryKeys.blog, queryFn: async () => { try { const blog_url = 'https://blogdata.chiefsoft.net/mermsblogdata/mermsemr'; - //http://localhost:8805/mermsblogdata/mermsemr'; // https://blogdata.chiefsoft.net/mermsblogdata/mermsemr const res = await fetch(blog_url) const data = await res.json() return data -- 2.34.1