Updated VS Code search settings and popular anime page
This commit is contained in:
parent
280cd1268e
commit
e0a4db6c47
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -6,10 +6,15 @@
|
|||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/*.js": {
|
"**/*.js": {
|
||||||
"when": "$(basename).ts"
|
"when": "$(basename).ts"
|
||||||
}
|
},
|
||||||
|
"components/": true
|
||||||
},
|
},
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.pixy": "jade",
|
"*.pixy": "jade",
|
||||||
"*.scarlet": "stylus"
|
"*.scarlet": "stylus"
|
||||||
|
},
|
||||||
|
"search.exclude": {
|
||||||
|
"components/": true,
|
||||||
|
"**/*.svg": true
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -16,5 +16,5 @@ func Get(ctx *aero.Context) string {
|
|||||||
return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err)
|
return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ctx.HTML(components.AnimeGrid(animeList))
|
return ctx.HTML(components.PopularAnime(animeList))
|
||||||
}
|
}
|
||||||
|
6
pages/popularanime/popular.pixy
Normal file
6
pages/popularanime/popular.pixy
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
component PopularAnime(animeList []*arn.Anime)
|
||||||
|
h2 Top 3
|
||||||
|
AnimeGrid(animeList[:3])
|
||||||
|
|
||||||
|
h2 Popular
|
||||||
|
AnimeGrid(animeList[3:])
|
@ -8,6 +8,7 @@ p, h1, h2, h3, h4, h5, h6
|
|||||||
margin-bottom 0
|
margin-bottom 0
|
||||||
|
|
||||||
h2
|
h2
|
||||||
|
margin-top content-padding
|
||||||
margin-bottom content-padding
|
margin-bottom content-padding
|
||||||
|
|
||||||
p > img
|
p > img
|
||||||
|
Loading…
Reference in New Issue
Block a user