diff --git a/app/blog-single/page.tsx b/app/blog-single/page.tsx index 2287774..ec29ab0 100644 --- a/app/blog-single/page.tsx +++ b/app/blog-single/page.tsx @@ -1,13 +1,18 @@ 'use client' import { useState } from 'react' +import { useSearchParams } from 'next/navigation' import ModalVideo from 'react-modal-video' import "@/node_modules/react-modal-video/css/modal-video.css" import Countdown from '@/components/elements/Countdown' import Layout from "@/components/layout/Layout" +import { recipesList } from "@/utility/constant.utils"; import Link from "next/link" export default function BlogSingle() { const [isOpen, setOpen] = useState(false) + + const searchParams = useSearchParams(); + const currentSlug = searchParams.get('slug'); return ( <> @@ -199,78 +204,37 @@ export default function BlogSingle() {
-
-
-
- -
-
-
    -
  • - 26 Jan 2025 | -
  • -
  • - Beverly -
  • -
-
- Eventify 2024: Unlock the Future of Business -
- read more -
- + {recipesList + .filter(post => post.slug !== currentSlug) + .slice(0, 3) + .map((post) => ( + +
+
+
+ {post.title} +
+
+
    +
  • + {post.date} | +
  • +
  • + {post.user} +
  • +
+
+ {post.title.length > 40 ? `${post.title.slice(0, 40)}...` : post?.title} +
+ read more +
+ +
+
-
-
-
-
-
- -
-
-
    -
  • - 26 Jan 2025 | -
  • -
  • - Gisselle -
  • -
-
- Where Vision Meetup Connect: Eventify 2024 -
- read more -
- -
-
-
-
-
-
-
- -
-
-
    -
  • - 26 Jan 2025 | -
  • -
  • - Mertie -
  • -
-
- Fuel Your Business Growth at Eventify -
- read more -
- -
-
-
-
+ )) + }
@@ -282,7 +246,7 @@ export default function BlogSingle() {
- +
Buy Ticket
@@ -308,7 +272,7 @@ export default function BlogSingle() {
- +
Buy Ticket
diff --git a/app/community/single-recipes/page.tsx b/app/community/single-recipes/page.tsx index 5f387f3..96e538a 100644 --- a/app/community/single-recipes/page.tsx +++ b/app/community/single-recipes/page.tsx @@ -9,8 +9,8 @@ import { Suspense } from "react"; const Page = () => { // const { slug } = params; - const searchParams = useSearchParams(); - const slug = searchParams.get('slug'); + const searchParams = useSearchParams(); + const slug = searchParams.get('slug'); console.log("slug", slug) const post = recipesList.find((post) => post.slug === slug); const [mounted, setMounted] = useState(false); @@ -87,31 +87,36 @@ const Page = () => {
-
-
-
- -
-
-
    -
  • - 26 Jan 2025 | -
  • -
  • - Beverly -
  • -
-
- Eventify 2024: Unlock the Future of Business -
- read more -
- + {recipesList + .filter(p => p.slug !== slug) + .slice(0, 3) + .map((relatedPost) => ( +
+
+
+ {relatedPost.title} +
+
+
    +
  • + {relatedPost.date} | +
  • +
  • + {relatedPost.user} +
  • +
+
+ {relatedPost.title.length > 40 ? `${relatedPost.title.slice(0, 40)}...` : relatedPost?.title} +
+ read more +
+ +
+
-
-
-
+ ))} + {/*
@@ -158,7 +163,7 @@ const Page = () => {
-
+
*/}
@@ -171,14 +176,14 @@ const Page = () => { } const RecipePage = (() => { - return ( - - - }> - - - - ) + return ( + + + }> + + + + ) }) export default RecipePage; \ No newline at end of file diff --git a/public/assets/css/main.css b/public/assets/css/main.css index efe5936..6e2abe5 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -6659,7 +6659,7 @@ Location: } .blog-details-section .blog-deatils-content .tags-social-area .tags ul li a:hover { - background: var(--ztc-bg-bg-3); + background: var(--ztc-bg-bg-15); transition: all 0.4s; } @@ -6700,7 +6700,7 @@ Location: } .blog-details-section .blog-deatils-content .tags-social-area .social ul li a:hover { - background: var(--ztc-bg-bg-3); + background: var(--ztc-bg-bg-15); transition: all 0.4s; } @@ -6837,7 +6837,7 @@ Location: } .blog-details-section .blog-auhtor-details .tags-area ul li a:hover { - background: var(--ztc-bg-bg-3); + background: var(--ztc-bg-bg-15); transition: all 0.4s; } @@ -20047,7 +20047,7 @@ html { } .cta1-section-area .cta1-main-boxarea { - background: var(--ztc-bg-bg-3); + background: var(--ztc-bg-bg-15); border-radius: 8px; padding: 44px; }