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-14 - Fitts's Law on Project Cards
**Learning:** Links nested deeply inside distinct visual containers (like cards) violate Fitts's Law because they offer a tiny clickable target.
**Action:** When styling card grids (`.project-grid`), use a pseudo-element (`::before` with `inset: 0`) on the primary link inside an `article` (with `position: relative`) to expand the clickable area to cover the entire card. Combine this with `:hover` and `:focus-within` transitions to provide adequate feedback to the user.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ venv/
.codegraph/
__pycache__/
*.py[cod]
test_venv/
17 changes: 17 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,23 @@ h1 {
line-height: 1.16;
}

.project-grid article {
position: relative;
transition: background-color 0.2s ease;
}

.project-grid article:hover,
.project-grid article:focus-within {
background-color: var(--paper);
}

.project-grid h3 a::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
}

.project-grid h3 a {
color: inherit;
text-decoration-thickness: 1px;
Expand Down
Loading