feat(app): Add yandex music status
Build, Test and Push Flask App / docker-build-and-push (push) Successful in 1m34s
Build, Test and Push Flask App / deploy (push) Successful in 4m2s

This commit is contained in:
Black_Raven committed 2026-10-07 22:25:00 +03:00
1 parent 76032d9869
commit f2e433d1e4
8 files changed
+632 -1

No files matched your search

+214
View File
@@ -673,6 +673,220 @@ img.card-icon { border-radius: 12px; }
color: #b6beff;
}
/* ---------- трекер Яндекс Музыки ---------- */
.ym-tracker {
max-width: 880px;
margin: 0 auto;
padding: 0 24px;
}
.ym-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.ym-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ym-title h2 {
font-size: clamp(1.1rem, 3vw, 1.4rem);
letter-spacing: -0.02em;
}
.ym-live {
display: inline-flex;
align-items: center;
gap: 7px;
font-family: var(--mono);
font-size: .68rem;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--accent);
padding: 4px 10px;
border-radius: 999px;
background: rgba(94, 234, 212, .08);
border: 1px solid rgba(94, 234, 212, .3);
}
.ym-tabs {
display: inline-flex;
gap: 4px;
padding: 3px;
border-radius: 999px;
background: rgba(255, 255, 255, .04);
border: 1px solid var(--card-border);
}
.ym-tab {
font-family: var(--mono);
font-size: .72rem;
letter-spacing: .06em;
padding: 5px 14px;
border-radius: 999px;
border: none;
background: transparent;
color: var(--muted);
cursor: pointer;
transition: color .2s, background .2s;
}
.ym-tab:hover { color: var(--text); }
.ym-tab.active {
background: rgba(94, 234, 212, .12);
color: var(--accent);
}
.ym-meta {
display: flex;
align-items: center;
gap: 10px;
font-family: var(--mono);
font-size: .74rem;
color: var(--muted);
}
.ym-refresh {
font: inherit;
color: var(--muted);
background: rgba(255, 255, 255, .04);
border: 1px solid rgba(255, 255, 255, .1);
border-radius: 8px;
padding: 3px 9px;
cursor: pointer;
transition: color .2s, border-color .2s;
}
.ym-refresh:hover { color: var(--accent); border-color: rgba(94, 234, 212, .4); }
.ym-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
counter-reset: ym;
}
.ym-status {
font-family: var(--mono);
font-size: .84rem;
color: var(--muted);
padding: 18px;
text-align: center;
background: var(--card);
border: 1px dashed var(--card-border);
border-radius: var(--radius);
}
.ym-status.ym-error { color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.ym-track { counter-increment: ym; }
.ym-link {
display: flex;
align-items: center;
gap: 14px;
padding: 10px 14px;
background: var(--card);
border: 1px solid var(--card-border);
border-radius: 14px;
transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.ym-link::before {
content: counter(ym, decimal-leading-zero);
font-family: var(--mono);
font-size: .74rem;
color: var(--muted);
min-width: 22px;
}
.ym-link:hover {
transform: translateX(4px);
border-color: rgba(94, 234, 212, .4);
background: rgba(94, 234, 212, .06);
}
.ym-cover {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
background: rgba(255, 255, 255, .06);
}
.ym-cover-empty {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--accent);
font-size: 1.1rem;
}
.ym-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ym-track-title {
font-weight: 600;
font-size: .95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ym-artists {
font-size: .82rem;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ym-context { font-family: var(--mono); font-size: .74rem; }
.ym-day {
font-family: var(--mono);
font-size: .72rem;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--muted);
flex-shrink: 0;
}
.ym-day.ym-now {
color: var(--accent);
animation: ym-blink 1.6s ease-in-out infinite;
}
.ym-track.ym-playing .ym-link {
border-color: rgba(94, 234, 212, .45);
background: rgba(94, 234, 212, .06);
}
@keyframes ym-blink {
0%, 100% { opacity: 1; }
50% { opacity: .45; }
}
.ym-track.ym-new .ym-link {
animation: ym-pop .6s cubic-bezier(.22, 1, .36, 1);
border-color: rgba(94, 234, 212, .55);
box-shadow: 0 0 0 3px rgba(94, 234, 212, .12);
}
@keyframes ym-pop {
from { opacity: 0; transform: translateY(-8px) scale(.98); }
to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
.ym-day { display: none; }
.ym-link { padding: 9px 11px; gap: 10px; }
}
/* ---------- кнопка друга ---------- */
.friend-cta {
display: flex;