feat: 코디 카드 옷 이름표를 그림 위 모서리 대신 그림 아래 목록 줄로(상의·겉옷·하의·신발·소품 순)

This commit is contained in:
minaChoi committed 2026-10-25 16:22:25 +09:00
1 parent 242129d036
commit 66125473eb
3 files changed
+41 -14

No files matched your search

+23 -7
View File
@@ -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;
+2 -1
View File
@@ -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`],
+16 -6
View File
@@ -79,13 +79,23 @@ const ootd: Template = {
<Lines text={`*${o.label}* ${styleLabel(c.style)}${c.title ? ` ${c.title}` : ''}`} />
</h1>
<div className="ootd-stage">
{o.image ? <img src={o.image} alt="" /> : null}
<div className={o.image ? 'ootd-labels' : 'ootd-labels only'}>
{o.labels.map((l) => (
<span key={l}>{l}</span>
))}
</div>
{o.image ? (
<img src={o.image} alt="" />
) : (
<div className="ootd-labels only">
{o.labels.map((l) => (
<span key={l}>{l}</span>
))}
</div>
)}
</div>
{o.image ? (
<ul className="ootd-items">
{o.labels.map((l) => (
<li key={l}>{l}</li>
))}
</ul>
) : null}
<p className="ootd-weather">
<img src={iconUrl(d.rainy ? 'rain' : d.maxC - d.morningC >= 8 ? 'sun_cloud' : 'sun')} alt="" />
<span>