From d5a1292ff71b6801f260794775333bfb252d8a64 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Fri, 29 Aug 2025 18:34:21 +0530 Subject: [PATCH] home page services and area of injury section updated in dynamicaly --- components/sections/home/AreaOfInjury.js | 13 +- .../sections/home/MobileServicesSection.js | 67 +++------- components/sections/home/ServicesSection.js | 115 +++++------------- public/assets/css/module-css/team.css | 3 +- 4 files changed, 60 insertions(+), 138 deletions(-) diff --git a/components/sections/home/AreaOfInjury.js b/components/sections/home/AreaOfInjury.js index 20ea2f0..3b72cb5 100644 --- a/components/sections/home/AreaOfInjury.js +++ b/components/sections/home/AreaOfInjury.js @@ -1,5 +1,6 @@ import React from 'react'; import Link from "next/link" +import { areaOfInjuryData } from '@/utils/AreaOfInjery.utils'; export default function AreaOfInjury() { const teamMembers = [ { name: 'Black Marvin', role: 'Medical Assistant', image: 'assets/images/team/team-1.jpg' }, @@ -31,21 +32,21 @@ export default function AreaOfInjury() {
- {teamMembers.map((member, index) => ( + {areaOfInjuryData.slice(0, 8).map((area, index) => (
-
{`${member.name}'s
-
    +
    {`${area.name}'s
    + {/*
    • -
    +
*/}
-

{member.name}

+

{area.title}

{/* {member.role} */}
@@ -54,7 +55,7 @@ export default function AreaOfInjury() { ))}
- View All + View All
diff --git a/components/sections/home/MobileServicesSection.js b/components/sections/home/MobileServicesSection.js index 29b4a32..c96c999 100644 --- a/components/sections/home/MobileServicesSection.js +++ b/components/sections/home/MobileServicesSection.js @@ -1,3 +1,4 @@ +import { servicesList } from "@/utils/Services.utils" import Link from "next/link" @@ -11,54 +12,26 @@ export default function MobileServices() {

We Offer For You Medical &
Saving Lives

-
-
-
-
-

Qualified Doctor

-
- View Services + { + servicesList?.slice(0, 8)?.map((service, index) => { + return ( +
+
+
+
+

{service?.title?.length > 20 + ? service.title.slice(0, 20) + "..." + : service.title}

+
+ View Services +
+ {/*

Lorem ipsum dolor sit amet ctetur adipiscing

*/} +
+
- {/*

Lorem ipsum dolor sit amet ctetur adipiscing

*/} -
-
-
-
-
-
-
-

Emergency Help

-
- View Services -
- {/*

Lorem ipsum dolor sit amet ctetur adipiscing

*/} -
-
-
-
-
-
-
-

Modern Equipment

-
- View Services -
- {/*

Lorem ipsum dolor sit amet ctetur adipiscing

*/} -
-
-
-
-
-
-
-

Family Medicine

-
- View Services -
- {/*

Lorem ipsum dolor sit amet ctetur adipiscing

*/} -
-
-
+ ) + }) + }
diff --git a/components/sections/home/ServicesSection.js b/components/sections/home/ServicesSection.js index aa1dfe9..51c27b6 100644 --- a/components/sections/home/ServicesSection.js +++ b/components/sections/home/ServicesSection.js @@ -1,3 +1,4 @@ +import { servicesList } from '@/utils/Services.utils'; import Link from 'next/link'; import React from 'react'; @@ -10,93 +11,39 @@ export default function ServicesSection() {

We Offer For You Medical &
Saving Lives

-
-
-
-
-
-
+ { + servicesList?.slice(0, 6)?.map((service, index) => { + return ( +
+
+
+
+
+
+
+
+

+ + {service?.title?.length > 25 + ? service.title.slice(0, 25) + "..." + : service.title} + +

+

+ {service?.shortDescription?.length > 70 + ? service.shortDescription.slice(0, 70) + "..." + : service.shortDescription} +

+
+
+
-
-

Neurosurgery

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
-
-
-
-
-
-
-
-
-

Modern Laboratory

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
-
-
-
-
-
-
-
-
-

Experienced Doctors

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
-
-
-
-
-
-
-
-
-

Neurosurgery

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
-
-
-
-
-
-
-
-
-

Modern Laboratory

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
-
-
-
-
-
-
-
-
-

Experienced Doctors

-

Amet minim mollit non deserunt ullamco aliqua dolor do amet sint.

-
-
-
-
+ ) + }) + }
- View All Services + View All Services
diff --git a/public/assets/css/module-css/team.css b/public/assets/css/module-css/team.css index 1c42c28..8777f7d 100644 --- a/public/assets/css/module-css/team.css +++ b/public/assets/css/module-css/team.css @@ -102,7 +102,7 @@ .team-block-one .inner-box .lower-content h3{ display: block; font-size: 20px; - line-height: 36px; + line-height: 30px; font-weight: 600; margin-bottom: 5px; } @@ -327,6 +327,7 @@ .team-block-one .inner-box .lower-content h3{ font-size: 16px; margin-bottom: 0px; + line-height: 24px; } }