Design improvements
This commit is contained in:
parent
16cbd5167f
commit
5524edd705
BIN
images/elements/noise-light.png
Normal file
BIN
images/elements/noise-light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
images/elements/noise-strong.png
Normal file
BIN
images/elements/noise-strong.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
@ -69,7 +69,7 @@ component NavigationButton(name string, target string, icon string)
|
|||||||
span.navigation-text= name
|
span.navigation-text= name
|
||||||
|
|
||||||
component SidebarButton(name string, target string, icon string)
|
component SidebarButton(name string, target string, icon string)
|
||||||
a.sidebar-link.ajax(href=target, aria-label=name, title=name, data-bubble="true")
|
a.sidebar-link.ajax(href=target, aria-label=name, data-bubble="true")
|
||||||
.sidebar-button
|
.sidebar-button
|
||||||
Icon(icon)
|
Icon(icon)
|
||||||
span.sidebar-text= name
|
span.sidebar-text= name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
vertical
|
vertical
|
||||||
width 100%
|
width 100%
|
||||||
max-width table-width-normal
|
max-width table-width-normal
|
||||||
// margin 0 auto
|
margin 0 auto
|
||||||
margin-bottom 1rem
|
margin-bottom 1rem
|
||||||
|
|
||||||
.anime-list
|
.anime-list
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/utils"
|
"github.com/animenotifier/notify.moe/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get the dashboard or the frontpage when logged out.
|
// Get the anime list or the frontpage when logged out.
|
||||||
func Get(ctx *aero.Context) string {
|
func Get(ctx *aero.Context) string {
|
||||||
user := utils.GetUser(ctx)
|
user := utils.GetUser(ctx)
|
||||||
|
|
||||||
@ -27,5 +27,5 @@ func Get(ctx *aero.Context) string {
|
|||||||
animeList.PrefetchAnime()
|
animeList.PrefetchAnime()
|
||||||
animeList.Sort()
|
animeList.Sort()
|
||||||
|
|
||||||
return ctx.HTML(components.AnimeLists(animeList.SplitByStatus(), animeList.User(), user))
|
return ctx.HTML(components.Home(animeList.Watching(), animeList.User(), user, "watching"))
|
||||||
}
|
}
|
||||||
|
3
pages/home/home.pixy
Normal file
3
pages/home/home.pixy
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
component Home(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User, status string)
|
||||||
|
StatusTabs("/animelist/")
|
||||||
|
AnimeListFilteredByStatus(animeList, viewUser, user, status)
|
@ -1,7 +1,7 @@
|
|||||||
html
|
html
|
||||||
height 100%
|
height 100%
|
||||||
font-family "Ubuntu", "Trebuchet MS", sans-serif
|
font-family "Ubuntu", "Trebuchet MS", sans-serif
|
||||||
font-size 105%
|
font-size 95%
|
||||||
|
|
||||||
body
|
body
|
||||||
tab-size 4
|
tab-size 4
|
||||||
@ -9,6 +9,7 @@ body
|
|||||||
height 100%
|
height 100%
|
||||||
color text-color
|
color text-color
|
||||||
background-color bg-color
|
background-color bg-color
|
||||||
|
noise-strong
|
||||||
|
|
||||||
a
|
a
|
||||||
color link-color
|
color link-color
|
||||||
|
@ -17,6 +17,12 @@ mixin vertical-wrap
|
|||||||
display flex
|
display flex
|
||||||
flex-flow column wrap
|
flex-flow column wrap
|
||||||
|
|
||||||
|
mixin noise-light
|
||||||
|
background-image url("/images/elements/noise-light.png")
|
||||||
|
|
||||||
|
mixin noise-strong
|
||||||
|
background-image url("/images/elements/noise-strong.png")
|
||||||
|
|
||||||
mixin ui-element
|
mixin ui-element
|
||||||
border 1px solid ui-border-color
|
border 1px solid ui-border-color
|
||||||
background ui-background
|
background ui-background
|
||||||
|
@ -23,7 +23,7 @@ sidebar-spacing-y = 0.7rem
|
|||||||
justify-content center
|
justify-content center
|
||||||
margin 0.8rem 0
|
margin 0.8rem 0
|
||||||
|
|
||||||
> 700px
|
> 800px
|
||||||
#sidebar
|
#sidebar
|
||||||
opacity 1
|
opacity 1
|
||||||
transform none
|
transform none
|
||||||
@ -31,6 +31,7 @@ sidebar-spacing-y = 0.7rem
|
|||||||
pointer-events all
|
pointer-events all
|
||||||
box-shadow none
|
box-shadow none
|
||||||
border-right ui-border
|
border-right ui-border
|
||||||
|
background rgba(0, 0, 0, 0.03)
|
||||||
|
|
||||||
.sidebar-visible
|
.sidebar-visible
|
||||||
transform translateX(0) !important
|
transform translateX(0) !important
|
||||||
@ -48,7 +49,6 @@ sidebar-spacing-y = 0.7rem
|
|||||||
horizontal
|
horizontal
|
||||||
align-items center
|
align-items center
|
||||||
padding sidebar-spacing-y 1rem
|
padding sidebar-spacing-y 1rem
|
||||||
font-size 0.92rem
|
|
||||||
// background ui-background
|
// background ui-background
|
||||||
|
|
||||||
.icon
|
.icon
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
table
|
table
|
||||||
width 100%
|
width 100%
|
||||||
max-width table-width-normal
|
max-width table-width-normal
|
||||||
// margin 0 auto
|
margin 0 auto
|
||||||
|
|
||||||
tr
|
tr
|
||||||
border-bottom-width 1px
|
border-bottom-width 1px
|
||||||
|
@ -1,14 +1,22 @@
|
|||||||
.tab
|
.tab
|
||||||
color text-color !important
|
color text-color !important
|
||||||
padding 0.5rem 1rem
|
padding 0.5rem 1rem
|
||||||
|
background-color rgb(238, 238, 238)
|
||||||
border-right ui-border
|
border-right ui-border
|
||||||
background-color rgb(224, 224, 224) !important
|
border-bottom ui-border
|
||||||
|
white-space nowrap
|
||||||
|
|
||||||
:hover,
|
:hover,
|
||||||
&.active
|
&.active
|
||||||
background-color bg-color !important
|
background-color bg-color !important
|
||||||
transform none
|
transform none
|
||||||
|
|
||||||
|
&.active
|
||||||
|
border-bottom-color transparent
|
||||||
|
|
||||||
|
:first-child
|
||||||
|
border-left ui-border
|
||||||
|
|
||||||
// color text-color !important
|
// color text-color !important
|
||||||
// :hover
|
// :hover
|
||||||
// color white !important
|
// color white !important
|
||||||
@ -26,10 +34,12 @@
|
|||||||
|
|
||||||
.tabs
|
.tabs
|
||||||
horizontal
|
horizontal
|
||||||
margin-left calc(content-padding * -1)
|
justify-content center
|
||||||
margin-top calc(content-padding * -1)
|
// margin-left calc(content-padding * -1)
|
||||||
margin-right calc(content-padding * -2)
|
// margin-top calc(content-padding * -1)
|
||||||
border-bottom ui-border
|
// margin-right calc(content-padding * -2)
|
||||||
|
margin-bottom content-padding
|
||||||
|
// background-color rgba(0, 0, 0, 0.02)
|
||||||
// justify-content flex-start !important
|
// justify-content flex-start !important
|
||||||
// margin-bottom 1rem
|
// margin-bottom 1rem
|
||||||
// margin-top -0.6rem
|
// margin-top -0.6rem
|
Loading…
Reference in New Issue
Block a user