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 @@ -21,3 +21,7 @@
## 2024-07-15 - Expand clickable area of project cards
**Learning:** Using an anchor tag to wrap an entire card (block-level element) can result in verbose and confusing screen reader output. However, restricting the clickable area to just the title makes the UI harder to interact with (violating Fitts's Law).
**Action:** Apply `position: relative` to the card container and use a `::after` pseudo-element with `position: absolute; inset: 0;` on the title's anchor tag. This expands the clickable area to the whole card while keeping semantic and accessible HTML structure.

## 2026-08-04 - Add visual feedback for button clicks
**Learning:** Users lack immediate visual feedback when interacting with main call-to-action buttons (`.button`), making the interface feel unresponsive during clicks.
**Action:** Add an `:active` state to interactive elements (e.g., `transform: scale(0.98)`) to provide satisfying, immediate tactile feedback when pressed.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## [Unreleased]
- **UX κ°œμ„ **: 메인 λ²„νŠΌ(`.button`) 클릭 μ‹œ 즉각적인 μ‹œκ°μ  ν”Όλ“œλ°±μ„ μ œκ³΅ν•˜λ„λ‘ `:active` μƒνƒœμ— μŠ€μΌ€μΌ μΆ•μ†Œ 효과(`transform: scale(0.98)`)λ₯Ό μΆ”κ°€ν•˜μ—¬ μΈν„°λž™μ…˜ λ°˜μ‘μ„±μ„ λ†’μ˜€μŠ΅λ‹ˆλ‹€.
- **UX/μ ‘κ·Όμ„± κ°œμ„ **: ν”„λ‘œμ νŠΈ μΉ΄λ“œμ˜ 클릭 μ˜μ—­μ„ μΉ΄λ“œ μ „μ²΄λ‘œ ν™•μž₯ν•˜μ—¬ μ‚¬μš©μž νŽΈμ˜μ„±μ„ λ†’μ˜€μŠ΅λ‹ˆλ‹€. <a> νƒœκ·Έλ₯Ό ν™•μž₯ν•˜λŠ” λŒ€μ‹  가상 μš”μ†Œ(pseudo-element) κ²ΉμΉ¨ 방식을 μ‚¬μš©ν•˜μ—¬ 슀크린 리더 접근성을 μœ μ§€ν–ˆμŠ΅λ‹ˆλ‹€.
- **λ³΄μ•ˆ κ°œμ„ **: μ»΄ν¬λ„ŒνŠΈ 가러리의 인라인 μŠ€ν¬λ¦½νŠΈμ™€ μŠ€νƒ€μΌμ„ μ™ΈλΆ€ 파일둜 λΆ„λ¦¬ν•˜κ³ , μ—„κ²©ν•œ Content-Security-Policyλ₯Ό μ μš©ν•΄ XSS λ°©μ–΄λ₯Ό κ°•ν™”ν–ˆμŠ΅λ‹ˆλ‹€.
- **μ„±λŠ₯ νšŒκ·€ 볡원**: μ˜€ν”„μŠ€ν¬λ¦° `.section` λ Œλ”λ§μ„ `content-visibility: auto`둜 μ§€μ—°ν•˜κ³ , 일반 μ„Ήμ…˜μ€ 600pxΒ·μ½˜ν…μΈ κ°€ 큰 DIKW/projects μ„Ήμ…˜μ€ 1000px의 `contain-intrinsic-size` placeholderλ₯Ό μœ μ§€ν•΄ 초기 λ Œλ”λ§ λΉ„μš©κ³Ό μŠ€ν¬λ‘€λ°” 이동을 ν•¨κ»˜ μ€„μ˜€μŠ΅λ‹ˆλ‹€.
Expand Down
6 changes: 5 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,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.98);
}

.button.primary {
background: var(--ink);
color: var(--white);
Expand Down
9 changes: 9 additions & 0 deletions tests/test_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ def test_project_cards_are_fully_clickable_via_pseudo_element():
after_rule = _rule(".project-grid h3 a::after")
assert "position: absolute;" in after_rule
assert "inset: 0;" in after_rule

def test_buttons_have_active_state_for_visual_feedback():
"""Buttons should scale down when pressed to provide tactile visual feedback."""
rule = _rule(".button")
assert "transition:" in rule
assert "transform" in rule

active_rule = _rule(".button:active")
assert "transform: scale(0.98);" in active_rule
Loading