Personal Site
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include new TopSongs component (coming soon)

+5 -1
+5 -1
src/components/home/playing/NowPlaying.astro
··· 1 1 --- 2 + import type { PlaybackState, Track } from "@spotify/web-api-ts-sdk"; 2 3 import { sdk } from "./spotify"; 4 + 5 + import TopSongs from "./TopSongs.astro"; 3 6 4 7 import mp3Base from "/assets/mp3/base.png"; 5 8 import mp3AlbumArtMask from "/assets/mp3/album-art-mask.png"; ··· 10 13 import boxTB from "/assets/box-tb.png"; 11 14 import popoutSpeech from "/assets/popout-speech.png"; 12 15 import smallBoxMask from "/assets/small-box-mask.png"; 13 - import type { PlaybackState, Track } from "@spotify/web-api-ts-sdk"; 14 16 15 17 const track = await sdk.player.getCurrentlyPlayingTrack().catch(() => null); 16 18 ··· 177 179 </template> 178 180 </now-playing> 179 181 </button> 182 + 183 + <TopSongs /> 180 184 </section> 181 185 182 186 <style>