Improved tracks on the user profile
This commit is contained in:
parent
8727ab63eb
commit
de9e743067
@ -11,11 +11,13 @@ component Music(tracks []*arn.SoundTrack)
|
|||||||
SoundTrack(track)
|
SoundTrack(track)
|
||||||
|
|
||||||
component SoundTrack(track *arn.SoundTrack)
|
component SoundTrack(track *arn.SoundTrack)
|
||||||
.sound-track(id=track.ID)
|
.sound-track.mountable(id=track.ID)
|
||||||
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
|
.sound-track-content
|
||||||
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
|
||||||
|
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
||||||
|
|
||||||
iframe.lazy(data-src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/" + track.Media[0].ServiceID + "?auto_play=false&hide_related=true&show_comments=true&show_user=true&show_reposts=false&visual=true")
|
iframe.lazy(data-src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/" + track.Media[0].ServiceID + "?auto_play=false&hide_related=true&show_comments=true&show_user=true&show_reposts=false&visual=true")
|
||||||
.sound-track-footer
|
|
||||||
span posted by
|
.sound-track-footer
|
||||||
a.ajax(href=track.CreatedByUser().Link())= track.CreatedByUser().Nick
|
span posted by
|
||||||
|
a.ajax(href=track.CreatedByUser().Link())= track.CreatedByUser().Nick
|
@ -2,6 +2,9 @@
|
|||||||
vertical
|
vertical
|
||||||
|
|
||||||
.sound-track
|
.sound-track
|
||||||
|
vertical
|
||||||
|
|
||||||
|
.sound-track-content
|
||||||
horizontal
|
horizontal
|
||||||
|
|
||||||
iframe
|
iframe
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const maxPosts = 5
|
const maxPosts = 5
|
||||||
const maxTracks = 5
|
const maxTracks = 4
|
||||||
|
|
||||||
// Get user profile page.
|
// Get user profile page.
|
||||||
func Get(ctx *aero.Context) string {
|
func Get(ctx *aero.Context) string {
|
||||||
|
@ -91,3 +91,21 @@ profile-boot-duration = 2s
|
|||||||
|
|
||||||
.profile-category
|
.profile-category
|
||||||
margin-bottom content-padding
|
margin-bottom content-padding
|
||||||
|
|
||||||
|
.sound-tracks
|
||||||
|
horizontal-wrap
|
||||||
|
justify-content space-around
|
||||||
|
|
||||||
|
.sound-track-anime-link
|
||||||
|
display none
|
||||||
|
|
||||||
|
.sound-track
|
||||||
|
flex 1
|
||||||
|
flex-basis 500px
|
||||||
|
padding 1rem
|
||||||
|
|
||||||
|
> 800px
|
||||||
|
.profile-category
|
||||||
|
.sound-tracks
|
||||||
|
.sound-track-anime-link
|
||||||
|
display block
|
Loading…
Reference in New Issue
Block a user