Дашборд
+Дашборд
+Сводка по журналу и группам
+diff --git a/public/admin.css b/public/admin.css index f67b01a..03a94dc 100644 --- a/public/admin.css +++ b/public/admin.css @@ -233,4 +233,56 @@ body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;b .save-bar{position:fixed;left:calc(var(--sidebar) + 24px);right:24px;bottom:24px;z-index:60;display:none;align-items:center;justify-content:space-between;gap:16px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:12px 20px;box-shadow:0 10px 30px rgba(0,0,0,.14)} .save-bar.show{display:flex} .save-bar .hint{color:var(--muted);font-size:.85rem;display:inline-flex;align-items:center;gap:8px} -@media(max-width:640px){.save-bar{left:16px;right:16px}} \ No newline at end of file +@media(max-width:640px){.save-bar{left:16px;right:16px}} + +/* --- Дашборд --- */ +.dash-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:start} +.dash-col{display:flex;flex-direction:column;gap:20px;min-width:0} +.dash-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:16px} +.dash-card h3{font-size:1rem;font-weight:700;display:flex;align-items:center;gap:9px;margin:0} +.dash-card h3 .ic{width:30px;height:30px;border-radius:9px;background:rgba(37,99,235,.08);display:flex;align-items:center;justify-content:center;font-size:.95rem;flex-shrink:0} +.dash-empty{color:var(--muted);font-size:.82rem;padding:8px 0} +.dash-link-row{margin-top:2px;text-align:right} +.dash-link-row a{color:var(--accent);text-decoration:none;font-size:.8rem;font-weight:600} +.dash-link-row a:hover{text-decoration:underline} +.chart{display:flex;align-items:flex-end;gap:6px;height:150px} +.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0} +.bar{width:100%;max-width:28px;background:var(--accent);opacity:.35;border-radius:4px 4px 0 0;min-height:2px;transition:opacity .15s} +.bar:hover{opacity:1} +.bar.today{opacity:1} +.bar-day{font-size:.62rem;color:var(--muted);white-space:nowrap} +.recent{display:flex;flex-direction:column;gap:2px} +.recent-item{display:flex;align-items:center;gap:12px;padding:8px 6px;border-radius:10px;transition:background .15s} +.recent-item:hover{background:var(--bg)} +.recent-item img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex-shrink:0;cursor:pointer} +.recent-item .thumb{width:44px;height:44px;border-radius:8px;background:var(--bg);display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0} +.recent-item .r-info{flex:1;min-width:0} +.recent-item .r-name{font-weight:600;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.recent-item .r-meta{color:var(--muted);font-size:.75rem;margin-top:2px} +.recent-item .r-link{color:var(--accent);text-decoration:none;font-size:1.1rem;opacity:0;transition:opacity .15s} +.recent-item:hover .r-link{opacity:1} +.photos-grid-dash{display:grid;grid-template-columns:repeat(4,1fr);gap:8px} +.dash-photo{position:relative;border-radius:8px;overflow:hidden} +.dash-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;cursor:pointer;transition:opacity .15s} +.dash-photo img:hover{opacity:.85} +.dash-photo .pcap{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 5px;font-size:.62rem;font-weight:600;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.55));white-space:nowrap;overflow:hidden;text-overflow:ellipsis} +.actions-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px} +.action-btn{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px;background:var(--bg);border:1px solid var(--border);border-radius:12px;color:var(--text);text-decoration:none;font-size:.8rem;font-weight:600;transition:all .15s} +.action-btn .aic{font-size:1.3rem} +.action-btn:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px)} +.active-list{display:flex;flex-direction:column;gap:8px} +.active-item{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:9px 12px} +.active-item .a-name{font-weight:600;font-size:.86rem} +.active-item .a-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end} +.active-item .a-time{color:var(--muted);font-size:.76rem} +.active-item .a-now{font-size:.68rem;font-weight:700;color:#16a34a;background:rgba(22,163,74,.12);border-radius:999px;padding:3px 9px} +.top-list{display:flex;flex-direction:column;gap:6px} +.top-item{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:8px 12px} +.top-rank{width:22px;height:22px;border-radius:7px;background:var(--accent);color:#fff;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0} +.top-rank.alt{background:var(--border);color:var(--muted)} +.top-name{flex:1;min-width:0;font-size:.85rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.top-count{font-size:.8rem;font-weight:700;color:var(--accent)} +.stat .label a{color:var(--accent);text-decoration:none;font-weight:600} +.stat .label a:hover{text-decoration:underline} +@media(max-width:1100px){.dash-grid{grid-template-columns:1fr}} +@media(max-width:640px){.photos-grid-dash{grid-template-columns:repeat(2,1fr)}} \ No newline at end of file diff --git a/public/dashboard.html b/public/dashboard.html index fc8550e..3382948 100644 --- a/public/dashboard.html +++ b/public/dashboard.html @@ -10,24 +10,164 @@
Сводка по журналу и группам
+