Implemented ratings UI
This commit is contained in:
@ -18,6 +18,21 @@ component Anime(anime *arn.Anime)
|
||||
//- h3.anime-section-name.anime-summary-header Summary
|
||||
p.anime-summary= anime.Summary
|
||||
|
||||
h3.anime-section-name Ratings
|
||||
.anime-rating-categories
|
||||
.anime-rating-category(title=toString(anime.Rating.Overall))
|
||||
.anime-rating-category-name Overall
|
||||
Rating(anime.Rating.Overall)
|
||||
.anime-rating-category(title=toString(anime.Rating.Story))
|
||||
.anime-rating-category-name Story
|
||||
Rating(anime.Rating.Story)
|
||||
.anime-rating-category(title=toString(anime.Rating.Visuals))
|
||||
.anime-rating-category-name Visuals
|
||||
Rating(anime.Rating.Visuals)
|
||||
.anime-rating-category(title=toString(anime.Rating.Music))
|
||||
.anime-rating-category-name Music
|
||||
Rating(anime.Rating.Music)
|
||||
|
||||
if len(anime.Trailers) > 0 && anime.Trailers[0].Service == "Youtube" && anime.Trailers[0].VideoID != ""
|
||||
h3.anime-section-name Video
|
||||
.anime-trailer.video-container
|
||||
@ -106,18 +121,17 @@ component Anime(anime *arn.Anime)
|
||||
//- if providers.Nyaa && providers.Nyaa.episodes !== undefined
|
||||
//- span(class=providers.Nyaa.episodes === 0 ? "entry-error" : "entry-ok")= providers.Nyaa.episodes + " eps"
|
||||
|
||||
//- h3.anime-section-name Links
|
||||
//- .light-button-group
|
||||
//- if anime.Links != nil
|
||||
//- each link in anime.Links
|
||||
//- a.light-button(href=link.URL, target="_blank")
|
||||
//- Icon("external-link")
|
||||
//- span= link.Title
|
||||
h3.anime-section-name Links
|
||||
.light-button-group
|
||||
//- if anime.Links != nil
|
||||
//- each link in anime.Links
|
||||
//- a.light-button(href=link.URL, target="_blank")
|
||||
//- Icon("external-link")
|
||||
//- span= link.Title
|
||||
|
||||
//- if anime.CreatedBy == ""
|
||||
//- a.light-button(href="https://anilist.co/anime/" + toString(anime.ID), target="_blank")
|
||||
//- Icon("external-link")
|
||||
//- span AniList
|
||||
a.light-button(href="https://kitsu.io/anime/" + anime.ID, target="_blank", rel="noopener")
|
||||
Icon("external-link")
|
||||
span Kitsu
|
||||
|
||||
//- if providers.HummingBird
|
||||
//- a.light-button(href="https://hummingbird.me/anime/" + providers.HummingBird.providerId, target="_blank") HummingBird
|
||||
|
@ -41,6 +41,30 @@
|
||||
margin-bottom 0.5rem
|
||||
color rgba(60, 60, 60, 0.5) !important
|
||||
|
||||
.anime-rating-categories
|
||||
horizontal
|
||||
width 100%
|
||||
|
||||
.anime-rating-category
|
||||
ui-element
|
||||
flex 1
|
||||
text-align center
|
||||
margin 0.5rem
|
||||
|
||||
.anime-rating-category-name
|
||||
font-size 1.3rem
|
||||
margin-top 0.5rem
|
||||
|
||||
.anime-rating
|
||||
margin 0.5rem
|
||||
letter-spacing 3px
|
||||
font-size 1.3rem
|
||||
color link-color
|
||||
|
||||
< 800px
|
||||
.anime-rating-categories
|
||||
vertical
|
||||
|
||||
.sources
|
||||
font-size 0.8em
|
||||
opacity 0.5
|
||||
|
9
pages/awards/awards.go
Normal file
9
pages/awards/awards.go
Normal file
@ -0,0 +1,9 @@
|
||||
package awards
|
||||
|
||||
import "github.com/aerogo/aero"
|
||||
import "github.com/animenotifier/notify.moe/components"
|
||||
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
return ctx.HTML(components.Awards())
|
||||
}
|
8
pages/awards/awards.pixy
Normal file
8
pages/awards/awards.pixy
Normal file
@ -0,0 +1,8 @@
|
||||
component Awards
|
||||
h2.page-title Awards
|
||||
|
||||
ul
|
||||
li
|
||||
a(href="https://developers.google.com/speed/pagespeed/insights/?url=https://notify.moe/&tab=desktop", target="_blank", rel="noopener") Google PageSpeed
|
||||
li
|
||||
a(href="https://observatory.mozilla.org/analyze.html?host=notify.moe", target="_blank", rel="noopener") Mozilla Observatory
|
@ -11,7 +11,6 @@ const maxPosts = 5
|
||||
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user != nil {
|
||||
@ -30,5 +29,5 @@ func Get(ctx *aero.Context) string {
|
||||
return ctx.HTML(components.Dashboard(posts))
|
||||
}
|
||||
|
||||
return ctx.HTML("ARN 4.0 is currently under construction.<br><a href='https://paypal.me/blitzprog' target='_blank' rel='noopener'>Support the development</a><br><a href='/auth/google'>Login via Google</a>")
|
||||
return ctx.HTML("ARN 4.0 is currently under construction.<br><a href='https://paypal.me/blitzprog' target='_blank' rel='noopener'>Support the development</a>")
|
||||
}
|
||||
|
Reference in New Issue
Block a user