Improved frontpage

This commit is contained in:
Eduard Urbach 2017-06-25 18:06:03 +02:00
parent 8001b30436
commit aa1d791e24
5 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Anime Notifier # Anime Notifier
## Info
notify.moe is powered by the [Aero framework](https://github.com/aerogo/aero) from the same author. The project also uses Go and Aerospike.
## Installation ## Installation
### Prerequisites ### Prerequisites

View File

@ -4,6 +4,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, conte
title= app.Config.Title title= app.Config.Title
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes") meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
meta(name="theme-color", content=app.Config.Manifest.ThemeColor) meta(name="theme-color", content=app.Config.Manifest.ThemeColor)
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/hajchfikckiofgilinkpifobdbiajfch")
link(rel="manifest", href="/manifest.json") link(rel="manifest", href="/manifest.json")
body body
#container(class=utils.GetContainerClass(ctx)) #container(class=utils.GetContainerClass(ctx))

View File

@ -2,7 +2,7 @@ component FrontPage
.frontpage .frontpage
h2 notify.moe h2 notify.moe
img.screenshot(src="/images/elements/extension-screenshot.png", alt="Screenshot of the browser extension") img.action.screenshot(src="/images/elements/extension-screenshot.png", alt="Screenshot of the browser extension", data-action="installExtension", data-trigger="click")
Login Login

View File

@ -16,4 +16,7 @@
max-width 100% max-width 100%
border-radius 3px border-radius 3px
box-shadow shadow-medium box-shadow shadow-medium
margin-bottom 2rem margin-bottom 2rem
:hover
cursor pointer

View File

@ -138,4 +138,10 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen
}) })
.catch(console.error) .catch(console.error)
.then(() => arn.loading(false)) .then(() => arn.loading(false))
}
// Chrome extension installation
export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
let browser: any = window["chrome"]
browser.webstore.install()
} }