20 lines
986 B
Plaintext
Raw Normal View History

2016-11-02 15:00:17 +00:00
component GenreOverview
2016-11-03 04:01:06 +00:00
// TODO: Add this to the stylus file later
style!= "h2{ text-align: center; } .light-button{ display: inline-block; }"
2016-11-02 15:00:17 +00:00
section
header
h2 Genres
2016-11-03 04:01:06 +00:00
div
each genre in Genres
a.light-button.ajax(href="/genres/" + arn.FixGenre(genre))
2016-11-02 15:00:17 +00:00
Icon(GenreIcons[genre])
span= genre
2016-11-03 00:01:23 +00:00
component AnimeInGenre(genre string, animeList []*arn.Anime)
2016-11-03 04:11:00 +00:00
style!= "h2 { text-align: center; } .genre-anime-list{ display: flex; flex-flow: row wrap; float: none !important; justify-content: center; } .genre-anime-image{ width: 16vw; height: 9vw; min-width: 90px; min-height: 127px; max-width: 200px; max-height: 282px; object-fit: cover; } .genre-anime-link{ margin: 0.5em; flex-grow: 0; flex-shrink: 0; }"
2016-11-03 04:01:06 +00:00
h2= "#" + genre
.genre-anime-list
each anime in animeList
a.genre-anime-link.ajax(href="/anime/" + s(anime.ID))
img.anime-image.genre-anime-image(src=anime.Image, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + s(anime.Watching) + ")")