create support for releases, artists, tracks, and credits
Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
parent
442889340c
commit
9329aa9f60
19 changed files with 252 additions and 37 deletions
|
@ -34,13 +34,15 @@ func Handler() http.Handler {
|
|||
}
|
||||
|
||||
type IndexData struct {
|
||||
Releases []musicModel.Release
|
||||
Artists []musicModel.Artist
|
||||
Releases []*musicModel.Release
|
||||
Artists []*musicModel.Artist
|
||||
Tracks []*musicModel.Track
|
||||
}
|
||||
|
||||
serveTemplate("index.html", IndexData{
|
||||
Releases: global.Releases,
|
||||
Artists: global.Artists,
|
||||
Tracks: global.Tracks,
|
||||
}).ServeHTTP(w, r)
|
||||
}))
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@ a:hover {
|
|||
}
|
||||
|
||||
.release {
|
||||
margin-bottom: 1em;
|
||||
padding: 1em;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -164,6 +165,7 @@ a:hover {
|
|||
}
|
||||
|
||||
.artist {
|
||||
margin-bottom: .5em;
|
||||
padding: .5em;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -185,3 +187,27 @@ a:hover {
|
|||
object-fit: cover;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.track {
|
||||
margin-bottom: 1em;
|
||||
padding: 1em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5em;
|
||||
|
||||
border-radius: .5em;
|
||||
background: #f8f8f8f8;
|
||||
border: 1px solid #808080;
|
||||
}
|
||||
|
||||
h2.track-title {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
.track-description {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.track .empty {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue