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
@@ -129,9 +129,15 @@ function loadProjects() {
|
||||
if (!existsSync(PROJ_DIR)) return [];
|
||||
// Порядок показа = порядок объектов на арте планеты (§10.11 / D18): грузовик World Wide
|
||||
// Wheels → жёлтый герой Moba → зелёная фишка BattleCaps → корабль TITANS (aquatherium).
|
||||
// Выпущенные игры (bukvika, associations) — явным хвостом после арт-четвёрки. Не алфавит
|
||||
// readdirSync: карточки в #work и плашка на планете должны идти в одном порядке.
|
||||
const ART_ORDER = ['ww-wheels', 'moba', 'battlecaps', 'aquatherium', 'bukvika', 'associations', 'first-step-radio'];
|
||||
// Дальше — выпущенные игры, затем малые игры в разработке в порядке описания студии (2026-11-14)
|
||||
// и зонтичный «Узурон». Не алфавит readdirSync: карточки в #work и плашка на планете идут в одном порядке.
|
||||
const ART_ORDER = [
|
||||
'ww-wheels', 'moba', 'battlecaps', 'aquatherium',
|
||||
'bukvika', 'associations', 'first-step-radio', 'numbers', 'eye-trainer',
|
||||
'hockey', 'tricky-blocks', 'photo-pairs', 'nornik',
|
||||
'reaction-trainer', 'towers-balance', '3d-pairs', 'cube-2048', 'tetroll',
|
||||
'crazy-grannies', 'uzuron',
|
||||
];
|
||||
const out = [];
|
||||
for (const f of readdirSync(PROJ_DIR).filter((x) => x.endsWith('.md') && !x.startsWith('_'))) {
|
||||
const { meta, body } = parseFrontmatter(join(PROJ_DIR, f));
|
||||
@@ -148,6 +154,7 @@ function loadProjects() {
|
||||
play: meta.play || '',
|
||||
video: meta.video || '',
|
||||
images: toList(meta.images).map(sitePath),
|
||||
media: String(meta.media || ''), // 'portrait' — скриншоты 9:16: карточка и окно дают бокс выше
|
||||
metrics: (meta.metrics && typeof meta.metrics === 'object') ? meta.metrics : '',
|
||||
summary: coerce(meta.summary),
|
||||
detail: publicDetail(body),
|
||||
|
||||
Reference in new issue
Block a user