Added extension navigation
This commit is contained in:
@ -31,5 +31,5 @@ func Get(ctx *aero.Context) string {
|
||||
watchingList := animeList.Watching()
|
||||
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
|
Reference in New Issue
Block a user