Немножко разбросал track_list.html по шаблонам

This commit is contained in:
Viner Abubakirov
2026-01-02 03:35:19 +05:00
parent 0c59bc5e77
commit 8af3cbee92
6 changed files with 445 additions and 490 deletions

View File

@@ -25,7 +25,7 @@ header {
color: white;
border-radius: 10px;
margin-bottom: 30px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
h1 {
@@ -59,7 +59,7 @@ h1 {
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
transition: background 0.3s ease, transform 0.2s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.nav-link:hover {
@@ -69,4 +69,10 @@ h1 {
.nav-link:active {
transform: translateY(0);
}
@media (max-width: 768px) {
.container {
padding: 15px;
}
}

View File

@@ -0,0 +1,141 @@
.player-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(135deg, #bbc0d4 0%, #bab5c0 75%);
color: white;
padding: 15px 20px;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
z-index: 1000;
transition: all 0.3s ease;
}
.player-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.current-track {
font-weight: 600;
font-size: 1.1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.current-artist {
font-size: 0.9rem;
opacity: 0.9;
}
.audio-player {
width: 100%;
margin: 0;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.player-controls {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
flex-wrap: wrap;
gap: 10px;
}
.player-time {
font-size: 0.85rem;
opacity: 0.9;
min-width: 60px;
}
.player-buttons {
display: flex;
gap: 10px;
}
.control-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.control-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
@media (max-width: 768px) {
.player-container {
padding: 12px 15px;
}
}
.player-controls {
display: flex;
justify-content: center;
margin-top: 10px;
}
.player-buttons {
display: flex;
gap: 15px;
}
.control-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 42px;
height: 42px;
border-radius: 50%;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all .2s ease;
}
.control-btn:hover {
background: rgba(255, 255, 255, 0.35);
transform: scale(1.15);
}
.player-header {
text-align: center;
margin-bottom: 5px;
}
.player-header .current-track {
font-size: 1.2rem;
font-weight: bold;
}
.player-header .current-artist {
opacity: .9;
}
@media (max-width: 768px) {
.player-header .current-track {
font-size: 1.1rem;
}
.player-header .current-artist {
font-size: 0.9rem;
}
}

View File

@@ -0,0 +1,89 @@
.track-list {
list-style: none;
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
overflow: hidden;
margin-bottom: 30px;
}
.track-item {
padding: 20px;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
gap: 20px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.track-item:last-child {
border-bottom: none;
}
.track-item:hover {
background-color: #f8f9fa;
transform: translateX(5px);
}
.track-item.active::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(135deg, #bbc0d4 0%, #bab5c0 100%);
}
.track-item.playing {
background-color: #e3f2fd;
}
.track-item.playing .track-title {
color: #667eea;
}
.track-info {
flex: 1;
}
.track-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 5px;
font-size: 1.1rem;
}
.track-artist {
color: #7f8c8d;
font-size: 0.95rem;
}
.empty-state {
text-align: center;
padding: 50px 20px;
color: #7f8c8d;
}
.empty-state i {
font-size: 3rem;
margin-bottom: 15px;
color: #bdc3c7;
}
.empty-state p {
font-size: 1.1rem;
margin-top: 10px;
}
@media (max-width: 768px) {
.track-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
padding: 15px;
}
}