Added extension navigation
This commit is contained in:
parent
45ace1ec60
commit
f02db2b9b8
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -16,7 +16,8 @@
|
|||||||
},
|
},
|
||||||
"search.exclude": {
|
"search.exclude": {
|
||||||
"components/": true,
|
"components/": true,
|
||||||
"**/*.svg": true
|
"**/*.svg": true,
|
||||||
|
"**/*.html": true
|
||||||
},
|
},
|
||||||
"[jade]": {
|
"[jade]": {
|
||||||
"files.trimTrailingWhitespace": false
|
"files.trimTrailingWhitespace": false
|
||||||
|
@ -41,6 +41,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
|
|||||||
Content(content)
|
Content(content)
|
||||||
LoadingAnimation
|
LoadingAnimation
|
||||||
StatusMessage
|
StatusMessage
|
||||||
|
ExtensionNavigation
|
||||||
if user != nil
|
if user != nil
|
||||||
#user(data-id=user.ID, data-theme=user.Settings().Theme)
|
#user(data-id=user.ID, data-theme=user.Settings().Theme)
|
||||||
script(src="/scripts")
|
script(src="/scripts")
|
||||||
|
@ -7,6 +7,7 @@ sidebar-spacing-y = 0.7rem
|
|||||||
top 0
|
top 0
|
||||||
z-index 10
|
z-index 10
|
||||||
width 70vw
|
width 70vw
|
||||||
|
max-width 300px
|
||||||
height 100%
|
height 100%
|
||||||
background sidebar-opaque-background
|
background sidebar-opaque-background
|
||||||
transform translateX(-100%)
|
transform translateX(-100%)
|
||||||
|
@ -31,5 +31,5 @@ func Get(ctx *aero.Context) string {
|
|||||||
watchingList := animeList.Watching()
|
watchingList := animeList.Watching()
|
||||||
watchingList.Sort()
|
watchingList.Sort()
|
||||||
|
|
||||||
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(watchingList, animeList.User(), user)))
|
return utils.AllowEmbed(ctx, ctx.HTML(components.BrowserExtension(watchingList, animeList.User(), user)))
|
||||||
}
|
}
|
||||||
|
7
pages/embed/embed.pixy
Normal file
7
pages/embed/embed.pixy
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
component BrowserExtension(watchingList *arn.AnimeList, viewUser *arn.User, user *arn.User)
|
||||||
|
AnimeList(watchingList, viewUser, user)
|
||||||
|
|
||||||
|
component ExtensionNavigation
|
||||||
|
nav.extension-navigation
|
||||||
|
button.action(data-trigger="click", data-action="toggleSidebar")
|
||||||
|
RawIcon("bars")
|
13
pages/embed/embed.scarlet
Normal file
13
pages/embed/embed.scarlet
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
.extension-navigation
|
||||||
|
display none
|
||||||
|
|
||||||
|
> 780px
|
||||||
|
.extension-navigation
|
||||||
|
display block
|
||||||
|
position fixed
|
||||||
|
bottom 1rem
|
||||||
|
left 1rem
|
||||||
|
|
||||||
|
> 790px
|
||||||
|
.extension-navigation
|
||||||
|
display none
|
Loading…
Reference in New Issue
Block a user