Improved forum frontpage
This commit is contained in:
parent
94608a0754
commit
009c73629f
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
.forum-tag
|
||||
&.active
|
||||
color white
|
||||
background-color text-color
|
||||
background-color link-hover-color
|
||||
|
||||
#load-more-threads
|
||||
margin-top 1rem
|
@ -1,6 +1,6 @@
|
||||
.actions
|
||||
.buttons
|
||||
horizontal-wrap
|
||||
justify-content space-around
|
||||
justify-content center
|
||||
|
||||
button, .button
|
||||
margin 0.5rem
|
@ -54,6 +54,7 @@
|
||||
color text-color
|
||||
|
||||
.forum-tags
|
||||
justify-content flex-start !important
|
||||
margin-bottom 1rem
|
||||
|
||||
.post-author
|
||||
|
Loading…
Reference in New Issue
Block a user