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
.forum-tags.light-button-group
ForumTag("All", "")
ForumTag("General", "/general")
ForumTag("News", "/news")
ForumTag("Anime", "/anime")
ForumTag("Updates", "/update")
ForumTag("Suggestions", "/suggestion")
ForumTag("Bugs", "/bug")
.buttons.forum-tags
ForumTag("All", "", "list")
ForumTag("General", "general", "list")
ForumTag("News", "news", "list")
ForumTag("Anime", "anime", "list")
ForumTag("Updates", "update", "list")
ForumTag("Suggestions", "suggestion", "list")
ForumTag("Bugs", "bug", "list")
component ForumTag(title string, suffix string)
a.light-button.forum-tag.ajax(href="/forum" + suffix)= title
component ForumTag(title string, category string, icon string)
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")
.actions
.buttons
a.ajax.button(href="/+" + viewUser.Nick + "/animelist")
Icon("list")
span View collection

View File

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

View File

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

View File

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

View File

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