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`๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค.

## 2024-05-30 - ์นด๋“œ ์ปดํฌ๋„ŒํŠธ์˜ ํด๋ฆญ ๊ฐ€๋Šฅ ์˜์—ญ ํ™•์žฅ
**Learning:** ๊ทธ๋ฆฌ๋“œ๋‚˜ ๋ฆฌ์ŠคํŠธ ํ˜•์‹์˜ ์นด๋“œ ์ปดํฌ๋„ŒํŠธ์—์„œ ๋งํฌ ํ…์ŠคํŠธ์—๋งŒ ํด๋ฆญ ์ด๋ฒคํŠธ๋ฅผ ๋ฐ”์ธ๋”ฉํ•˜๋ฉด, ์‚ฌ์šฉ์ž๊ฐ€ ์ •ํ™•ํ•˜๊ฒŒ ํ…์ŠคํŠธ๋ฅผ ๊ฒจ๋ƒฅํ•˜์—ฌ ํด๋ฆญํ•ด์•ผ ํ•˜๋ฏ€๋กœ ์‚ฌ์šฉ์„ฑ์ด ์ €ํ•˜๋จ์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.
**Action:** CSS ๊ฐ€์ƒ ์š”์†Œ `::after`์™€ `inset: 0` ์†์„ฑ์„ ํ™œ์šฉํ•ด ํ…์ŠคํŠธ ๋งํฌ์˜ ํด๋ฆญ ๊ฐ€๋Šฅ ์˜์—ญ์„ ์นด๋“œ(article) ์ „์ฒด๋กœ ํ™•์žฅํ•˜์—ฌ, ์‚ฌ์šฉ์ž๊ฐ€ ์นด๋“œ ์˜์—ญ ์–ด๋””๋“  ํŽธํ•˜๊ฒŒ ํด๋ฆญํ•  ์ˆ˜ ์žˆ๋„๋ก ์ ‘๊ทผ์„ฑ๊ณผ ์‚ฌ์šฉ์„ฑ์„ ํฌ๊ฒŒ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค.
18 changes: 18 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,30 @@ h1 {
line-height: 1.16;
}

.project-grid article {
position: relative;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-grid article:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
z-index: 1;
}
Comment on lines +513 to +517

.project-grid h3 a {
color: inherit;
text-decoration-thickness: 1px;
text-underline-offset: 5px;
}

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

.project-grid h3 a:hover {
color: var(--ink);
}
Expand Down
Loading