1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-26 18:44:57 +02:00

Update video cards

This commit is contained in:
Kamran Ahmed
2025-07-22 01:02:49 +01:00
parent 124362af1f
commit 049079690a

View File

@@ -1,5 +1,4 @@
import { import {
Brain,
Bot, Bot,
Book, Book,
Star, Star,
@@ -9,8 +8,7 @@ import {
Users2, Users2,
Wand2, Wand2,
Play, Play,
GitPullRequest, GitPullRequest
Rocket,
} from 'lucide-react'; } from 'lucide-react';
import type { LucideIcon } from 'lucide-react'; import type { LucideIcon } from 'lucide-react';
import { cn } from '../../lib/classname'; import { cn } from '../../lib/classname';
@@ -20,7 +18,6 @@ import { VideoModal } from '../VideoModal';
interface FeatureCardProps { interface FeatureCardProps {
title: string; title: string;
description: string; description: string;
Icon: LucideIcon;
duration?: string; duration?: string;
videoId: string; videoId: string;
thumbnail: string; thumbnail: string;
@@ -31,7 +28,6 @@ function FeatureCard(props: FeatureCardProps) {
const { const {
title, title,
description, description,
Icon,
duration = '2:30', duration = '2:30',
videoId, videoId,
thumbnail, thumbnail,
@@ -41,7 +37,7 @@ function FeatureCard(props: FeatureCardProps) {
return ( return (
<button <button
onClick={onClick} onClick={onClick}
className="group relative overflow-hidden rounded-lg border border-slate-700 bg-[#151F33] py-4 hover:border-blue-400" className="group relative overflow-hidden rounded-lg border border-slate-700 bg-[#151F33] p-4 text-left hover:border-blue-400"
> >
<span className="group relative block aspect-video w-full cursor-pointer overflow-hidden rounded-lg bg-slate-900/50"> <span className="group relative block aspect-video w-full cursor-pointer overflow-hidden rounded-lg bg-slate-900/50">
<img <img
@@ -52,12 +48,16 @@ function FeatureCard(props: FeatureCardProps) {
</span> </span>
<span className="absolute inset-0 flex items-center justify-center bg-black/30 opacity-0 group-hover:opacity-100"> <span className="absolute inset-0 flex items-center justify-center bg-black/30 opacity-0 group-hover:opacity-100">
<span className="flex h-12 w-12 items-center justify-center rounded-full bg-white/10 backdrop-blur-sm"> <span className="flex h-12 w-12 items-center justify-center rounded-full bg-white/10 backdrop-blur-sm">
<Play className="h-6 w-6 text-white" strokeWidth={2} /> <Play className="h-6 w-6 fill-current text-white" strokeWidth={2} />
</span> </span>
</span> </span>
<span className="absolute right-2 bottom-2 rounded bg-black/60 px-2 py-1 text-xs text-white backdrop-blur-sm"> <span className="absolute right-1 top-1 rounded bg-black/60 px-2 py-1 text-xs text-white backdrop-blur-sm">
{duration} {duration}
</span> </span>
<div className="mt-4">
<h3 className="font-medium text-white text-sm mb-1">{title}</h3>
<p className="text-xs text-slate-400 leading-relaxed">{description}</p>
</div>
</button> </button>
); );
} }
@@ -140,65 +140,58 @@ export function PremiumPage() {
const features = [ const features = [
{ {
icon: CheckCircle2,
title: 'Chat with Roadmaps', title: 'Chat with Roadmaps',
description: description:
"Chat popup on every roadmap page let's you ask questions and get answers instantly", 'Ask questions and get instant answers on any roadmap',
videoId: 'fq0UgNcj3Ek', videoId: 'fq0UgNcj3Ek',
thumbnail: 'https://assets.roadmap.sh/guest/chat-with-roadmaps-ew2l9.png', thumbnail: 'https://assets.roadmap.sh/guest/chat-with-roadmaps-ew2l9.png',
duration: '2:17', duration: '2:17',
}, },
{ {
icon: Bot,
title: 'Unlimited AI Courses', title: 'Unlimited AI Courses',
description: description:
'No more paying for expensive courses, use the course creator to create unlimited courses', 'Create unlimited AI-powered courses on any topic',
videoId: 'uCcQNhdVUVQ', videoId: 'uCcQNhdVUVQ',
thumbnail: 'https://assets.roadmap.sh/guest/ai-courses-m07ra.png', thumbnail: 'https://assets.roadmap.sh/guest/ai-courses-m07ra.png',
duration: '3:07', duration: '3:07',
}, },
{ {
icon: Brain,
title: 'In-depth Guides', title: 'In-depth Guides',
description: description:
'Create in-depth learning guides tailored to your needs using AI', 'Generate personalized learning guides with AI',
videoId: '5kwYjCg2Lu4', videoId: '5kwYjCg2Lu4',
thumbnail: 'https://assets.roadmap.sh/guest/ai-guides-s4bjj.png', thumbnail: 'https://assets.roadmap.sh/guest/ai-guides-s4bjj.png',
duration: '1:33', duration: '1:33',
}, },
{ {
icon: Rocket,
title: 'AI as Learning Companion', title: 'AI as Learning Companion',
description: 'Learn even faster and perform actions on roadmaps using AI', description: 'Use AI-powered learning companion to accelerate your roadmap progress',
videoId: 'Jso_HRviEOE', videoId: 'Jso_HRviEOE',
thumbnail: 'https://assets.roadmap.sh/guest/roadmap-ai-tools-adhqq.png', thumbnail: 'https://assets.roadmap.sh/guest/roadmap-ai-tools-adhqq.png',
duration: '2:45', duration: '2:45',
startTime: '18', startTime: '18',
}, },
{ {
icon: Wand2,
title: 'Your Personal Coach', title: 'Your Personal Coach',
description: description:
'Get personalized career advice, roadmap suggestions and more to accelerate your growth', 'Get personalized career advice and growth recommendations',
videoId: '77VwAeFmoIw', videoId: '77VwAeFmoIw',
thumbnail: 'https://assets.roadmap.sh/guest/career-guidance-t2mpu.png', thumbnail: 'https://assets.roadmap.sh/guest/career-guidance-t2mpu.png',
duration: '3:45', duration: '3:45',
startTime: '4', startTime: '4',
}, },
{ {
icon: Book,
title: 'Learn Roadmap Topics', title: 'Learn Roadmap Topics',
description: description:
'AI Tutor inside roadmap nodes can help you learn things without leaving the roadmap', 'Learn topics directly within roadmap nodes using AI tutoring',
videoId: '0jZ1Lse1Y3E', videoId: '0jZ1Lse1Y3E',
thumbnail: 'https://assets.roadmap.sh/guest/smarter-roadmaps-f46ku.png', thumbnail: 'https://assets.roadmap.sh/guest/smarter-roadmaps-f46ku.png',
duration: '3:11', duration: '3:11',
}, },
{ {
icon: Book,
title: 'Test Yourself', title: 'Test Yourself',
description: description:
'Use AI to test your knowledge and prepare yourself for interviews', 'Test your knowledge and prepare for interviews',
videoId: 'ScruGC8uzjo', videoId: 'ScruGC8uzjo',
thumbnail: 'https://assets.roadmap.sh/guest/test-yourself-uwzqo.png', thumbnail: 'https://assets.roadmap.sh/guest/test-yourself-uwzqo.png',
duration: '2:15', duration: '2:15',
@@ -269,7 +262,6 @@ export function PremiumPage() {
{features.map((feature) => ( {features.map((feature) => (
<FeatureCard <FeatureCard
key={feature.videoId} key={feature.videoId}
Icon={feature.icon}
title={feature.title} title={feature.title}
description={feature.description} description={feature.description}
videoId={feature.videoId} videoId={feature.videoId}