From bed11db34163280a323b4fb57a8ae1ef831ba441 Mon Sep 17 00:00:00 2001 From: Akash-1808 Date: Wed, 1 Jan 2025 21:38:38 +0530 Subject: [PATCH 1/2] adding-link-chapter-section --- components/ChapterSection.tsx | 6 ++++-- components/ui/Pin.tsx | 8 ++++---- data/index.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/components/ChapterSection.tsx b/components/ChapterSection.tsx index a492126..0088cb1 100644 --- a/components/ChapterSection.tsx +++ b/components/ChapterSection.tsx @@ -13,12 +13,13 @@ const ChapterSection = () => {
{Chapters.map((item, idx) => (
- +
+

{item.title}

{item.des} @@ -33,8 +34,9 @@ const ChapterSection = () => { />
-
+
+ ))}
diff --git a/components/ui/Pin.tsx b/components/ui/Pin.tsx index 80c23ce..f7230e7 100644 --- a/components/ui/Pin.tsx +++ b/components/ui/Pin.tsx @@ -50,6 +50,7 @@ export const PinContainer = ({ + ); }; @@ -60,15 +61,14 @@ export const PinPerspective = ({ title, href }: { title?: string; href?: string
- {title} - +
Date: Sat, 4 Jan 2025 22:01:47 +0530 Subject: [PATCH 2/2] change-Link-tag --- components/ChapterSection.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/ChapterSection.tsx b/components/ChapterSection.tsx index 0088cb1..aceb9e3 100644 --- a/components/ChapterSection.tsx +++ b/components/ChapterSection.tsx @@ -3,6 +3,7 @@ import { Chapters } from "@/data"; import { PinContainer } from "./ui/Pin"; import Image from "next/image"; +import Link from "next/link"; const ChapterSection = () => { return ( @@ -13,7 +14,8 @@ const ChapterSection = () => {
{Chapters.map((item, idx) => ( - + +
))}