From 5929e9af4cbc03678e87b9192e8fe58f602125c8 Mon Sep 17 00:00:00 2001 From: Jhonatan Jacome Date: Mon, 2 Dec 2024 21:02:30 -0500 Subject: [PATCH] Refactored SongItem layout for responsive design #27 --- .../(page)/explore/components/SongItem.tsx | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/frontend/src/app/(page)/explore/components/SongItem.tsx b/frontend/src/app/(page)/explore/components/SongItem.tsx index ce9f2e7..351d648 100644 --- a/frontend/src/app/(page)/explore/components/SongItem.tsx +++ b/frontend/src/app/(page)/explore/components/SongItem.tsx @@ -1,4 +1,3 @@ -// SongItem.tsx import React from "react"; import Image from "next/image"; import { Heart } from "lucide-react"; @@ -27,16 +26,14 @@ const SongItem: React.FC = ({
-
- {/* Imagen de la canción */} -
+
+
Album art = ({ />
- {/* Corazón para marcar favorito */} - { - e.stopPropagation(); - onFavoriteToggle(); - }} - /> +
+ { + e.stopPropagation(); + onFavoriteToggle(); + }} + /> +
- {/* Contenedor de la canción */} -
- {/* Título de la canción */} -
-

{title}

+
+
+ {title}
- - {/* Género */} -
+
{genre}
+
+ +
+ {genre} +
- {/* Duración */} -
{duration}
+
+ {duration}