opencode
opencode copied to clipboard
feat: add interactive tip cycling on click with hover effect
Summary
- Add interactive tip cycling - users can click on tips to cycle through them
- Add hover underline effect to indicate tips are interactive
- Convert tip display to use reactive signals for state management
Changes
- Added
indexsignal to track current tip - Added
hoversignal for hover state - Added
cycle()function to advance through tips - Added mouse event handlers (
onMouseOver,onMouseOut,onMouseUp) - Converted static
partsto reactivecreateMemofor dynamic updates - Added underline style on hover for visual feedback
Testing
Tested locally with bun dev - tips now cycle on click and show underline on hover.