diff --git a/admin/src/cards/cards.css b/admin/src/cards/cards.css index 20fd52a..327ecdd 100644 --- a/admin/src/cards/cards.css +++ b/admin/src/cards/cards.css @@ -133,7 +133,7 @@ top: 350px; left: 80px; width: 920px; - height: 840px; + height: 800px; border-radius: 44px; overflow: hidden; background: var(--stage); @@ -156,12 +156,28 @@ .ootd-labels span:nth-child(even) { justify-self: end; } -/* 겉옷(5번째) 이름표는 위 가운데 */ -.ootd-labels span:nth-child(5) { +/* 그림 아래 옷 목록: 그림 속 위치에 기대지 않고 따로 적는다 */ +.ootd-items { position: absolute; - top: 0; - left: 50%; - transform: translateX(-50%); + top: 1168px; + left: 80px; + right: 80px; + margin: 0; + padding: 0; + list-style: none; + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 10px; +} +.ootd-items li { + padding: 8px 18px; + border-radius: 99px; + background: #fff; + font-size: 28px; + font-weight: 700; + box-shadow: 0 6px 16px #28304a1f; + white-space: nowrap; } .ootd-labels span { padding: 8px 20px; @@ -461,7 +477,7 @@ position: absolute; left: 80px; right: 80px; - bottom: 64px; + bottom: 40px; display: flex; align-items: center; gap: 18px; diff --git a/admin/src/cards/ootd.ts b/admin/src/cards/ootd.ts index f01f4c8..c8049c7 100644 --- a/admin/src/cards/ootd.ts +++ b/admin/src/cards/ootd.ts @@ -37,7 +37,8 @@ export function ootdOutfits(maxC: number, style?: string, bandId?: string, withO return { persona: p, label: spec.personas[p].label, - labels: withOuter ? [...o.labels, o.outer] : o.labels, + // 그림 윗줄 순서(상의 · 겉옷 · 하의)와 같게 겉옷을 두 번째에 + labels: withOuter ? [o.labels[0], o.outer, ...o.labels.slice(1)] : o.labels, outer: o.outer, imageId, image: IMAGES[`../assets/ootd/${imageId}.webp`], diff --git a/admin/src/cards/templates.tsx b/admin/src/cards/templates.tsx index d1f2a4f..e2b887d 100644 --- a/admin/src/cards/templates.tsx +++ b/admin/src/cards/templates.tsx @@ -79,13 +79,23 @@ const ootd: Template = {
- {o.image ? : null} -
- {o.labels.map((l) => ( - {l} - ))} -
+ {o.image ? ( + + ) : ( +
+ {o.labels.map((l) => ( + {l} + ))} +
+ )}
+ {o.image ? ( + + ) : null}

= 8 ? 'sun_cloud' : 'sun')} alt="" />