AreasofExpertise.js 2.86 KB
import React from "react";
import Image from "next/image";
import { Col, Container, Row } from "react-bootstrap";
import { motion } from "framer-motion";
import { fadeIn } from "@/components/reuseables/variants";
import Heading from "@/components/reuseables/Heading";
const areasofExpertise = [
  {
    id: 1,
    image: "/images/projects/projects1.jpg",
    altText: "Project Image",
    title: "Assurance",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
  {
    id: 2,
    image: "/images/projects/projects2.jpg",
    altText: "Project Image",
    title: "Direct Tax",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
  {
    id: 3,
    image: "/images/projects/projects3.jpg",
    altText: "Project Image",
    title: "Indirect Tax",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
  {
    id: 4,
    image: "/images/projects/projects4.jpg",
    altText: "Project Image",
    title: "Corporate Legal",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
  {
    id: 5,
    image: "/images/projects/projects5.jpg",
    altText: "Project Image",
    title: "Corporate Law and FEMA",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
  {
    id: 6,
    image: "/images/projects/projects6.jpg",
    altText: "Project Image",
    title: "Cross Border Transactions",
    category: "lorem",
    linkText: "Read More",
    detailsUrl: "/projects/details",
  },
];

const AreasofExpertise = () => {
  return (
    <>
      <div className="areas-of-expertise pt-100 pb-70 bglight">
        <Container>
          <div className="section-title">
            <span className="sub-title">lorem</span>
            <Heading el="h2" heading="Areas of Expertise" className="h2" />
          </div>

          <Row className="justify-content-center">
            {areasofExpertise &&
              areasofExpertise.map((item, index) => (
                <Col lg={4} md={6} key={item.id}>
                  <div className="single-projects-box">
                    <motion.div
                      variants={fadeIn(index * 1)}
                      initial={"hidden"}
                      whileInView={"show"}
                      viewport={{ once: false, amount: 0.5 }}
                    >
                      <Image
                        src={item.image}
                        alt={item.altText}
                        layout="fill"
                        className="img-fluid rounded-3 image"
                      />
                      <h3>{item.title}</h3>
                      <span>{item.category}</span>
                    </motion.div>
                  </div>
                </Col>
              ))}
          </Row>
        </Container>
      </div>
    </>
  );
};

export default AreasofExpertise;