Filters: the panel is a bar (status segment, always visible) plus a body that lives as a layer under it - collapsed by default, expands on hover/focus/tap and never moves the case grid; the reset control appears only when a facet is limited; width capped at 720px (measured 45px slack against 477px before). Facet research report is included. Links: project links in the mini card and in the project window are icon-only buttons with a uniform slot (16px card / 18px window) and the accessible name in aria-label; studio contacts (mail, VK, RuStore) live outside the cards. Team and page: real photos from the public TITANS team page go to the member window while the card keeps the mascot; the portfolio gains the First Step Radio card and genre values, the process block became an individual-approach section, plus a cookie bar and a removable ticker. Design folders under design/ keep reports, measurements, scripts and the .pen; probe and before/after screenshot dumps, editor backups and caches are removed. Background-variant and palette previews stay until the client picks one.
69 lines
7.8 KiB
HTML
69 lines
7.8 KiB
HTML
<!doctype html>
|
||
<meta charset="utf-8">
|
||
<title>probe: tile vs glyph project-link buttons</title>
|
||
<style>
|
||
:root{
|
||
--bg:#F5EEE2;--card:#FFFCF7;--hairline:#E6DCCE;--text-1:#1F1B13;--text-2:#5A5344;--text-3:#8A8069;
|
||
--brand:#00CC66;--brand-strong:#00b25a;--brand-active:#009e50;--brand-deep:#007A3F;--brand-ink:#00562C;
|
||
--on-brand:#04180C;--ghost-hover:rgba(0,122,63,.09);--radius-md:10px;
|
||
--font-head:"Nunito",system-ui;
|
||
}
|
||
.dark{
|
||
--bg:#181109;--card:#1F160D;--hairline:#332719;--text-1:#F8F2E7;--text-2:#D5C4AC;--text-3:#AA9679;
|
||
--brand:#22B46B;--brand-strong:#1DA561;--brand-active:#1A9E60;--brand-deep:#49CA85;--brand-ink:#6FE0A4;
|
||
--on-brand:#04180C;--ghost-hover:rgba(73,202,133,.12);
|
||
}
|
||
body{margin:0;background:var(--bg);color:var(--text-1);font:14px/1.4 system-ui}
|
||
.sec{padding:22px 24px;border-bottom:1px solid var(--hairline)}
|
||
.sec.dark{background:var(--bg)}
|
||
.label{font:600 11px/1 var(--font-head);letter-spacing:1.5px;text-transform:uppercase;color:var(--text-3);margin-bottom:12px}
|
||
.board{background:var(--card);border:1px solid var(--hairline);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:14px}
|
||
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 26px;
|
||
border-radius:var(--radius-md);font-family:var(--font-head);font-weight:700;font-size:14px;letter-spacing:1px;
|
||
text-transform:uppercase;line-height:1;cursor:pointer;border:2px solid transparent;text-decoration:none}
|
||
.btn--primary{background:var(--brand);color:var(--on-brand)}
|
||
.btn--ghost{background:transparent;color:var(--brand-deep);border-color:var(--brand-deep)}
|
||
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}
|
||
.mini .btn{min-height:36px;padding:8px 14px;font-size:12px}
|
||
.btn__icon{display:block;flex:none;height:18px;width:auto}
|
||
.mini .btn__icon{height:16px}
|
||
.cap{font-size:12px;color:var(--text-3)}
|
||
</style>
|
||
<script>
|
||
const P = {
|
||
rustoreTile: '<path d="m42.2 88c-19.9 0-29.9 0-36.1-6.19-6.19-6.19-6.19-16.1-6.19-36.1l-1.6e-7 -3.52c-8.7e-7 -19.9-1.32e-6 -29.9 6.19-36.1 6.19-6.19 16.1-6.19 36.1-6.19h1e-4l3.52-1.5e-7c19.9-8.7e-7 29.9-1.29e-6 36.1 6.19 6.19 6.19 6.19 16.1 6.19 36.1v3.52c0 19.9 0 29.9-6.19 36.1s-16.1 6.19-36.1 6.19z m9 16.1c-2.3-.0226-4.3 1.83-4.3 4.25v5.17l-10.8-2.69c-.336-.0838-.671-.126-1-.129-2.3-.0226-4.3 1.83-4.3 4.25v5.15l-10.7-2.67c-2.69-.67-5.3 1.36-5.3 4.12v28.7c0 2.44 1.66 4.56 4.03 5.15l17.1 4.26c2.69.67 5.3-1.36 5.3-4.12v-28.7c0-1.75-.857-3.33-2.21-4.3-.0216-.0707-.0167-.149 .0273-.213 .075-.109 .21-.161 .336-.123 2.25.68 4.39 2.98 4.61 5.88l.742 21.9c.0191.734 .509 1.36 1.2 1.59l6 1.49c2.69.67 5.3-1.36 5.3-4.12 .0708-9.47 .0504-19.1 .0528-28.6 0-1.29-.436-2.28-.926-3-.0794-.12-.163-.238-.252-.352-.107-.136-.224-.265-.344-.391-.179-.188-.37-.367-.576-.527-.0014-.0011-.0025-.0028-.0039-.0039-.0848-.0852-.109-.218-.0391-.318 .075-.109 .21-.161 .336-.123 2.25.68 4.4 2.98 4.61 5.88l.742 21.9c.019 .728 .504 1.35 1.19 1.57l6.01 1.5c2.69.67 5.3-1.36 5.3-4.12v-28.7c0-2.44-1.66-4.56-4.03-5.15l-17.1-4.26c-.336-.0838-.671-.126-1-.129z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"/>',
|
||
rustoreGlyph: '<path d="m51.2 16.1c-2.3-0.0226-4.3 1.83-4.3 4.25v5.17l-10.8-2.69c-0.336-0.0838-0.671-0.126-1-0.129-2.3-0.0226-4.3 1.83-4.3 4.25v5.15l-10.7-2.67c-2.69-0.67-5.3 1.36-5.3 4.12v28.7c0 2.44 1.66 4.56 4.03 5.15l17.1 4.26c2.69 0.67 5.3-1.36 5.3-4.12v-28.7c0-1.75-0.857-3.33-2.21-4.3-0.0216-0.0707-0.0167-0.149 0.0273-0.213 0.075-0.109 0.21-0.161 0.336-0.123 2.25 0.68 4.39 2.98 4.61 5.88l0.742 21.9c0.0191 0.734 0.509 1.36 1.2 1.59l6 1.49c2.69 0.67 5.3-1.36 5.3-4.12 0.0708-9.47 0.0504-19.1 0.0528-28.6 0-1.29-0.436-2.28-0.926-3-0.0794-0.12-0.163-0.238-0.252-0.352-0.107-0.136-0.224-0.265-0.344-0.391-0.179-0.188-0.37-0.367-0.576-0.527-0.0014-0.0011-0.0025-0.0028-0.0039-0.0039-0.0848-0.0852-0.109-0.218-0.0391-0.318 0.075-0.109 0.21-0.161 0.336-0.123 2.25 0.68 4.4 2.98 4.61 5.88l0.742 21.9c0.019 0.728 0.504 1.35 1.19 1.57l6.01 1.5c2.69 0.67 5.3-1.36 5.3-4.12v-28.7c0-2.44-1.66-4.56-4.03-5.15l-17.1-4.26c-0.336-0.0838-0.671-0.126-1-0.129z" fill="currentColor"/>',
|
||
vkTile: '<path d="m9.489.004.729-.003h3.564l.73.003.914.01.433.007.418.011.403.014.388.016.374.021.36.025.345.03.333.033c1.74.196 2.933.616 3.833 1.516.9.9 1.32 2.092 1.516 3.833l.034.333.029.346.025.36.02.373.025.588.012.41.013.644.009.915.004.98-.001 3.313-.003.73-.01.914-.007.433-.011.418-.014.403-.016.388-.021.374-.025.36-.03.345-.033.333c-.196 1.74-.616 2.933-1.516 3.833-.9.9-2.092 1.32-3.833 1.516l-.333.034-.346.029-.36.025-.373.02-.588.025-.41.012-.644.013-.915.009-.98.004-3.313-.001-.73-.003-.914-.01-.433-.007-.418-.011-.403-.014-.388-.016-.374-.021-.36-.025-.345-.03-.333-.033c-1.74-.196-2.933-.616-3.833-1.516-.9-.9-1.32-2.092-1.516-3.833l-.034-.333-.029-.346-.025-.36-.02-.373-.025-.588-.012-.41-.013-.644-.009-.915-.004-.98.001-3.313.003-.73.01-.914.007-.433.011-.418.014-.403.016-.388.021-.374.025-.36.03-.345.033-.333c.196-1.74.616-2.933 1.516-3.833.9-.9 2.092-1.32 3.833-1.516l.333-.034.346-.029.36-.025.373-.02.588-.025.41-.012.644-.013.915-.009ZM6.79 7.3H4.05c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92Z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"/>',
|
||
vkGlyph: '<path d="M6.79 7.3H4.05c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92Z" fill="currentColor"/>',
|
||
site: '<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><ellipse cx="12" cy="12" rx="4" ry="9"/>',
|
||
video: '<rect x="2" y="5" width="14" height="14" rx="2.5"/><path d="M16 10.5 22 7v10l-6-3.5z"/>',
|
||
};
|
||
const SVGS = {
|
||
tile: {rustore:['0 0 88 88',P.rustoreTile,false], vk:['0 0 24 24',P.vkTile,false], site:['0 0 24 24',P.site,true], video:['0 0 24 24',P.video,true]},
|
||
glyph: {rustore:['14.65 15.95 58.835 55.99',P.rustoreGlyph,false], vk:['3.9 7.15 16.31 10.29',P.vkGlyph,false], site:['0 0 24 24',P.site,true], video:['0 0 24 24',P.video,true]},
|
||
};
|
||
const LABEL = {rustore:'В RuStore', vk:'Играть во VK', site:'Сайт проекта', video:'Видео'};
|
||
function link(kind, key, cls, set) {
|
||
const [vb, body, stroke] = SVGS[set][key];
|
||
const attrs = stroke ? 'fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"' : '';
|
||
return '<a class="btn ' + cls + '" href="#" ' + attrs + '><svg class="btn__icon" viewBox="' + vb + '" ' + attrs + ' aria-hidden="true" focusable="false">' + body + '</svg>' + LABEL[key] + '</a>';
|
||
}
|
||
function row(set, cls, keys, kind) { return '<div class="row ' + (kind || '') + '">' + keys.map(k => link(kind, k, cls, set)).join('') + '</div>'; }
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
const host = document.getElementById('out');
|
||
const sets = [['tile', 'ТАЙЛ (официальный знак целиком)'], ['glyph', 'ГЛИФ (только силуэт знака)']];
|
||
for (const [set, title] of sets) {
|
||
for (const [dark, theme] of [[false, 'светлая'], [true, 'тёмная']]) {
|
||
host.insertAdjacentHTML('beforeend',
|
||
'<div class="sec ' + (dark ? 'dark' : '') + '"><div class="label">' + title + ' · ' + theme +
|
||
' · мини-карточка (ghost, 36px)</div><div class="board mini">' +
|
||
row(set, 'btn--ghost', ['rustore', 'vk']) +
|
||
'</div><div class="label" style="margin-top:16px">большое окно (первая — primary, 48px)</div>' +
|
||
'<div class="board">' + row(set, 'btn--primary', ['site'], '') + row(set, 'btn--ghost', ['rustore', 'vk', 'video']) +
|
||
'</div></div>');
|
||
}
|
||
}
|
||
});
|
||
</script>
|
||
<div id="out"></div>
|