KnowledgeBlog.js 4.01 KB
import React from "react";
import Link from "next/link";
import Image from "next/image";
import { Col, Container, Row } from "react-bootstrap";
import Heading from "@/components/reuseables/Heading";
import { motion } from "framer-motion";
import { slideFromLeft } from "@/components/reuseables/variants";
const blogPosts = [
  {
    id: 1,
    image: "/images/blog/blogs1.jpeg",
    altText: "Blog Image",
    date: "Jan 22, 2024",
    author: "By Advith Consulting",
    authorLink: "/blog/author",
    title: "Tax Deducted at Source under Income Tax Act",
    shortDesc:
      "Tax Deducted at Source under Income Tax ActBy Advith Consulting1. Introduction",
    btnText: "Read More",
    detailsUrl: "/blog/details",
  },
  {
    id: 2,
    image: "/images/blog/blog-2.jpeg",
    altText: "Blog Image",
    date: "Jan 22, 2024",
    author: "By Advith Consulting",
    authorLink: "/blog/author",
    title: "Reporting on Fraudulent Activities by Auditors",
    shortDesc:
      "Reporting on Fraudulent Activities by AuditorsBy Advith ConsultingIntroduction",
    btnText: "Read More",
    detailsUrl: "/blog/details",
  },
  {
    id: 3,
    image: "/images/blog/blogs3.jpeg",
    altText: "Blog Image",
    date: "Jan 22, 2024",
    author: "By Advith Consulting",
    authorLink: "/blog/author",
    title: "Start-up and Angel Tax",
    shortDesc:
      "Start-up and Angel TaxBy Advith ConsultingBackgroundWith the aim of foste",
    btnText: "Read More",
    detailsUrl: "/blog/details",
  },
];

const KnowledgeBlog = () => {
  return (
    <>
      <div id="blog" className="blog-area pt-100 pb-70">
        <Container>
          <div className="section-title">
            <span className="sub-title">OUR BLOGS</span>
            <Heading heading={"Meet Up With Our Blogs"} el="h2" />
            <p>
              Delve into the intricacies of Finance & Tax with our insightful
              blogs, where our experts analyze complex topics to provide the
              entrepreneurial community with informed perspectives and
              actionable advice.
            </p>
          </div>

          <Row className="justify-content-center">
            {blogPosts &&
              blogPosts.map((post, index) => (
                <Col lg={4} md={6} key={post.id}>
                  <motion.div
                    variants={slideFromLeft(index * 0.5)}
                    initial={"hidden"}
                    whileInView={"show"}
                    viewport={{ once: false, amount: 0.4 }}
                  >
                    <div className="single-blog-post">
                      <div className="post-image">
                        <Link href={post.detailsUrl} className="d-block">
                          <Image
                            layout="fill"
                            src={post.image}
                            alt={post.altText}
                            className="img-fluid image"
                          />
                        </Link>
                      </div>
                      <div className="post-content">
                        <ul className="meta">
                          <li>
                            <i className="ri-calendar-2-line"></i> {post.date}
                          </li>
                          <li>
                            <i className="ri-user-voice-line"></i>
                            <Link href={post.authorLink}>{post.author}</Link>
                          </li>
                        </ul>
                        <h3>
                          <Link href={post.detailsUrl}>{post.title}</Link>
                        </h3>

                        <p>{post.shortDesc}</p>

                        <Link href={post.detailsUrl} className="default-btn">
                          {post.btnText} <i className="ri-arrow-right-line"></i>
                        </Link>
                      </div>
                    </div>
                  </motion.div>
                </Col>
              ))}
          </Row>
        </Container>
      </div>
    </>
  );
};

export default KnowledgeBlog;