A tall vertical Spotify card with a full album art display and a color-extracted blurred gradient background that adapts to each track's palette.
Installation
Requires a /api/spotify route. See the Spotify
Card docs for setup instructions.
Usage
How It Works
- Fetches track metadata via
GET /api/spotify?url=.... - The background is the album art rendered at
blur(50px) scale(1.15)with a dark overlay — this extracts the dominant colors without a separate color extraction library. - The album artwork is displayed full-width in a rounded card at the top, with a subtle scale animation when audio is playing.
- A bottom-to-top gradient overlay ensures controls remain readable against any album palette.
- The seek bar uses a custom
.spotify-seekCSS class (add it to yourglobals.css).
API Reference
VerticalSpotifyCard2
| Prop | Type | Default |
|---|---|---|
url? | string | - |
className? | string | - |
onPrev? | () => void | - |
onNext? | () => void | - |