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
## 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
### Prerequisites

View File

@ -4,6 +4,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, conte
title= app.Config.Title
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)
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/hajchfikckiofgilinkpifobdbiajfch")
link(rel="manifest", href="/manifest.json")
body
#container(class=utils.GetContainerClass(ctx))

View File

@ -2,7 +2,7 @@ component FrontPage
.frontpage
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

View File

@ -17,3 +17,6 @@
border-radius 3px
box-shadow shadow-medium
margin-bottom 2rem
:hover
cursor pointer

View File

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