From e0a4db6c47660d666211577997248a96e5b0a0cc Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 25 Jun 2017 17:25:20 +0200 Subject: [PATCH] Updated VS Code search settings and popular anime page --- .vscode/settings.json | 7 ++++++- pages/popularanime/popular.go | 2 +- pages/popularanime/popular.pixy | 6 ++++++ styles/typography.scarlet | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 pages/popularanime/popular.pixy diff --git a/.vscode/settings.json b/.vscode/settings.json index 0fcb2420..c92756b6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,10 +6,15 @@ "files.exclude": { "**/*.js": { "when": "$(basename).ts" - } + }, + "components/": true }, "files.associations": { "*.pixy": "jade", "*.scarlet": "stylus" + }, + "search.exclude": { + "components/": true, + "**/*.svg": true } } \ No newline at end of file diff --git a/pages/popularanime/popular.go b/pages/popularanime/popular.go index c7cd7e22..1d80e7ef 100644 --- a/pages/popularanime/popular.go +++ b/pages/popularanime/popular.go @@ -16,5 +16,5 @@ func Get(ctx *aero.Context) string { return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err) } - return ctx.HTML(components.AnimeGrid(animeList)) + return ctx.HTML(components.PopularAnime(animeList)) } diff --git a/pages/popularanime/popular.pixy b/pages/popularanime/popular.pixy new file mode 100644 index 00000000..3d5aeec7 --- /dev/null +++ b/pages/popularanime/popular.pixy @@ -0,0 +1,6 @@ +component PopularAnime(animeList []*arn.Anime) + h2 Top 3 + AnimeGrid(animeList[:3]) + + h2 Popular + AnimeGrid(animeList[3:]) \ No newline at end of file diff --git a/styles/typography.scarlet b/styles/typography.scarlet index a9bcb6bc..16633b0f 100644 --- a/styles/typography.scarlet +++ b/styles/typography.scarlet @@ -8,6 +8,7 @@ p, h1, h2, h3, h4, h5, h6 margin-bottom 0 h2 + margin-top content-padding margin-bottom content-padding p > img