Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
## 2024-07-10 - prefers-reduced-motion 지원 μΆ”κ°€
**Learning:** μ‹œμŠ€ν…œ λ ˆλ²¨μ—μ„œ μ• λ‹ˆλ©”μ΄μ…˜ 쀄이기(prefers-reduced-motion)λ₯Ό μ„€μ •ν•œ μ‚¬μš©μžλ₯Ό μœ„ν•΄ κ³Όλ„ν•œ μ• λ‹ˆλ©”μ΄μ…˜κ³Ό λΆ€λ“œλŸ¬μš΄ μŠ€ν¬λ‘€μ„ λΉ„ν™œμ„±ν™”ν•˜λŠ” 것이 ν•„μš”ν•©λ‹ˆλ‹€. μ΄λ•Œ `0s` λŒ€μ‹  `0.01ms`λ₯Ό μ‚¬μš©ν•˜μ—¬ `transitionend`와 같은 λΈŒλΌμš°μ € μ΄λ²€νŠΈκ°€ μ •μƒμ μœΌλ‘œ λ°œμƒν•˜λ„λ‘ ν•΄μ•Ό μžλ°”μŠ€ν¬λ¦½νŠΈ 콜백이 λ©ˆμΆ”λŠ”(hanging) 문제λ₯Ό λ°©μ§€ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
**Action:** 항상 `styles.css` ν•˜λ‹¨μ— `prefers-reduced-motion: reduce` λ―Έλ””μ–΄ 쿼리λ₯Ό μΆ”κ°€ν•˜μ—¬ λͺ¨λ“  μš”μ†Œμ˜ `animation-duration`κ³Ό `transition-duration`을 `0.01ms`둜 μ„€μ •ν•˜κ³  `scroll-behavior: auto`λ₯Ό μ μš©ν•©λ‹ˆλ‹€.

## 2026-07-28 - λ²„νŠΌ active μ‹œκ°μ  ν”Όλ“œλ°±
**Learning:** λ²„νŠΌμ„ 클릭할 λ•Œ 즉각적인 ν”Όλ“œλ°±μ΄ μ—†μœΌλ©΄ ν„°μΉ˜λ‚˜ 클릭이 μ œλŒ€λ‘œ μΈκ°€λ˜μ—ˆλŠ”μ§€ μΈμ§€ν•˜κΈ° μ–΄λ ΅μŠ΅λ‹ˆλ‹€. `:active` 가상 ν΄λž˜μŠ€μ™€ μ•½κ°„μ˜ `scale` λ³€ν™˜(예: `transform: scale(0.97)`)을 κ²°ν•©ν•˜λ©΄ κ°„λ‹¨ν•˜λ©΄μ„œλ„ 효과적인 마이크둜 UX κ°œμ„ μ΄ κ°€λŠ₯ν•©λ‹ˆλ‹€.
**Action:** μΈν„°λž™ν‹°λΈŒν•œ λ²„νŠΌ μš”μ†Œμ—λŠ” κ°€λ²Όμš΄ `:active` μŠ€μΌ€μΌ μ• λ‹ˆλ©”μ΄μ…˜μ„ λ„£μ–΄ μ‚¬μš©μžκ°€ λˆ„λ₯΄λŠ” 감각(tactile feedback)을 λŠλ‚„ 수 μžˆλ„λ‘ ν•©λ‹ˆλ‹€.
12 changes: 10 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,17 @@ a {
font-size: 13px;
font-weight: 850;
cursor: pointer;
transition: opacity 0.2s;
transition: opacity 0.2s, transform 0.1s ease;
}

.language-switch button:not([aria-pressed="true"]):hover {
opacity: 0.8;
}

.language-switch button:active {
transform: scale(0.95);
}

.language-switch button[aria-pressed="true"] {
background: var(--ink);
color: var(--white);
Expand Down Expand Up @@ -218,13 +222,17 @@ h1 {
text-decoration: none;
font-size: 15px;
font-weight: 800;
transition: opacity 0.2s;
transition: opacity 0.2s, transform 0.1s ease;
}

.button:hover {
opacity: 0.8;
}

.button:active {
transform: scale(0.97);
}

.button.primary {
background: var(--ink);
color: var(--white);
Expand Down
Loading