feat: 코디 일교차 8도 이상이면 겉옷을 5번째 옷으로 그림·이름표에 포함(-outer 그림), 그림 프롬프트에 적힌 옷만 그리기 규칙, warm 꾸안꾸 겉옷 그림 4장

This commit is contained in:
minaChoi committed 2026-10-25 15:08:51 +09:00
1 parent 368a576bdb
commit aa9f22a166
11 files changed
+90 -31

No files matched your search

+4 -3
View File
@@ -8,7 +8,7 @@ import stillNight from '../assets/intro/still-night.webp'
import type { CardData } from './data'
import { Frame, Lines } from './Frame'
import { tidy } from './text'
import { DEFAULT_STYLE, ootdBand, ootdOutfits, styleLabel } from './ootd'
import { DEFAULT_STYLE, needsOuter, ootdBand, ootdOutfits, styleLabel } from './ootd'
import { gakArt, gakByCode } from './gaks'
// 대주제(skin)마다 한 번 만든 배경 그림 (npm run gen-image -- tarot-bg <skin>). 없으면 민무늬 배경
@@ -51,6 +51,7 @@ const ootd: Template = {
'서울(중구) 오늘 예보의 아침 6시~밤 9시 중 가장 높은 기온으로 7개 구간(28도 이상 · 23 · 17 · 12 · 9 · 5 · 그 아래) 중 하나를 고른다.',
'스타일(캐주얼·세미정장·정장·스트릿·꾸안꾸)을 고르면 바로 그 옷으로 바뀐다. Claude 기획은 쓰지 않는다.',
'구간 × 스타일 × 사람(20-30대·40대~ 여자·남자)마다 옷 4가지가 image-prompts/ootd.json에 정해져 있고, 같은 파일의 문장으로 Codex가 그린 그림(src/assets/ootd/<구간>-<사람>-<스타일>.webp)을 붙인다. 그림이 없으면 옷 이름만 나간다.',
'아침·낮 기온 차가 8도 이상이면 겉옷을 5번째 옷으로 그린 그림(<구간>-<사람>-<스타일>-outer.webp)을 쓰고 이름표에도 겉옷을 더한다.',
'카드에 지역 이름은 넣지 않는다.',
],
fields: [{ key: 'title', label: '제목 (사람·스타일 뒤에 붙음)' }],
@@ -64,14 +65,14 @@ const ootd: Template = {
hashtags: '#날씨각 #오늘의코디 #OOTD #데일리룩 #옷차림 #코디추천 #날씨 #오늘날씨 #서울날씨 #일상',
}),
warnings: (d, c) => {
const missing = ootdOutfits(d.maxC, c.style).filter((o) => !o.image)
const missing = ootdOutfits(d.maxC, c.style, undefined, needsOuter(d.maxC, d.morningC)).filter((o) => !o.image)
const id = `${ootdBand(d.maxC).id}`
return missing.length
? [`낮 최고 ${d.maxC}도 · ${styleLabel(c.style)}에 ${missing.map((o) => o.label).join(', ')} 옷 그림이 아직 없어요. 옷 이름만 나갑니다. (npm run gen-image -- ootd ${id} ${c.style ?? DEFAULT_STYLE})`]
: []
},
slides: (d, c) =>
ootdOutfits(d.maxC, c.style, c.band).map((o, i, all) => (
ootdOutfits(d.maxC, c.style, c.band, needsOuter(d.maxC, d.morningC)).map((o, i, all) => (
<Frame page={i} total={all.length} theme={c.theme} className="ootd" key={o.persona}>
<p className="meta">{d.dateLabel} · 오늘의 코디</p>
<h1 className="ootd-title">