Обновил шаблон для album_list.html и добавил функцию для cover_image в модели Album

This commit is contained in:
Viner Abubakirov
2026-01-02 15:29:09 +05:00
parent e67f5d5689
commit c36e236c3f
3 changed files with 81 additions and 10 deletions

View File

@@ -0,0 +1,46 @@
.album-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
}
.album-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;
}
.album-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.album-link {
text-decoration: none;
color: inherit;
display: block;
}
.album-cover {
width: 100%;
height: 220px;
object-fit: cover;
}
.album-info {
padding: 12px;
}
.album-name {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
}
.album-artist {
margin: 4px 0 0;
font-size: 0.9rem;
color: #666;
}