Use new player on anime pages

This commit is contained in:
Eduard Urbach 2018-03-12 19:02:23 +01:00
parent 061c6cf551
commit 8061119ecc
4 changed files with 32 additions and 24 deletions

View File

@ -59,8 +59,6 @@
.anime-info-table .anime-info-table
margin 0 margin 0
// width 100%
// max-width 600px
.anime-info-value .anime-info-value
text-align right text-align right
@ -69,15 +67,18 @@
vertical vertical
margin-top 1rem margin-top 1rem
.anime-soundtrack .soundtrack
vertical flex-basis auto
// flex-basis 100% // vertical
flex-grow 1 // flex-grow 1
margin-bottom 0.5rem // margin-bottom 0.5rem
min-width 200px // min-width 200px
.video-container .soundtrack-anime-image
box-shadow shadow-light display none
// .video-container
// box-shadow shadow-light
> 500px > 500px
.anime-soundtracks .anime-soundtracks
@ -85,16 +86,17 @@
justify-content flex-start justify-content flex-start
margin-top 0 margin-top 0
.anime-soundtrack .soundtrack
max-width 200px max-width 200px
margin calc(content-padding / 2)
// .anime-soundtracks .soundtrack-content
// horizontal-wrap min-height 112px
height 112px
// .anime-soundtrack .soundtrack-play-button
// flex-basis 400px width 48px
// padding-bottom video-padding height 48px
font-size 1rem
.anime-section .anime-section
margin-top 1rem margin-top 1rem

View File

@ -4,9 +4,14 @@ component AnimeTracks(anime *arn.Anime, tracks []*arn.SoundTrack)
if len(tracks) > 0 if len(tracks) > 0
.anime-section.mountable .anime-section.mountable
h3.anime-section-name Tracks h3.anime-section-name Tracks
.anime-soundtracks
.soundtracks.anime-soundtracks
each track in tracks each track in tracks
.anime-soundtrack.mountable(data-mountable-type="track") SoundTrack(track)
.video-container
iframe.video.lazy(data-src=track.Media[0].EmbedLink(), allowfullscreen="allowfullscreen") //- .anime-soundtracks
a.soundtrack-footer.ajax(href=track.Link())= track.Title //- each track in tracks
//- .anime-soundtrack.mountable(data-mountable-type="track")
//- .video-container
//- iframe.video.lazy(data-src=track.Media[0].EmbedLink(), allowfullscreen="allowfullscreen")
//- a.soundtrack-footer.ajax(href=track.Link())= track.Title

View File

@ -13,6 +13,7 @@
border-radius 3px border-radius 3px
overflow hidden overflow hidden
box-shadow shadow-light box-shadow shadow-light
min-height 200px
iframe iframe
width 100% width 100%

View File

@ -123,7 +123,7 @@ export function stopAudio(arn: AnimeNotifier) {
} }
// Fade out sidebar player // Fade out sidebar player
audioPlayer.classList.add("fade-out") // audioPlayer.classList.add("fade-out")
// Remove title // Remove title
trackLink.href = "" trackLink.href = ""