blog page structure updated
This commit is contained in:
parent
8079d03bed
commit
c339c5edcc
@ -1,7 +1,7 @@
|
|||||||
import Blogs from "@/components/blogs/Blogs";
|
import Blogs from "@/components/blogs/Blogs";
|
||||||
import Brands from "@/components/common/Brands";
|
import Brands from "@/components/common/Brands";
|
||||||
import Footer1 from "@/components/footers/Footer1";
|
import Footer1 from "@/components/footers/Footer1";
|
||||||
import Header2 from "@/components/headers/Header2";
|
import Header1 from "@/components/headers/Header1";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
@ -11,25 +11,25 @@ export const metadata = {
|
|||||||
export default function page() {
|
export default function page() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Header2 />
|
<Header1 />
|
||||||
<div
|
<div
|
||||||
className="breadcrumb-wrapper bg-cover"
|
className="breadcrumb-wrapper bg-cover"
|
||||||
style={{ backgroundImage: 'url("/assets/img/breadcrumb-bg.jpg")' }}
|
style={{ backgroundImage: 'url("/assets/img/breadcrumb-bg.jpg")' }}
|
||||||
>
|
>
|
||||||
<div className="shape-image float-bob-y">
|
{/* <div className="shape-image float-bob-y">
|
||||||
<Image
|
<Image
|
||||||
src="/assets/img/vector.png"
|
src="/assets/img/vector.png"
|
||||||
width={84}
|
width={84}
|
||||||
height={186}
|
height={186}
|
||||||
alt="img"
|
alt="img"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className="breadcrumb-wrapper-items">
|
<div className="breadcrumb-wrapper-items">
|
||||||
<div className="page-heading">
|
<div className="page-heading">
|
||||||
<div className="breadcrumb-sub-title">
|
<div className="breadcrumb-sub-title">
|
||||||
<h1 className="wow fadeInUp" data-wow-delay=".3s">
|
<h1 className="wow fadeInUp" data-wow-delay=".3s">
|
||||||
Blogs Grid
|
Blog
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<ul
|
||||||
@ -42,11 +42,11 @@ export default function page() {
|
|||||||
<li>
|
<li>
|
||||||
<i className="fa-sharp fa-solid fa-slash-forward" />
|
<i className="fa-sharp fa-solid fa-slash-forward" />
|
||||||
</li>
|
</li>
|
||||||
<li>Blogs Grid</li>
|
<li>Blog</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div className="breadcrumb-image">
|
<div className="breadcrumb-image">
|
||||||
<Image
|
{/* <Image
|
||||||
src="/assets/img/breadcrumb-image.png"
|
src="/assets/img/breadcrumb-image.png"
|
||||||
width={540}
|
width={540}
|
||||||
height={450}
|
height={450}
|
||||||
@ -60,15 +60,15 @@ export default function page() {
|
|||||||
height={604}
|
height={604}
|
||||||
alt="img"
|
alt="img"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Blogs />
|
<Blogs />
|
||||||
<div className="brand-section fix section-padding pt-0">
|
{/* <div className="brand-section fix section-padding pt-0">
|
||||||
<Brands />
|
<Brands />
|
||||||
</div>
|
</div> */}
|
||||||
<Footer1 />
|
<Footer1 />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,14 +1,15 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Pagination from "../common/Pagination";
|
import Pagination from "../common/Pagination";
|
||||||
import { newsItems3 } from "@/data/blogs";
|
import { BlogData } from "@/utlis/constant.utils";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
export default function Blogs() {
|
export default function Blogs() {
|
||||||
return (
|
return (
|
||||||
<section className="news-section fix section-padding">
|
<section className="news-section fix section-padding">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className="row g-4">
|
<div className="row g-4">
|
||||||
{newsItems3.map((news) => (
|
{BlogData.map((news) => (
|
||||||
<div
|
<div
|
||||||
key={news.id}
|
key={news.id}
|
||||||
className={`col-xl-4 col-lg-6 col-md-6 wow fadeInUp ${
|
className={`col-xl-4 col-lg-6 col-md-6 wow fadeInUp ${
|
||||||
@ -34,7 +35,9 @@ export default function Blogs() {
|
|||||||
<li>{news.date}</li>
|
<li>{news.date}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4>
|
<h4>
|
||||||
<Link href={`/news-details/${news.id}`}>{news.title}</Link>
|
<Link href={`/news-details/${news.slug}`}>
|
||||||
|
{news.title}
|
||||||
|
</Link>
|
||||||
</h4>
|
</h4>
|
||||||
<div className="author-items">
|
<div className="author-items">
|
||||||
<div className="author-info">
|
<div className="author-info">
|
||||||
@ -50,7 +53,7 @@ export default function Blogs() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Link
|
<Link
|
||||||
href={`/news-details/${news.id}`}
|
href={`/news-details/${news.slug}`}
|
||||||
className="link-btn"
|
className="link-btn"
|
||||||
>
|
>
|
||||||
Read More <i className="fa-solid fa-arrow-right" />
|
Read More <i className="fa-solid fa-arrow-right" />
|
||||||
@ -61,14 +64,6 @@ export default function Blogs() {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
className="page-nav-wrap pt-5 text-center wow fadeInUp"
|
|
||||||
data-wow-delay=".3s"
|
|
||||||
>
|
|
||||||
<ul>
|
|
||||||
<Pagination />
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -63,9 +63,9 @@ export const newsItems2 = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const newsItems3 = [
|
export const BlogData = [
|
||||||
{
|
{
|
||||||
id: 7,
|
slug: "latest-work-disapproved-supervisor",
|
||||||
images: ["/assets/img/news/04.jpg", "/assets/img/news/04.jpg"],
|
images: ["/assets/img/news/04.jpg", "/assets/img/news/04.jpg"],
|
||||||
category: "Construction",
|
category: "Construction",
|
||||||
date: "07 July 2024",
|
date: "07 July 2024",
|
||||||
@ -77,7 +77,7 @@ export const newsItems3 = [
|
|||||||
delay: ".2s",
|
delay: ".2s",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 8,
|
slug: "manager-disapproved-most-recent-work",
|
||||||
images: ["/assets/img/news/05.jpg", "/assets/img/news/05.jpg"],
|
images: ["/assets/img/news/05.jpg", "/assets/img/news/05.jpg"],
|
||||||
category: "Building",
|
category: "Building",
|
||||||
date: "07 July 2024",
|
date: "07 July 2024",
|
||||||
@ -90,7 +90,7 @@ export const newsItems3 = [
|
|||||||
active: true,
|
active: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 9,
|
slug: "manager-found-latest-work-unsatisfactory",
|
||||||
images: ["/assets/img/news/06.jpg", "/assets/img/news/06.jpg"],
|
images: ["/assets/img/news/06.jpg", "/assets/img/news/06.jpg"],
|
||||||
category: "Industry",
|
category: "Industry",
|
||||||
date: "07 July 2024",
|
date: "07 July 2024",
|
||||||
@ -101,42 +101,6 @@ export const newsItems3 = [
|
|||||||
},
|
},
|
||||||
delay: ".6s",
|
delay: ".6s",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 10,
|
|
||||||
images: ["/assets/img/news/07.jpg", "/assets/img/news/07.jpg"],
|
|
||||||
category: "Industry",
|
|
||||||
date: "07 July 2024",
|
|
||||||
title: "Manager Found Latest Work Unsatisfactory.",
|
|
||||||
author: {
|
|
||||||
name: "Guy Hawkins",
|
|
||||||
image: "/assets/img/news/author-3.png",
|
|
||||||
},
|
|
||||||
delay: ".2s",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 11,
|
|
||||||
images: ["/assets/img/news/08.jpg", "/assets/img/news/08.jpg"],
|
|
||||||
category: "Industry",
|
|
||||||
date: "07 July 2024",
|
|
||||||
title: "Manager Found Latest Work Unsatisfactory.",
|
|
||||||
author: {
|
|
||||||
name: "Guy Hawkins",
|
|
||||||
image: "/assets/img/news/author-3.png",
|
|
||||||
},
|
|
||||||
delay: ".4s",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 12,
|
|
||||||
images: ["/assets/img/news/09.jpg", "/assets/img/news/09.jpg"],
|
|
||||||
category: "Industry",
|
|
||||||
date: "07 July 2024",
|
|
||||||
title: "Manager Found Latest Work Unsatisfactory.",
|
|
||||||
author: {
|
|
||||||
name: "Guy Hawkins",
|
|
||||||
image: "/assets/img/news/author-3.png",
|
|
||||||
},
|
|
||||||
delay: ".6s",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const newsItems4 = [
|
export const newsItems4 = [
|
||||||
@ -202,7 +166,6 @@ export const allNews = [
|
|||||||
...newsItems,
|
...newsItems,
|
||||||
...newsImageItems,
|
...newsImageItems,
|
||||||
...newsItems2,
|
...newsItems2,
|
||||||
...newsItems3,
|
|
||||||
...newsItems4,
|
...newsItems4,
|
||||||
...recentItems,
|
...recentItems,
|
||||||
];
|
];
|
||||||
|
|||||||
@ -235,7 +235,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover,&.active {
|
&:hover,&.active {
|
||||||
background-color: $header-color;
|
background-color: #0b2273;
|
||||||
|
|
||||||
.news-image {
|
.news-image {
|
||||||
img {
|
img {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user