diff --git a/music_storage/static/css/artist_list.css b/music_storage/static/css/artist_list.css new file mode 100644 index 0000000..8f3cc45 --- /dev/null +++ b/music_storage/static/css/artist_list.css @@ -0,0 +1,41 @@ +.artist-container { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 20px; +} + +.artist-card { + background: #ffffff; + border-radius: 10px; + overflow: hidden; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); + transition: transform 0.2s ease, box-shadow 0.2s ease; + text-align: center; +} + +.artist-card:hover { + transform: translateY(-4px); + box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15); +} + +.artist-link { + display: block; + text-decoration: none; + color: inherit; +} + +.artist-photo { + width: 100%; + height: 220px; + object-fit: cover; +} + +.artist-info { + padding: 12px; +} + +.artist-name { + margin: 0; + font-size: 1.1rem; + font-weight: 600; +} diff --git a/music_storage/templates/components/artist_list.html b/music_storage/templates/components/artist_list.html index e1628f1..ec22ab7 100644 --- a/music_storage/templates/components/artist_list.html +++ b/music_storage/templates/components/artist_list.html @@ -1,11 +1,27 @@ {% load static %} -
No artists available.
+ {% endfor %} +Genre: {{ artist.genre }}