New dashboard idea (still not happy though)
This commit is contained in:
16
pages/search/search.pixy
Normal file
16
pages/search/search.pixy
Normal file
@ -0,0 +1,16 @@
|
||||
component Search(popularAnime []*arn.Anime, titleCount int, animeCount int)
|
||||
h2 Anime
|
||||
|
||||
#search-container
|
||||
input#search(type="text", placeholder="Search...", onkeyup="$.searchAnime();", onfocus="this.select();", disabled="disabled", data-count=titleCount, data-anime-count=animeCount)
|
||||
|
||||
#search-results-container
|
||||
#search-results
|
||||
|
||||
if popularAnime != nil
|
||||
h3.popular-title Popular
|
||||
|
||||
.popular-anime-list
|
||||
each anime in popularAnime
|
||||
a.popular-anime.ajax(href="/anime/" + toString(anime.ID), title=anime.Title.Romaji + " (" + arn.Plural(anime.Watching, "user") + " watching)")
|
||||
img.anime-image.popular-anime-image(src=anime.Image, alt=anime.Title.Romaji)
|
Reference in New Issue
Block a user