Improved forum frontpage

This commit is contained in:
Eduard Urbach 2017-06-20 13:15:32 +02:00
parent 94608a0754
commit 009c73629f
6 changed files with 21 additions and 15 deletions

View File

@ -1,12 +1,14 @@
component ForumTags component ForumTags
.forum-tags.light-button-group .buttons.forum-tags
ForumTag("All", "") ForumTag("All", "", "list")
ForumTag("General", "/general") ForumTag("General", "general", "list")
ForumTag("News", "/news") ForumTag("News", "news", "list")
ForumTag("Anime", "/anime") ForumTag("Anime", "anime", "list")
ForumTag("Updates", "/update") ForumTag("Updates", "update", "list")
ForumTag("Suggestions", "/suggestion") ForumTag("Suggestions", "suggestion", "list")
ForumTag("Bugs", "/bug") ForumTag("Bugs", "bug", "list")
component ForumTag(title string, suffix string) component ForumTag(title string, category string, icon string)
a.light-button.forum-tag.ajax(href="/forum" + suffix)= title a.button.forum-tag.ajax(href=strings.TrimSuffix("/forum/" + category, "/"))
Icon(arn.GetForumIcon(category))
span= title

View File

@ -10,7 +10,7 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.
InputTextArea("notes", item.Notes, "Notes", "Notes") InputTextArea("notes", item.Notes, "Notes", "Notes")
.actions .buttons
a.ajax.button(href="/+" + viewUser.Nick + "/animelist") a.ajax.button(href="/+" + viewUser.Nick + "/animelist")
Icon("list") Icon("list")
span View collection span View collection

View File

@ -3,7 +3,10 @@ component Forum(tag string, threads []*arn.Thread)
ForumTags ForumTags
ThreadList(threads) ThreadList(threads)
button#load-more-threads Load more .buttons
button
Icon("refresh")
span Load more
component ThreadList(threads []*arn.Thread) component ThreadList(threads []*arn.Thread)
each thread in threads each thread in threads

View File

@ -1,7 +1,7 @@
.forum-tag .forum-tag
&.active &.active
color white color white
background-color text-color background-color link-hover-color
#load-more-threads #load-more-threads
margin-top 1rem margin-top 1rem

View File

@ -1,6 +1,6 @@
.actions .buttons
horizontal-wrap horizontal-wrap
justify-content space-around justify-content center
button, .button button, .button
margin 0.5rem margin 0.5rem

View File

@ -54,6 +54,7 @@
color text-color color text-color
.forum-tags .forum-tags
justify-content flex-start !important
margin-bottom 1rem margin-bottom 1rem
.post-author .post-author