Skip to content

Enhance Music Player card with better visuals and default songs - #23

Merged
Chintanpatel24 merged 1 commit into
mainfrom
feature/music-player-card-18373486311561233713
Jun 10, 2026
Merged

Enhance Music Player card with better visuals and default songs#23
Chintanpatel24 merged 1 commit into
mainfrom
feature/music-player-card-18373486311561233713

Conversation

@Chintanpatel24

Copy link
Copy Markdown
Owner
  • Improved SVG designs for all 4 player styles (90s, iPod, Cassette, Boombox) with gradients and glow effects
  • Added a list of high-quality default songs (Lofi Hip Hop, etc.) used when no parameters are provided
  • Enhanced clickability: the entire card now acts as a link to the song
  • Sanity checks and code cleanup

- Improved SVG designs for all 4 player styles (90s, iPod, Cassette, Boombox) with gradients and glow effects
- Added a list of high-quality default songs (Lofi Hip Hop, etc.) used when no parameters are provided
- Enhanced clickability: the entire card now acts as a link to the song
- Sanity checks and code cleanup

Co-authored-by: Chintanpatel24 <216989679+Chintanpatel24@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 08:10
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gitlyy Ready Ready Preview, Comment Jun 10, 2026 8:10am

@Chintanpatel24
Chintanpatel24 merged commit 19daa60 into main Jun 10, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Music Player card to be more visually polished across all supported player styles and adjusts the API/renderer behavior to support sensible defaults when callers don’t provide song parameters.

Changes:

  • Added a default-song list and updated the SVG generator to use defaults when no song info is provided.
  • Redesigned the SVG markup/styles for the 90s, iPod, cassette, and boombox variants (gradients, glow, tweaked layout).
  • Updated /api/music to pass query parameters through without forced placeholder defaults (so the renderer can decide fallbacks).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/svg-music.js Adds default song support and substantially revamps SVG visuals/layout across all player styles.
api/music.js Stops injecting placeholder defaults for title/artist/track_id, delegating default behavior to the SVG generator.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/svg-music.js
Comment on lines +33 to +37
let { title, artist, track_id, gif_url } = options;

// Use default song if none provided
if (!title && !artist && !track_id) {
const defaultSong = DEFAULT_SONGS[0];
Comment thread src/svg-music.js
Comment on lines +95 to 99
<a href="${trackUrl}" target="_blank">
<path d="M-5 -5 L8 0 L-5 5 Z" fill="#555" transform="translate(0,0)"/>
<circle r="40" fill="transparent"/>
</a>
</g>
Comment thread src/svg-music.js
Comment on lines 236 to 237
</g>
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants