import React from 'react';
import Link from "next/link";
import Image from 'next/image';
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' },
        { name: 'Eleanor Pena', role: 'Doctor', image: 'assets/images/team/team-2.jpg' },
        { name: 'Arlene Maccy', role: 'Nursing Assistant', image: 'assets/images/team/team-3.jpg' },
        { name: 'Jenny Wilson', role: 'Senior Doctor', image: 'assets/images/team/team-4.jpg' },
        { name: 'Black Marvin', role: 'Medical Assistant', image: 'assets/images/team/team-1.jpg' },
        { name: 'Eleanor Pena', role: 'Doctor', image: 'assets/images/team/team-2.jpg' },
        { name: 'Arlene Maccy', role: 'Nursing Assistant', image: 'assets/images/team/team-3.jpg' },
        { name: 'Jenny Wilson', role: 'Senior Doctor', image: 'assets/images/team/team-4.jpg' },
    ];

    return (
        <section className="team-section sec-pad centred bg-color-1">
            <div className="pattern-layer">
                <div className="pattern-1">
                    <Image
                        src="/assets/images/shape/shape-13.webp"
                        alt="Physiotherapy at Rapharehab"
                        fill
                        style={{ objectFit: "cover" }}
                    />
                </div>

                <div className="pattern-2">
                    <Image
                        src="/assets/images/shape/shape-14.webp"
                        alt="Physiotherapy at Rapharehab"
                        fill
                        style={{ objectFit: "cover" }}
                    />
                </div>


            </div>
            <div className="shape">
                {/* <div className="shape-1 float-bob-y" style={{ backgroundImage: 'url(assets/images/shape/shape-15.png)' }}></div> */}
                <div className="shape-2"></div>
                {/* <div className="shape-3 float-bob-x" style={{ backgroundImage: 'url(assets/images/shape/shape-16.png)' }}></div> */}
            </div>
            <div className="auto-container">
                <div className="sec-title-2 mb_50">
                    <span className="sub-title-1 text-white">Start Your Treatment Today! <br /> Visit our healthcare team in Etobicoke.</span>
                    <h2 className='h3-white' style={{ fontWeight: "bold" }}>
                        Area Of Injury
                    </h2>
                </div>
                <div className="row clearfix">
                    {areaOfInjuryData.slice(0, 8).map((area, index) => (
                        <div key={index} className="col-lg-3 col-md-6 col-6 team-block d-flex">
                            <div className="team-block-one wow fadeInUp animated d-flex flex-column flex-grow-1"
                            // data-wow-delay={`${index * 50}ms`} data-wow-duration="500ms"
                            >
                                <div className="inner-box d-flex flex-column flex-grow-1">
                                    <div className="image-box">
                                        <figure className="image">
                                            <img src={area.image} alt={area.title.toUpperCase()} />
                                        </figure>
                                        {/* <ul className="social-links clearfix">
                                            <li><Link href="/#"><i className="icon-4"></i></Link></li>
                                            <li><Link href="/#"><i className="icon-5"></i></Link></li>
                                            <li><Link href="/#"><i className="icon-6"></i></Link></li>
                                            <li><Link href="/#"><i className="icon-7"></i></Link></li>
                                        </ul> */}
                                    </div>
                                    <div className="lower-content mt-auto">
                                        <h3><Link href={`/area-of-injury/${area.slug}`}>{area.title}</Link></h3>
                                        {/* <span className="designation">{member.role}</span> */}
                                    </div>
                                </div>
                            </div>
                        </div>
                    ))}
                    <div className='col-12 text-center'>
                        <div className="btn-box">
                            <Link href="/area-of-injury" className="theme-btn btn-one-new"><span>View All</span></Link>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    );
};
