diff --git a/public/assets/css/demo-slick/demo-slick.css b/public/assets/css/demo-slick/demo-slick.css index 4341d6a..cfbcb6d 100644 --- a/public/assets/css/demo-slick/demo-slick.css +++ b/public/assets/css/demo-slick/demo-slick.css @@ -1,7 +1,7 @@ .theme-slick { --font-global: "Plus Jakarta Sans", sans-serif; --font-alt: "Plus Jakarta Sans", sans-serif; - --section-padding-y: 130px; + --section-padding-y: 50px; --color-dark-1: #1e2432; --color-dark-2: #282e3c; --color-dark-3: #303747; diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 360b416..b7a8cd1 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -172,7 +172,7 @@ Primary use: Multipurpose Template --font-serif: Georgia, "Times New Roman", Times, serif; --full-wrapper-margin-x: 30px; --container-width: 1350px; - --section-padding-y: 120px; + --section-padding-y: 50px; --menu-bar-height: 85px; --menu-bar-height-scrolled: 65px; --color-dark-1: #010101; @@ -3105,7 +3105,6 @@ a.bg-video-button-pause { position: absolute; top: 0; right: 0; - width: 90.1875%; } .bg-shape-1 img { width: 100%; diff --git a/public/assets/css/styles.css b/public/assets/css/styles.css index 258215d..85041de 100644 --- a/public/assets/css/styles.css +++ b/public/assets/css/styles.css @@ -7,17 +7,6 @@ @import "./splitting.css"; @import "./modal.css"; @import "./YTPlayer.css"; -@import "./demo-main/demo-main.css"; -@import "./demo-bold/demo-bold.css"; -@import "./demo-brutalist/demo-brutalist.css"; - -@import "./demo-corporate/demo-corporate.css"; -@import "./demo-elegant/demo-elegant.css"; -@import "./demo-fancy/demo-fancy.css"; -@import "./demo-gradient/demo-gradient.css"; -@import "./demo-modern/demo-modern.css"; @import "./demo-slick/demo-slick.css"; -@import "./demo-strong/demo-strong.css"; - @import "./custom.css"; @import "./style-responsive.css"; diff --git a/src/app/(main)/blog/page.tsx b/src/app/(main)/blog/page.tsx index 02c02c0..978bf64 100644 --- a/src/app/(main)/blog/page.tsx +++ b/src/app/(main)/blog/page.tsx @@ -1,8 +1,8 @@ import { BeforeFooterBlock } from "@/components/Blocks/BeforeFooter"; import { BlogCardItemSkeleton } from "@/components/Blogs/BlogCardItem"; import Blogs from "@/components/Blogs/Blogs"; +import HeroOther from "@/components/HeroOther"; import { sanitizePageNumber } from "@/utils/sanitize"; -import Image from "next/image"; import { Suspense } from "react"; export const metadata = { @@ -18,42 +18,28 @@ export default async function BlogPage({ searchParams }: { searchParams?: Promis return ( <> -
- {/* */} -
- -
- {/* */} - -
-
-
-

Blog

-
-
-
-
- -
-
-
- -
- -
-
-
-
+
+
+
+
+ +
+ +
+
+
+
+ }> @@ -71,7 +57,6 @@ function Loading() { - ); diff --git a/src/components/Blogs/BlogCardItem.tsx b/src/components/Blogs/BlogCardItem.tsx index af8a0a5..2b75b6b 100644 --- a/src/components/Blogs/BlogCardItem.tsx +++ b/src/components/Blogs/BlogCardItem.tsx @@ -21,12 +21,12 @@ export function BlogCardItem({ data }: BlogCardItemProps) { return (
-
+ -
+

{data.title}

diff --git a/src/components/Blogs/Blogs.tsx b/src/components/Blogs/Blogs.tsx index defda97..91dab1b 100644 --- a/src/components/Blogs/Blogs.tsx +++ b/src/components/Blogs/Blogs.tsx @@ -16,7 +16,7 @@ export default async function Blogs({ page, search }: BlogsProps) { return (
{/* Blog Posts Grid */} -
+
{/* Post Item */} {data.formattedData.map((blog, i) => ( 1 && ( - +
+ +
)} {/* End Pagination */}
diff --git a/src/components/HeroOther.tsx b/src/components/HeroOther.tsx new file mode 100644 index 0000000..29b2f1c --- /dev/null +++ b/src/components/HeroOther.tsx @@ -0,0 +1,32 @@ +import Image from "next/image"; + +export interface HeroOtherProps { + title: string; +} + +export default function HeroOther({ title }: HeroOtherProps) { + return ( +
+ {/* */} +
+ +
+ {/* */} + +
+
+
+

{title ?? ""}

+
+
+
+ + + + +
+ ); +} diff --git a/src/components/Pagination.tsx b/src/components/Pagination.tsx index b96701a..5264712 100644 --- a/src/components/Pagination.tsx +++ b/src/components/Pagination.tsx @@ -1,7 +1,6 @@ "use client"; -import { usePathname, useRouter } from "next/navigation"; -import React from "react"; +import { usePathname } from "next/navigation"; interface PaginationProps { page: number; @@ -12,7 +11,6 @@ interface PaginationProps { export default function Pagination({ page, hasPreviousPage, hasNextPage, totalPages }: PaginationProps) { const activePage = page; - const router = useRouter(); const pathName = usePathname(); // Function to handle page change @@ -23,8 +21,7 @@ export default function Pagination({ page, hasPreviousPage, hasNextPage, totalPa const url = new URL(window.location.href); const searchParams = new URLSearchParams(url.search); searchParams.set("page", `${page}`); - - router.push(`${pathName}/?${searchParams}`); + window.location.href = `${pathName}/?${searchParams}`; }; const getPageNumbers = () => {