Card media contract: portrait frames, fullscreen viewer, platform placeholder
- content/projects frontmatter gains `media: portrait`; a 9:16 game shows a taller box (card 320px, dialog 520px) so the interface is not cropped. - Click a screenshot in the project dialog to open it full screen; click again to leave. The carousel keeps its arrows, dots and counter in full screen. The zoom button stays as the keyboard and screen-reader target. - A project without a confirmed platform shows a dashed `Ждём анонса` chip instead of an empty chip row (one constant: PLATFORM_TBD). - A card with no screenshots draws one empty dashed box: no fake carousel, no declared-but-missing image paths (removes the 4x404 console noise). - Filter facet body scrolls when the genre list outgrows 420px (25 genres made 17 chips unreachable under overflow:hidden). - Project order adds the new slugs; dialog note no longer claims that platforms are unconfirmed next to the shown platform chips.
This commit is contained in:
1 parent
f7800f6351
commit
fa82e16e9a
4 files changed
+139
-35
No files matched your search
+31
-2
@@ -433,6 +433,12 @@
|
||||
.case-card__shots{display:flex;flex-direction:column;gap:10px;min-width:0}
|
||||
.case-card__frame{position:relative;width:100%;aspect-ratio:4/3;border-radius:var(--radius-md);
|
||||
overflow:hidden;background:var(--bg)}
|
||||
/* Кадров нет вовсе → пустой бокс без карусели (main.js не рисует стрелки и точки). */
|
||||
.case-card__frame--empty{border:1px dashed var(--line-strong);background:none}
|
||||
/* Мобильная игра со скриншотами 9:16 (media: portrait): в 4:3-боксе с object-fit:cover
|
||||
срезались верх и низ интерфейса, поэтому бокс выше, а кадр вписан целиком. */
|
||||
.case-card--portrait .case-card__frame{aspect-ratio:auto;height:320px}
|
||||
.case-card--portrait .case-card__frame img{object-fit:contain}
|
||||
.case-card__frame > [data-i]{position:absolute;inset:0}
|
||||
.case-card__frame > [hidden][data-i]{display:none} /* перебивает display:flex у .qv-frame__ph */
|
||||
.case-card__frame img{width:100%;height:100%;object-fit:cover;display:block}
|
||||
@@ -509,9 +515,12 @@
|
||||
box-shadow:var(--shadow-tab);
|
||||
max-height:0;opacity:0;overflow:hidden;pointer-events:none;
|
||||
transition:max-height 260ms var(--motion-ease),opacity 150ms var(--motion-ease) 60ms}
|
||||
/* Открытая панель прокручивается: жанров 25, в 420 px они не влезают, а overflow:hidden
|
||||
делал нижние чипы недостижимыми (замер 2026-11-14: контент 866 px при окне 418). */
|
||||
.filters-panel:hover .filters__body,
|
||||
.filters-panel:focus-within .filters__body,
|
||||
.filters-panel.is-open .filters__body{max-height:420px;opacity:1;pointer-events:auto}
|
||||
.filters-panel.is-open .filters__body{max-height:min(420px,64vh);opacity:1;pointer-events:auto;
|
||||
overflow-y:auto;overscroll-behavior:contain}
|
||||
@media (prefers-reduced-motion: reduce){
|
||||
.filters__body{transition:none}
|
||||
}
|
||||
@@ -672,7 +681,13 @@
|
||||
реальный скриншот и слот-плейсхолдер занимают один и тот же бокс. */
|
||||
.qv-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius-md);overflow:hidden;
|
||||
background:var(--card)}
|
||||
/* Мобильная игра (media: portrait): рамка сама принимает 9:16, поэтому кадр занимает её
|
||||
целиком — скругление по краям остаётся, полей по бокам нет. */
|
||||
.quickview__grid--portrait .qv-frame{aspect-ratio:9/16;height:min(64vh,520px);width:auto;max-width:100%}
|
||||
.qv-frame > img{width:100%;height:100%;object-fit:cover;display:block}
|
||||
/* Кадр — переключатель полного экрана: курсор говорит об этом до клика. */
|
||||
.qv-frame > img{cursor:zoom-in}
|
||||
.qv-carousel:fullscreen, .qv-carousel:fullscreen .qv-frame{cursor:zoom-out}
|
||||
.qv-frame > [hidden]{display:none}
|
||||
.qv-frame__ph{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;
|
||||
justify-content:center;gap:6px;padding:16px 56px;text-align:center; /* 56px — зазор под стрелки */
|
||||
@@ -686,6 +701,17 @@
|
||||
.qv-carousel__nav:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px}
|
||||
.qv-carousel__nav--prev{left:6px}
|
||||
.qv-carousel__nav--next{right:6px}
|
||||
/* «На весь экран» — левый верхний угол кадра (правый занят счётчиком). */
|
||||
.qv-carousel__zoom{position:absolute;top:10px;left:10px;z-index:2;width:40px;height:40px;
|
||||
border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
|
||||
background:var(--card);border:1px solid var(--line-strong);color:var(--text-1)}
|
||||
.qv-carousel__zoom:hover{border-color:var(--brand-deep);color:var(--brand-deep)}
|
||||
.qv-carousel__zoom:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px}
|
||||
/* Полный экран: карусель занимает весь экран, кадр вписан целиком, стрелки и точки работают. */
|
||||
.qv-carousel:fullscreen{width:100vw;height:100vh;background:#0D0A06;padding:0}
|
||||
.qv-carousel:fullscreen .qv-frame{width:100%;height:100%;aspect-ratio:auto;border-radius:0;background:none}
|
||||
.qv-carousel:fullscreen .qv-frame > img{object-fit:contain}
|
||||
.qv-carousel:fullscreen .qv-carousel__zoom{display:none}
|
||||
/* Точки: цель нажатия 24×24 (WCAG 2.2 SC 2.5.8), визуально — прежний кружок 9px. */
|
||||
.qv-carousel__dots{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);display:flex;gap:2px}
|
||||
.qv-carousel__dot{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;
|
||||
@@ -714,6 +740,9 @@
|
||||
font-family:var(--font-head);font-weight:600;font-size:12px;letter-spacing:1px;
|
||||
text-transform:uppercase;color:var(--text-2)}
|
||||
.chip{min-height:32px}
|
||||
/* Заглушка «платформа не подтверждена»: пунктир отличает её от подтверждённого факта,
|
||||
текст остаётся --text-3 (≥4.5:1), чтобы не выглядел отключённым. */
|
||||
.chip--soon{border-style:dashed;color:var(--text-3)}
|
||||
.filter-chip{min-height:36px;cursor:pointer}
|
||||
.filter-chip:hover{border-color:var(--brand-deep);color:var(--brand-deep)}
|
||||
/* Три состояния одного выделения. Общее правило: У ВЫДЕЛЕННОГО ЧИПА ВСЕГДА ЕСТЬ ГРАНИЦА
|
||||
@@ -1229,7 +1258,7 @@
|
||||
<div class="section-head">
|
||||
<p class="eyebrow">Работы</p>
|
||||
<h2 class="h2" id="work-title">Наши проекты</h2>
|
||||
<p class="lead">Собственные разработки студии: четыре проекта в работе и две выпущенные игры. Платформы и стек указаны; скриншоты и метрики добавим по мере готовности. Откройте «Подробнее», чтобы посмотреть карточку проекта.</p>
|
||||
<p class="lead">Собственные разработки студии: проекты в работе и выпущенные игры. Платформы и стек указаны там, где команда их подтвердила; скриншоты и метрики добавляем по мере готовности. Откройте «Подробнее», чтобы посмотреть карточку проекта.</p>
|
||||
</div>
|
||||
<!-- Фильтры каталога (п.12 правок 2026-10-12; анатомия системы — 2026-10-14, §10.29): фасеты
|
||||
строит main.js из данных проектов. Панель — тот же `.faq-item`, что «О нас» и FAQ;
|
||||
|
||||
Reference in new issue
Block a user