add twitch API stuff, add follow/sub/cheer labels
This commit is contained in:
parent
8a7210ad56
commit
626540e728
17 changed files with 1143 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ func (srv *Service) BindRoutes(group *gin.RouterGroup) {
|
|||
})
|
||||
|
||||
group.GET("/artwork", func(ctx *gin.Context) {
|
||||
ctx.Header("cache-control", "no-cache")
|
||||
ctx.Header("cache-control", "no-store")
|
||||
|
||||
if srv.track == nil || srv.track.ArtworkURL == "" {
|
||||
http.ServeFileFS(ctx.Writer, ctx.Request, publicFS, "public/default-cover-art.png")
|
||||
|
|
|
|||
|
|
@ -26,6 +26,5 @@
|
|||
</div>
|
||||
</div>
|
||||
<script type="module" src="/music/public/music.js"></script>
|
||||
<div id="cover"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ p {
|
|||
left: 0;
|
||||
bottom: 0;
|
||||
width: min-content;
|
||||
max-width: calc(100% - 4em);
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +88,7 @@ p {
|
|||
}
|
||||
|
||||
.title-artist {
|
||||
max-width: calc(100vw - 2em - 80px);
|
||||
max-width: calc(100vw - 4em - 80px);
|
||||
}
|
||||
|
||||
.title {
|
||||
|
|
@ -118,3 +119,9 @@ p {
|
|||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#music.switching {
|
||||
.artwork {
|
||||
filter: blur(4px);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue