From a6bec147d6a05a7423c131e99119ee868cb59422 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 8 Apr 2026 02:28:39 +0200 Subject: [PATCH] feat(app): add SongCard component --- app/app/components/song-card.tsx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/app/components/song-card.tsx diff --git a/app/app/components/song-card.tsx b/app/app/components/song-card.tsx new file mode 100644 index 0000000..95bbbcb --- /dev/null +++ b/app/app/components/song-card.tsx @@ -0,0 +1,31 @@ +import { Link } from "react-router"; +import { Badge } from "~/components/ui/badge"; +import { Card, CardContent } from "~/components/ui/card"; +import type { SongSummary } from "~/lib/types"; + +interface Props { + song: SongSummary; +} + +export function SongCard({ song }: Props) { + return ( + + + +
+ {song.preview_chords.map((chord) => ( + + {chord} + + ))} +
+

{song.meta.title}

+

{song.meta.artist}

+ {song.meta.original_key && ( +

Key: {song.meta.original_key}

+ )} +
+
+ + ); +}