From 47b861b696d6cc102991b73246b6594cf79e00bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Rayapoull=C3=A9?= Date: Sun, 30 Sep 2018 14:55:27 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20the=20anilist=20mapp?= =?UTF-8?q?ing=20tool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/editor/filteranime/anilist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/editor/filteranime/anilist.go b/pages/editor/filteranime/anilist.go index b0788f31..f643a5dc 100644 --- a/pages/editor/filteranime/anilist.go +++ b/pages/editor/filteranime/anilist.go @@ -14,7 +14,7 @@ func AniList(ctx *aero.Context) string { return anime.GetMapping("anilist/anime") == "" }, func(anime *arn.Anime) string { - return "https://anilist.co/search?type=anime&q=" + anime.Title.Canonical + return "https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + anime.Title.Canonical }, ) } From a32fa12633120d6dc73b1c9643eeb5f115b32830 Mon Sep 17 00:00:00 2001 From: Soulcramer Date: Fri, 8 Feb 2019 11:34:20 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=92=84=20Added=20badge=20on=20anime?= =?UTF-8?q?=20edition=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- images/icons/annilist.svg | 9 ++++++ images/icons/google.svg | 14 ++++++++- images/icons/mal.svg | 15 +++++++++ images/icons/shoboi.svg | 10 ++++++ images/icons/youtube-full-color.svg | 5 +++ pages/anime/editanime/editanime.pixy | 17 ++++++++-- pages/editor/editor.scarlet | 46 ++++++++++++++++++++++++++++ 7 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 images/icons/annilist.svg create mode 100644 images/icons/mal.svg create mode 100644 images/icons/shoboi.svg create mode 100644 images/icons/youtube-full-color.svg diff --git a/images/icons/annilist.svg b/images/icons/annilist.svg new file mode 100644 index 00000000..9dca5a20 --- /dev/null +++ b/images/icons/annilist.svg @@ -0,0 +1,9 @@ + + + + diff --git a/images/icons/google.svg b/images/icons/google.svg index 2a55369a..de9f284d 100644 --- a/images/icons/google.svg +++ b/images/icons/google.svg @@ -1 +1,13 @@ - \ No newline at end of file + + + + + + + + + + + + \ No newline at end of file diff --git a/images/icons/mal.svg b/images/icons/mal.svg new file mode 100644 index 00000000..a52c185d --- /dev/null +++ b/images/icons/mal.svg @@ -0,0 +1,15 @@ + + + + + + + \ No newline at end of file diff --git a/images/icons/shoboi.svg b/images/icons/shoboi.svg new file mode 100644 index 00000000..8702d4b3 --- /dev/null +++ b/images/icons/shoboi.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/images/icons/youtube-full-color.svg b/images/icons/youtube-full-color.svg new file mode 100644 index 00000000..22fed656 --- /dev/null +++ b/images/icons/youtube-full-color.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/pages/anime/editanime/editanime.pixy b/pages/anime/editanime/editanime.pixy index 8272bba9..418b3a01 100644 --- a/pages/anime/editanime/editanime.pixy +++ b/pages/anime/editanime/editanime.pixy @@ -3,10 +3,23 @@ component EditAnimeTabs(anime *arn.Anime) a.tab(href=anime.Link()) Icon("tv") span Anime - + Tab("Edit", "pencil", anime.Link() + "/edit") Tab("Images", "image", anime.Link() + "/edit/images") Tab("Characters", "users", anime.Link() + "/edit/characters") Tab("Relations", "exchange", anime.Link() + "/edit/relations") Tab("Episodes", "list-ol", anime.Link() + "/edit/episodes") - Tab("History", "history", anime.Link() + "/edit/history") \ No newline at end of file + Tab("History", "history", anime.Link() + "/edit/history") + .search-links + a.search-link.google-badge(href="https://www.google.com/search?q=" + anime.Title.Canonical, target="_blank", rel="noopener") + RawIcon("google") + a.search-link.annilist-badge(href="https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + anime.Title.Canonical, target="_blank", rel="noopener") + RawIcon("annilist") + a.search-link.mal-badge(href="https://myanimelist.net/anime.php?q=" + anime.Title.Canonical, target="_blank", rel="noopener") + RawIcon("mal") + a.search-link.shoboi-badge(href="http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese, target="_blank", rel="noopener") + RawIcon("shoboi") + a.search-link(href="https://www.google.com/search?q=" + anime.Title.Canonical + " anime cover&tbm=isch&tbs=imgo:1,isz:lt,islt:qsvga", target="_blank", rel="noopener") + RawIcon("image") + a.search-link(href="https://www.youtube.com/results?search_query=" + strings.Replace(anime.Title.Canonical+" PV", " ", "+", -1), target="_blank", rel="noopener") + RawIcon("youtube-full-color") \ No newline at end of file diff --git a/pages/editor/editor.scarlet b/pages/editor/editor.scarlet index 7cef4142..ff347878 100644 --- a/pages/editor/editor.scarlet +++ b/pages/editor/editor.scarlet @@ -25,6 +25,52 @@ .feature-card-color-character background hsl(273, feature-card-saturation, feature-card-lightness) !important +.search-links + position fixed + top 25% + left 95% + vertical + width fit-content + +.search-link + horizontal + justify-content center + align-items center + background reverse-light-color + border-radius 50% + padding 0.5rem + color text-color + width 30px + height 30px + position relative + margin-top 0.2em + margin-bottom 0.2em + + :hover + color text-color + background reverse-light-hover-color + + :active + transform scale(1.2) + +.google-badge,.shoboi-badge + background rgba(255, 255, 255, 0.80) !important + + :hover + background rgba(255, 255, 255, 1) !important + +.annilist-badge + background rgba(31, 38, 49, 0.80) !important + + :hover + background rgba(31, 38, 49, 1) !important + +.mal-badge + background rgba(46, 81, 181, 0.80) !important + + :hover + background rgba(46, 81, 181, 1) !important + > 1550px .editor-filters position fixed From 8c5f9af4933e6d02f6d3c47fbdb2c631f5a2a1c4 Mon Sep 17 00:00:00 2001 From: Soulcramer Date: Fri, 8 Feb 2019 11:43:34 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20add=20comment=20on=20.search?= =?UTF-8?q?-link=20explaining=20why=20it's=20a=20duplicate=20of=20.badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/editor/editor.scarlet | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/editor/editor.scarlet b/pages/editor/editor.scarlet index ff347878..7211935b 100644 --- a/pages/editor/editor.scarlet +++ b/pages/editor/editor.scarlet @@ -32,6 +32,8 @@ vertical width fit-content + +// This is a copy of the .badge style, but the position:absolute broke the layout .search-link horizontal justify-content center From f754ecff81d1e04182cfa0a1985fcf5e11a92f27 Mon Sep 17 00:00:00 2001 From: Soulcramer Date: Fri, 8 Feb 2019 21:48:12 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=92=84=20Added=20tips=20to=20the=20ed?= =?UTF-8?q?ition=20helper=20badges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/anime/editanime/editanime.pixy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/anime/editanime/editanime.pixy b/pages/anime/editanime/editanime.pixy index 418b3a01..08da6916 100644 --- a/pages/anime/editanime/editanime.pixy +++ b/pages/anime/editanime/editanime.pixy @@ -11,15 +11,15 @@ component EditAnimeTabs(anime *arn.Anime) Tab("Episodes", "list-ol", anime.Link() + "/edit/episodes") Tab("History", "history", anime.Link() + "/edit/history") .search-links - a.search-link.google-badge(href="https://www.google.com/search?q=" + anime.Title.Canonical, target="_blank", rel="noopener") + a.search-link.google-badge.tip(href="https://www.google.com/search?q=" + anime.Title.Canonical, target="_blank", rel="noopener", aria-label="Google") RawIcon("google") - a.search-link.annilist-badge(href="https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + anime.Title.Canonical, target="_blank", rel="noopener") + a.search-link.annilist-badge.tip(href="https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + anime.Title.Canonical, target="_blank", rel="noopener", aria-label="Annilist") RawIcon("annilist") - a.search-link.mal-badge(href="https://myanimelist.net/anime.php?q=" + anime.Title.Canonical, target="_blank", rel="noopener") + a.search-link.mal-badge.tip(href="https://myanimelist.net/anime.php?q=" + anime.Title.Canonical, target="_blank", rel="noopener", aria-label="MyAnimeList") RawIcon("mal") - a.search-link.shoboi-badge(href="http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese, target="_blank", rel="noopener") + a.search-link.shoboi-badge.tip(href="http://cal.syoboi.jp/find?type=quick&sd=1&kw=" + anime.Title.Japanese, target="_blank", rel="noopener", aria-label="Shoboi") RawIcon("shoboi") - a.search-link(href="https://www.google.com/search?q=" + anime.Title.Canonical + " anime cover&tbm=isch&tbs=imgo:1,isz:lt,islt:qsvga", target="_blank", rel="noopener") + a.search-link.tip(href="https://www.google.com/search?q=" + anime.Title.Canonical + " anime cover&tbm=isch&tbs=imgo:1,isz:lt,islt:qsvga", target="_blank", rel="noopener", aria-label="Cover image") RawIcon("image") - a.search-link(href="https://www.youtube.com/results?search_query=" + strings.Replace(anime.Title.Canonical+" PV", " ", "+", -1), target="_blank", rel="noopener") + a.search-link.tip(href="https://www.youtube.com/results?search_query=" + strings.Replace(anime.Title.Canonical+" PV", " ", "+", -1), target="_blank", rel="noopener", aria-label="Trailer") RawIcon("youtube-full-color") \ No newline at end of file