Skip to content
Closed
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
12 changes: 12 additions & 0 deletions .Jules/kinetic.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ Prefer distinct motion craft on a live visitor surface that is not CTA glass. Hi
- Glass Blur: `16px`
- Affordance: `translateY(-4px)`
- Glow: `hsla(210, 100%, 45%, 0.3)`

## 2026-08-30 - Pill Badge Gradient Sweep and Hover Elevation

- **Signal:** Static `.pill` badges on project detail pages lacked interactive hover affordance and dynamic lighting motion.
- **Action:**
- Added CSS transitions for `background-position`, `transform`, and `box-shadow` to `Pill.astro`.
- Animated gradient sweep (`background-position: 100% 50%`) with `translateY(-2px)` elevation and cyan glow shadow (`hsla(210, 100%, 45%, 0.35)`) on hover and focus-within.
- Ensured compliance with accessibility guidelines by gating animations inside `@media (prefers-reduced-motion: no-preference)`.
- **Tokens Added:**
- Elevation: `translateY(-2px)`
- Cyan Glow: `0 4px 12px hsla(210, 100%, 45%, 0.35)`
- Sweep Position: `100% 50%`
15 changes: 15 additions & 0 deletions src/components/Pill.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,20 @@
background-size: 250% 100%;
background-position: 0% 50%;
box-shadow: var(--shadow-sm);
transition:
background-position var(--theme-transition),
transform var(--theme-transition),
box-shadow var(--theme-transition);
}

@media (prefers-reduced-motion: no-preference) {
.pill:hover,
.pill:focus-within {
background-position: 100% 50%;
transform: translateY(-2px);
box-shadow:
0 4px 12px hsla(210, 100%, 45%, 0.35),
var(--shadow-md);
}
}
</style>
Loading