From 655410fc03eb58a6bf41a0728f42b57a440c6973 Mon Sep 17 00:00:00 2001 From: Syed Ahkam Date: Thu, 7 Sep 2023 17:16:26 +0530 Subject: [PATCH 1/3] Fix invalid import in contentlayer config --- contentlayer.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentlayer.config.ts b/contentlayer.config.ts index 8343d78..e8d7f0e 100644 --- a/contentlayer.config.ts +++ b/contentlayer.config.ts @@ -1,4 +1,4 @@ -import { defineDocumentType, makeSource } from '@contentlayer/source-files' +import { defineDocumentType, makeSource } from 'contentlayer/source-files' export const Post = defineDocumentType(() => ({ name: 'Post', From bb268afa3db637a5d7297300a460a17566620752 Mon Sep 17 00:00:00 2001 From: Keshav Maheshwari Date: Tue, 2 Apr 2024 19:43:21 +0530 Subject: [PATCH 2/3] Update globals.css --- src/app/globals.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/globals.css b/src/app/globals.css index a4063da..c776c8c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -47,4 +47,10 @@ body::-webkit-scrollbar-thumb { body::-webkit-scrollbar-thumb:hover { background-color: #555; } - +.prose{ + display: grid; + justify-content: center; + align-items: center; + text-align: justify; + max-width: 1200px; +} \ No newline at end of file From ea9649503520982fb644655f1939e54f856774b1 Mon Sep 17 00:00:00 2001 From: Keshav Maheshwari Date: Thu, 4 Apr 2024 14:16:13 +0530 Subject: [PATCH 3/3] navigation arrows fixed --- components/Slider.tsx | 89 ++++++++++++++++++++++++------------------- src/app/globals.css | 64 ++++++++++++++++++++++++++----- 2 files changed, 105 insertions(+), 48 deletions(-) diff --git a/components/Slider.tsx b/components/Slider.tsx index 8a3fcaa..ca34234 100644 --- a/components/Slider.tsx +++ b/components/Slider.tsx @@ -4,21 +4,24 @@ import { TestimonialData } from "../constants/testimonialsdata"; import { Sponsordata } from "../constants/sponsordata"; import Link from "next/link"; -import { Autoplay } from "swiper"; +import SwiperCore, { Autoplay, Navigation } from "swiper"; import { Swiper, SwiperSlide } from "swiper/react"; import "swiper/css"; +import "swiper/swiper-bundle.css"; -interface sliderProps { +SwiperCore.use([Autoplay, Navigation]); + +interface SliderProps { isTestimonial: boolean; } -export default function Slider(props: sliderProps) { +export default function Slider(props: SliderProps) { const { isTestimonial } = props; return ( <> {isTestimonial ? ( -
+
- {TestimonialData.map((testimonial, index) => { - return ( -
- -
-

- - {testimonial.review.length <= 300 - ? testimonial.review - : testimonial.review.slice(0, 300) + "..."} - -

-
-
- profile picture -
-

- {testimonial.name} -

-

- {testimonial.designation} -

-
-
+ {TestimonialData.map((testimonial, index) => ( + +
+

+ + {testimonial.review.length <= 300 ? testimonial.review : testimonial.review.slice(0, 300) + "..."} + +

+
+
+ profile picture +
+

+ {testimonial.name} +

+

+ {testimonial.designation} +

-
- + +
- ); - })} + + ))} +
+
) : (