Skip to content

feat: create Learning Track Card Component#213

Open
D240021 wants to merge 1 commit intoMentoNest:mainfrom
D240021:main
Open

feat: create Learning Track Card Component#213
D240021 wants to merge 1 commit intoMentoNest:mainfrom
D240021:main

Conversation

@D240021
Copy link
Copy Markdown

@D240021 D240021 commented Mar 29, 2026

Issue

Closes #194

Summary

Implemented a reusable Learning Track Card component for displaying track metadata and a primary call to action, aligned with the provided design (image, category pill, typography, metadata row, and purple “Start Learning” control).

Changes

  • Added components/LearningTrackCard.tsx, a client component that composes next/image (16:9 via aspect-video), category badges for Beginner / Intermediate / Advanced, title, single-line description, lesson count and duration on one row, and a full-width Start Learning button styled with #9d17ff (hover and focus states).
  • Card shell uses white background, rounded-xl, shadow, and overflow-hidden so the image matches the card corners; layout uses responsive padding and sizes on the image for different viewport widths.
  • API: props for image (imageSrc, imageAlt), category, title, description, lessonCount, durationLabel, optional href (renders as Link) or onStartLearning (renders as <button>), and optional className on the root.

Notes

No integration into a specific page was part of this work; the component is ready to be imported wherever learning tracks are listed.

I remain open to any corrections or feedback you may have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Learning Track Card Component

1 participant