From 69f24a6b7bfbef8eb16282675efc75445101cb6d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 16 May 2024 00:15:52 +0400 Subject: [PATCH] Make use of the new icons, also add some styling for them. --- web/assets/css/main.css | 5 +++++ web/index.templ | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web/assets/css/main.css b/web/assets/css/main.css index c7b58cf..781ecac 100644 --- a/web/assets/css/main.css +++ b/web/assets/css/main.css @@ -126,6 +126,11 @@ section { margin-top: 1rem; } #player p { text-indent: 1rem; } +#player img { + filter: drop-shadow(0px 0px 4px var(--text-color)); + height: 1rem; + padding: 0 .7rem; } + button#radio-play { -webkit-mask-image: url(/assets/img/play.svg); background-color: var(--primary-color); diff --git a/web/index.templ b/web/index.templ index 270f2d0..794587c 100644 --- a/web/index.templ +++ b/web/index.templ @@ -68,19 +68,19 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
if curSong != nil && curSong.Artist != "" {

- Listeners: { strconv.FormatInt(lstnrs.Current(), 10) } - Duration: { curSong.DurationString() } + { strconv.FormatInt(lstnrs.Current(), 10) } + { curSong.DurationString() }

- Song: { curSong.Artist } - { curSong.Title } + { curSong.Artist } - { curSong.Title }

} else {

- Listeners: { strconv.FormatInt(lstnrs.Current(), 10) } - Duration: 0:00 + { strconv.FormatInt(lstnrs.Current(), 10) } + 0:00

- Song: - + -

}