dika/public/base.html
peppa-bot 91a439695b
All checks were successful
peppa/lint lint: success за 0с
peppa/test test: success за 0с
peppa/build build: success за 0с
ci / checks (pull_request) Successful in 8s
deploy / deploy (pull_request) Successful in 17s
DIK-51: карточки на странице «Все заведения», таблица под «Подробная таблица»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:12:21 +00:00

57 lines
4.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#e8590c">
<title>Все заведения</title>
<style>
:root{--bg:#fff8f0;--ink:#2b2118;--mute:#7a6a5c;--accent:#e8590c;--card:#fff;--line:#f1e3d3}
@media (prefers-color-scheme:dark){:root{--bg:#1d1712;--ink:#f6ece2;--mute:#b3a293;--card:#2a2119;--line:#3b2f24}}
*{box-sizing:border-box}
body{font:15px/1.4 system-ui,sans-serif;margin:0;background:var(--bg);color:var(--ink)}
header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--accent);color:#fff}
header h1{font-size:19px;margin:0;flex:1}
header a{color:#fff;font-weight:600}
.langs{display:flex;gap:4px}
.langs button{min-width:40px;padding:6px 8px;border:1px solid #fff8;border-radius:8px;background:none;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.langs button.on{background:#fff;color:var(--accent);border-color:#fff}
main{padding:16px}
p{color:var(--mute);margin:0 0 8px}
.wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--card)}
table{border-collapse:collapse;width:100%;min-width:1200px}
th,td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
th{position:sticky;top:0;background:var(--card);font-size:13px;color:var(--mute)}
.src{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:0 0 16px}.src h2{font-size:16px;margin:0 0 8px}.src ul{margin:0;padding-left:20px}.src li{margin:4px 0}
.srcnote{font-size:12px;color:var(--mute);margin-top:4px}td a{color:var(--accent)}.web{font-size:12px;color:var(--mute);margin-top:4px}
.msg{padding:12px;background:#fff3bf;color:#4a3b00;border-radius:12px}
/* Карточки — как на главной (DIK-74, вариант «a»); общий стиль страницы — DIK-75 */
.list{--card:#fff;--ink:#1d2420;--mute:#5c665f;--line:#e3e7e3;--accent:#18864b;--accent-soft:#e6f4ec;--promo:#e8590c;--promo-ink:#fff;--r:16px;--shadow:0 1px 2px #0000000d,0 4px 16px #0000000f;
display:grid;gap:16px;margin:0 0 16px;font-size:16px;line-height:1.45}
@media (min-width:720px){.list{grid-template-columns:1fr 1fr}}
@media (min-width:1100px){.list{grid-template-columns:1fr 1fr 1fr}}
.card{display:flex;flex-direction:column;overflow:hidden;background:var(--card);color:var(--ink);border-radius:var(--r);border:1px solid var(--line);box-shadow:var(--shadow)}
.photo{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--accent-soft)}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo.stub{display:flex;align-items:center;justify-content:center;font-size:48px}
.body{padding:14px 16px 16px;min-width:0}
.card h2{font-size:19px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.meta{color:var(--mute);font-size:14px;margin-top:4px}
.badge{display:flex;align-items:flex-start;gap:6px;width:fit-content;max-width:100%;margin:10px 0 0;padding:6px 12px;border-radius:12px;font-size:15px;font-weight:700;line-height:1.3}
.badge.lunch{background:var(--accent-soft);color:var(--accent)}.badge.lunch::before{content:"🍽"}
.badge.promo{background:var(--promo);color:var(--promo-ink)}.badge.promo::before{content:"🏷"}
.offer-none{margin-top:8px}
details.table{margin:0 0 16px}details.table summary{cursor:pointer;font-weight:700;padding:10px 0;color:var(--accent)}
</style></head><body>
<header><h1 data-i="baseTitle"></h1><div class="langs"><button data-l="ru" class="on" aria-pressed="true" title="Русский" aria-label="Русский" lang="ru">RU</button><button data-l="kk" title="Қазақша" aria-label="Қазақша" lang="kk" aria-pressed="false">KK</button><button data-l="en" title="English" aria-label="English" lang="en" aria-pressed="false">EN</button></div><a href="/" data-i="backHome"></a></header>
<main>
<p data-i="baseIntro"></p><p id="count"></p>
<div id="err" class="msg" hidden></div>
<div id="cards" class="list"></div>
<section id="sources" class="src"><h2 data-i="srcTitle"></h2><p data-i="srcIntro"></p>
<ul><li data-i="srcGis"></li><li data-i="srcNews"></li><li data-i="srcMap"></li><li data-i="srcSite"></li><li data-i="srcSocial"></li><li data-i="srcCall"></li><li data-i="srcVisit"></li></ul></section>
<p data-i="srcPhotoNote"></p>
<details class="table"><summary data-i="baseTable"></summary>
<div class="wrap"><table><thead><tr id="head"></tr></thead><tbody id="rows"></tbody></table></div>
</details>
</main>
<script src="base.js" type="module"></script>
</body></html>