LeftSideImage.js 2.4 KB
import React from "react";
import { Col, Container, Row } from "react-bootstrap";
// import Heading from "@/components/reuseables/Heading";
import Image from "next/image";
import { motion } from "framer-motion";
import { slideFromLeft } from "@/components/reuseables/variants";
import { cleanImage } from "@/layout/imageHandling";
const heading = [
  {
    title: "About Advith Consulting",
    subtitle: "lorem",
    description:
      "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
  },
];

const LeftSideImage = ({title,subtitle,image,content}) => {
  return (
    <>
      <section className="leftsideimg ptb-50">
        <div className="people">
          <Container>
            <Row className="align-items-center">
              <Col lg={6} md={12}>
                <div className="call-back-request-img">
                  <motion.div
                    variants={slideFromLeft(0.5)}
                    initial={"hidden"}
                    whileInView={"show"}
                    viewport={{ once: false, amount: 0.4 }}
                  >
                    <Image
                      src={cleanImage(image?.url)}
                      layout="fill"
                      className="img-fluid image rounded-5"
                      alt="image"
                    />
                  </motion.div>
                </div>
              </Col>

              <Col lg={6} md={12}>
                <div className="call-back-request-text">
                  <span className="sub-title">{subtitle}</span>
                  {/* <Heading el="h2" heading={title} className="h2" /> */}
                  <h2>{title}</h2>
                  {/* <p>{description}</p> */}
                  <div className="content" dangerouslySetInnerHTML={{ __html:content}}/>

                </div>
              </Col>
            </Row>
          </Container>
        </div>
      </section>
    </>
  );
};

export default LeftSideImage;