back to index
published 2024-03-06
music player!
i have added a music player! itโs entirely hand-rolled, so there may be bugs, but i thought it would be a fun challenge so here it is =)
pick a song out from the links on the home page. iโll move them somewhere nice later.
future TODOs:
- make design = good (hard)
- fix whatever is causing a seek to fail while the song is playing
- add a volume control
a big part of why i chose to switch to astro is based on the island architecture, which gives you fine-grained control over when and how components are loaded.
initial load sizes are much smaller as a result, and pages that require no JS wonโt download any at all (as opposed to SvelteKit)
plus, you can use SPA-like navigation and allow for certain components (like my music player) to persist state across routes.