Improved music page
This commit is contained in:
@ -2,8 +2,37 @@ package music
|
||||
|
||||
import "github.com/aerogo/aero"
|
||||
import "github.com/animenotifier/notify.moe/components"
|
||||
import "github.com/animenotifier/arn"
|
||||
|
||||
// Get renders the music page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
return ctx.HTML(components.Music())
|
||||
tracks := []*arn.SoundTrack{}
|
||||
|
||||
tracks = append(tracks, &arn.SoundTrack{
|
||||
ID: "1",
|
||||
Media: []arn.ExternalMedia{
|
||||
arn.ExternalMedia{
|
||||
Service: "Soundcloud",
|
||||
ServiceID: "127672476",
|
||||
},
|
||||
},
|
||||
Tags: []string{
|
||||
"anime:7622",
|
||||
},
|
||||
})
|
||||
|
||||
tracks = append(tracks, &arn.SoundTrack{
|
||||
ID: "2",
|
||||
Media: []arn.ExternalMedia{
|
||||
arn.ExternalMedia{
|
||||
Service: "Soundcloud",
|
||||
ServiceID: "270777538",
|
||||
},
|
||||
},
|
||||
Tags: []string{
|
||||
"anime:11469",
|
||||
},
|
||||
})
|
||||
|
||||
return ctx.HTML(components.Music(tracks))
|
||||
}
|
||||
|
Reference in New Issue
Block a user