From b043ff5b076877ce7b60312ad07d19cf9f66b533 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Fri, 25 Jul 2025 20:46:44 +0530 Subject: [PATCH] feat(web): add video testimonials section --- .../app/(home)/_components/testimonials.tsx | 99 ++++++++++++++++++- 1 file changed, 96 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/(home)/_components/testimonials.tsx b/apps/web/src/app/(home)/_components/testimonials.tsx index 049b95f..94c31b5 100644 --- a/apps/web/src/app/(home)/_components/testimonials.tsx +++ b/apps/web/src/app/(home)/_components/testimonials.tsx @@ -1,11 +1,24 @@ "use client"; -import { motion } from "framer-motion"; -import { Terminal } from "lucide-react"; +import { Play, Terminal } from "lucide-react"; +import { motion } from "motion/react"; import Image from "next/image"; import { Suspense } from "react"; import { Tweet, TweetSkeleton, type TwitterComponents } from "react-tweet"; +const YOUTUBE_VIDEOS = [ + { + id: "VIDEO_001", + embedId: "g-ynSAdL6Ak", + title: "This tool cured my JavaScript fatigue", + }, + { + id: "VIDEO_002", + embedId: "uHUgw-Hi8HE", + title: "I tried React again after 2 years of Svelte", + }, +]; + const TWEET_IDS = [ "1930194170418999437", "1907728148294447538", @@ -114,6 +127,45 @@ export default function Testimonials() { }, }; + const VideoCard = ({ + video, + index, + }: { + video: (typeof YOUTUBE_VIDEOS)[0]; + index: number; + }) => ( + +
+
+
+ + [{video.id}] +
+
+
+
+