diff --git a/app/our-team-physiotherapy-etobicoke/TeamClient.js b/app/our-team-physiotherapy-etobicoke/TeamClient.js new file mode 100644 index 0000000..ac07cd4 --- /dev/null +++ b/app/our-team-physiotherapy-etobicoke/TeamClient.js @@ -0,0 +1,53 @@ +'use client' +import Layout from "@/components/layout/Layout"; +import Link from "next/link"; +import { teamMembers } from "@/utils/constant.utils"; + +export default function Home() { + return ( + <> + + + + + Meet the Team + Meet Our Experienced Therapists for Exceptional Care + + + {teamMembers.map((member, index) => ( + + + + + + + + + + + {member.name} + + {member.designation} + + {member.socials.map((social, idx) => ( + + + + ))} + + + + + + ))} + + + + + > + ); +} diff --git a/app/our-team-physiotherapy-etobicoke/[slug]/page.js b/app/our-team-physiotherapy-etobicoke/[slug]/page.js index f4d75b6..7eeae6e 100644 --- a/app/our-team-physiotherapy-etobicoke/[slug]/page.js +++ b/app/our-team-physiotherapy-etobicoke/[slug]/page.js @@ -1,6 +1,5 @@ import Layout from "@/components/layout/Layout"; import Link from "next/link"; -import { notFound } from "next/navigation"; import { teamMembers } from "@/utils/constant.utils"; const ProgressBar = ({ label, percent }) => ( @@ -13,13 +12,28 @@ const ProgressBar = ({ label, percent }) => ( ); - export async function generateStaticParams() { return teamMembers.map((member) => ({ slug: member.slug, })); } +export async function generateMetadata({ params }) { + const member = teamMembers.find((item) => item.slug === params.slug); + + if (!member) { + return { + title: "Team Member Not Found – Rapha Rehab Clinic", + description: "Team member not found at Rapha Rehab Clinic.", + }; + } + + return { + title: `${member.name} – Rapha Rehab Clinic`, + description: member.description || `Learn more about ${member.name}, their experience, expertise, and services at Rapha Rehab Clinic in Etobicoke and Scarborough.`, + }; +} + export default function TeamDetails({ params }) { const member = teamMembers.find((item) => item.slug === params.slug); @@ -39,7 +53,7 @@ export default function TeamDetails({ params }) { headerStyle={2} footerStyle={1} breadcrumbTitle={member.name} - bannerImage={member.bannerImage} + bannerImage={member.bannerImage} > @@ -80,7 +94,6 @@ export default function TeamDetails({ params }) { {member.about2} - {/* Expertise & Skills */} @@ -98,6 +111,7 @@ export default function TeamDetails({ params }) { + diff --git a/app/our-team-physiotherapy-etobicoke/page.js b/app/our-team-physiotherapy-etobicoke/page.js index ac07cd4..d5ed33e 100644 --- a/app/our-team-physiotherapy-etobicoke/page.js +++ b/app/our-team-physiotherapy-etobicoke/page.js @@ -1,53 +1,16 @@ -'use client' import Layout from "@/components/layout/Layout"; -import Link from "next/link"; -import { teamMembers } from "@/utils/constant.utils"; +import TeamClient from "../our-team-physiotherapy-etobicoke/TeamClient"; -export default function Home() { +export const metadata = { + title: "Meet Our Professional Team – Rapharehab Experts", + description: + "Get to know the trusted team behind Rapharehab. Our dedicated experts provide compassionate care and specialized therapies.", +}; + +export default function OurTeamPage() { return ( - <> - - - - - Meet the Team - Meet Our Experienced Therapists for Exceptional Care - - - {teamMembers.map((member, index) => ( - - - - - - - - - - - {member.name} - - {member.designation} - - {member.socials.map((social, idx) => ( - - - - ))} - - - - - - ))} - - - - - > + <> + + > ); }
{member.about2}