Skip to content

Commit 4d1cce4

Browse files
committed
refactor: 다중 의미 배지 강조 (TermCard)
'{n}개 의미' → '다중 의미 | {n}'. 보라색 솔리드 배경 + 화이트 도트 + 하드 그림자로 편집형 라벨 강도를 올려, 카드 그리드에서 즉시 식별되도록 함.
1 parent e666e18 commit 4d1cce4

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

src/components/TermCard.tsx

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,48 @@ export function TermCard({ term, hasDuplicateTranslation, query }: TermCardProps
9494
<Box
9595
sx={{
9696
flexShrink: 0,
97+
display: 'inline-flex',
98+
alignItems: 'center',
99+
gap: 0.75,
97100
fontFamily: 'var(--ff-mono)',
98-
fontSize: 10,
101+
fontSize: 11,
99102
fontWeight: 700,
100-
letterSpacing: '0.08em',
103+
letterSpacing: '0.1em',
101104
textTransform: 'uppercase',
102-
color: 'var(--ptk-purple)',
103-
bgcolor: 'rgba(129,44,229,0.08)',
104-
px: 1,
105-
py: 0.5,
106-
borderRadius: '999px',
105+
color: '#fff',
106+
bgcolor: 'var(--ptk-purple)',
107+
px: 1.25,
108+
py: 0.625,
109+
borderRadius: 0,
107110
whiteSpace: 'nowrap',
111+
lineHeight: 1,
112+
boxShadow: '2px 2px 0 0 rgba(129,44,229,0.18)',
108113
}}
114+
aria-label={`다중 의미 (${term.meanings.length}개)`}
109115
>
110-
{term.meanings.length}개 의미
116+
<Box
117+
component="span"
118+
sx={{
119+
width: 5,
120+
height: 5,
121+
bgcolor: '#fff',
122+
borderRadius: '50%',
123+
opacity: 0.95,
124+
}}
125+
/>
126+
다중 의미
127+
<Box
128+
component="span"
129+
sx={{
130+
pl: 0.75,
131+
ml: 0.25,
132+
borderLeft: '1px solid rgba(255,255,255,0.4)',
133+
fontWeight: 700,
134+
letterSpacing: '0.04em',
135+
}}
136+
>
137+
{term.meanings.length}
138+
</Box>
111139
</Box>
112140
)}
113141
</Box>

0 commit comments

Comments
 (0)