18 lines
745 B
Plaintext

component ExploreColor(animes []*arn.Anime, color string, user *arn.User)
h1.page-title Explore anime by color
for saturation := 0.75; saturation >= 0.25; saturation -= 0.25
.tabs.color-stripes
for hue := 0.0; hue < 1.0; hue += 0.05
a.tab.color-stripe.action(href=fmt.Sprintf("/explore/color/hsl:%.3f,%.2f,0.5/anime", hue, saturation), data-action="diff", data-trigger="click", data-color=fmt.Sprintf("hsl(%.0f, %.0f%%, 50%%)", hue * 360, saturation * 100))
.explore-anime
if len(animes) == 0
if color == "any"
p.no-data.mountable Please choose a color.
else
p.no-data.mountable No anime found for the given color.
else
p.text-center.mountable= strconv.Itoa(len(animes)) + " anime."
AnimeGrid(animes, user)