From 656486e22e8ee22af88a79d56778025825946cf8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 18 Nov 2026 16:56:00 +0100 Subject: feat(dashboard): game card with a full-height cover and icons The cover now fills the card's height (2:3 box art, square for Xbox Live's art), the platform is a Nerd Font glyph (Steam, PlayStation with a 1/2 tag, Xbox) and the session and total times sit behind clock and history glyphs instead of a line of text. Co-Authored-By: Claude Opus 5.5 --- static/modules/music.js | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'static/modules/music.js') diff --git a/static/modules/music.js b/static/modules/music.js index 4a4ce05..393087c 100644 --- a/static/modules/music.js +++ b/static/modules/music.js @@ -36,7 +36,10 @@ export function pickGame(pc, xbox) { session: xbox.session }; } -const PLATFORM = { steam: "Steam", ps1: "PlayStation", ps2: "PlayStation 2", xbox: "Xbox" }; +// Platform -> [Nerd Font glyph, label]: nf-md-steam, sony_playstation, microsoft_xbox. +// A PlayStation's generation is a small tag beside the glyph. +const PLATFORM = { steam: ["\u{f04d3}", "Steam"], ps1: ["\u{f0414}", "PlayStation", "1"], + ps2: ["\u{f0414}", "PlayStation 2", "2"], xbox: ["\u{f05b9}", "Xbox"] }; async function post(action, body = {}) { try { @@ -90,13 +93,12 @@ export default {