From 405c66d10064a6e22f9d243c902b1f7ffab5820b Mon Sep 17 00:00:00 2001 From: Ehsan Date: Mon, 12 May 2025 22:33:18 +0330 Subject: [PATCH] handle data and change design page about-us and contact-us --- components/aboutUs/Head.js | 5 +++- components/contactUs/ContentContact.js | 4 ++-- components/contactUs/call/Call.js | 13 ++++------- components/contactUs/call/Links.js | 10 ++++---- components/contactUs/index.js | 5 ++-- components/layout/footer/index.js | 2 +- data/city.json | 32 ++++++++++++++++++++++++++ 7 files changed, 52 insertions(+), 19 deletions(-) diff --git a/components/aboutUs/Head.js b/components/aboutUs/Head.js index dbe1b78..5c57d27 100644 --- a/components/aboutUs/Head.js +++ b/components/aboutUs/Head.js @@ -1,7 +1,10 @@ +import { getStateInfo } from "@/lib/getStateInfo"; import Image from "next/image"; import React from "react"; function Head() { + const { matchedCity } = getStateInfo(); + return (
logo

- درباره نوبت ۷۲۴ + درباره {matchedCity?.site_name}

); diff --git a/components/contactUs/ContentContact.js b/components/contactUs/ContentContact.js index 3c1efa3..bf67661 100644 --- a/components/contactUs/ContentContact.js +++ b/components/contactUs/ContentContact.js @@ -1,4 +1,4 @@ -function ContentContact({ text, children, url }) { +function ContentContact({ text, children, url, label }) { const openURL = (url) => window.open(url); return ( @@ -10,7 +10,7 @@ function ContentContact({ text, children, url }) { {children}

- {text} + {label}{text}

); diff --git a/components/contactUs/call/Call.js b/components/contactUs/call/Call.js index eb24cef..112cb1c 100644 --- a/components/contactUs/call/Call.js +++ b/components/contactUs/call/Call.js @@ -1,19 +1,16 @@ import Links from "./Links"; -function Call({ isDefault }) { +function Call({ matchedCity, isDefault }) { return (

تماس با ما

-

- سامانه نوبت 724 به مردم کمک می کند تا دسترسی آسان تر و سریع تری به خدمات - پزشکی و درمانی داشته باشند. -

- +

{matchedCity.footerDescription}

+
); } diff --git a/components/contactUs/call/Links.js b/components/contactUs/call/Links.js index 677dfda..04a5824 100644 --- a/components/contactUs/call/Links.js +++ b/components/contactUs/call/Links.js @@ -5,21 +5,23 @@ import EmailC from "../../icons/EmailC"; import WhatsappC from "../../icons/WhatsappC"; import ContentContact from "../ContentContact"; -function Links() { +function Links({ matchedCity }) { return (