feat: new branding and collapsible filter sidebar
This commit is contained in:
1 parent
d1aee28115
commit
e433ca3842
10 files changed
+335
-44
No files matched your search
+60
-19
@@ -10,7 +10,7 @@
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<span class="logo">SB</span>
|
||||
<img class="logo" src="/static/logo.svg" alt="" width="34" height="34">
|
||||
<span>SteamBase</span>
|
||||
</div>
|
||||
<nav class="tabs">
|
||||
@@ -20,12 +20,24 @@
|
||||
<div class="stats" id="stats"></div>
|
||||
</header>
|
||||
|
||||
<div id="filtersBackdrop" class="filters-backdrop" hidden></div>
|
||||
<main>
|
||||
<section id="libraryView" class="layout">
|
||||
<aside class="filters">
|
||||
<aside class="filters" id="filtersPanel">
|
||||
<div class="filter-head">
|
||||
<h2>Фильтры</h2>
|
||||
<button id="resetFilters" class="link">сбросить</button>
|
||||
<div class="filter-actions">
|
||||
<button id="filtersPin" class="icon-btn pin active" type="button"
|
||||
title="Открепить фильтры" aria-pressed="true">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" fill="none"
|
||||
stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M8 3h8l-1 6 3 3v2H6v-2l3-3-1-6Z"/>
|
||||
<path d="M12 14v7"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button id="filtersClose" class="icon-btn drawer-close" type="button" title="Закрыть фильтры">×</button>
|
||||
<button id="resetFilters" class="link">сбросить</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="field">
|
||||
@@ -55,31 +67,60 @@
|
||||
<label class="check"><input type="checkbox" id="fUnplayed"> не запускались</label>
|
||||
<label class="check"><input type="checkbox" id="fFavorite"> избранные</label>
|
||||
|
||||
<div class="details-progress">
|
||||
<div class="dp-head">Описания <span id="dpCount"></span></div>
|
||||
<div class="bar"><i id="dpBar"></i></div>
|
||||
<div class="dp-note" id="dpNote"></div>
|
||||
<button id="prefetch" class="link">догрузить / повторить</button>
|
||||
<div class="maintenance" id="maintenance">
|
||||
<button class="maintenance-toggle" id="maintenanceToggle" type="button"
|
||||
aria-expanded="false" aria-controls="maintenanceBody">
|
||||
<span class="maintenance-title">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" fill="none"
|
||||
stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 0 5.4-5.4l-2.2 2.2-2-2 2.2-2.2Z"/>
|
||||
</svg>
|
||||
Сервис и перевод
|
||||
</span>
|
||||
<svg class="chev" viewBox="0 0 24 24" width="16" height="16" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M6 9l6 6 6-6"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<div class="dp-head translate-head">Перевод <span id="trCount"></span></div>
|
||||
<div class="bar"><i id="trBar"></i></div>
|
||||
<div class="dp-note" id="trNote"></div>
|
||||
<button id="translate" class="link">перевести кратко</button>
|
||||
<button id="translateAbout" class="link">полные описания</button>
|
||||
<div class="maintenance-body" id="maintenanceBody" inert aria-hidden="true">
|
||||
<div class="maintenance-inner details-progress">
|
||||
<div class="dp-head">Описания <span id="dpCount"></span></div>
|
||||
<div class="bar"><i id="dpBar"></i></div>
|
||||
<div class="dp-note" id="dpNote"></div>
|
||||
<button id="prefetch" class="link">догрузить / повторить</button>
|
||||
|
||||
<div class="refresh-block">
|
||||
<div class="dp-head">База игр</div>
|
||||
<div class="refresh-actions">
|
||||
<button id="refreshInc" class="ghost">инкрементально</button>
|
||||
<button id="refreshFull" class="ghost">полностью</button>
|
||||
<div class="dp-head translate-head">Перевод <span id="trCount"></span></div>
|
||||
<div class="bar"><i id="trBar"></i></div>
|
||||
<div class="dp-note" id="trNote"></div>
|
||||
<button id="translate" class="link">перевести кратко</button>
|
||||
<button id="translateAbout" class="link">полные описания</button>
|
||||
|
||||
<div class="refresh-block">
|
||||
<div class="dp-head">База игр</div>
|
||||
<div class="refresh-actions">
|
||||
<button id="refreshInc" class="ghost">инкрементально</button>
|
||||
<button id="refreshFull" class="ghost">полностью</button>
|
||||
</div>
|
||||
<div class="dp-note" id="jobStatus"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dp-note" id="jobStatus"></div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="content">
|
||||
<div class="toolbar">
|
||||
<button id="filtersToggle" class="icon-btn" type="button" title="Скрыть фильтры"
|
||||
aria-controls="filtersPanel" aria-expanded="true">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" fill="none"
|
||||
stroke="currentColor" stroke-width="1.8" stroke-linecap="round">
|
||||
<path d="M4 7h16M4 12h16M4 17h16"/>
|
||||
<circle cx="9" cy="7" r="2.2" fill="var(--bg)"/>
|
||||
<circle cx="15" cy="12" r="2.2" fill="var(--bg)"/>
|
||||
<circle cx="8" cy="17" r="2.2" fill="var(--bg)"/>
|
||||
</svg>
|
||||
</button>
|
||||
<input id="search" type="search" placeholder="Поиск по названию…" autocomplete="off">
|
||||
<select id="sort">
|
||||
<option value="name">по названию</option>
|
||||
|
||||
Reference in new issue
Block a user