55 lines
2.0 KiB
JavaScript
55 lines
2.0 KiB
JavaScript
'use client'
|
|
import Layout from "@/components/layout/Layout";
|
|
import Link from "next/link";
|
|
import Blogs from "@/utils/Blog.utils";
|
|
|
|
export default function Blog() {
|
|
return (
|
|
<Layout headerStyle={2} footerStyle={1} breadcrumbTitle="Blog">
|
|
<section className="news-section sec-pad bg-color-1">
|
|
<div className="auto-container">
|
|
<div className="sec-title mb_50 centred">
|
|
<span className="sub-title">Our Blog</span>
|
|
<h2>Stay Updated with <br />Our Recent Blog Posts</h2>
|
|
</div>
|
|
|
|
<div className="row clearfix">
|
|
{Blogs.map((blog, i) => (
|
|
<div key={i} className="col-lg-4 col-md-6 col-sm-12 news-block">
|
|
<div
|
|
className="news-block-one wow fadeInUp animated"
|
|
data-wow-delay={`${i * 300}ms`}
|
|
data-wow-duration="1500ms"
|
|
>
|
|
<div className="inner-box">
|
|
<figure className="image-box">
|
|
<Link href={`/blog/${blog.slug}`}>
|
|
<img src={blog.thumbnail} alt={blog.title} />
|
|
</Link>
|
|
</figure>
|
|
<div className="lower-content">
|
|
{/* <ul className="post-info mb_15 clearfix">
|
|
<li><Link href="#">{blog.author}</Link></li>
|
|
<li>{blog.date}</li>
|
|
<li>{blog.comments}</li>
|
|
</ul> */}
|
|
<h3>
|
|
<Link href={`/blog/${blog.slug}`}>{blog.title}</Link>
|
|
</h3>
|
|
<p>{blog.shortDesc}</p>
|
|
<div className="link">
|
|
<Link href={`/blog/${blog.slug}`}><span>Read More</span></Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
</Layout>
|
|
);
|
|
}
|