diff --git a/README.md b/README.md index e55dfb03..e9c91f65 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/layout/layout.pixy b/layout/layout.pixy index 86007cdb..65523533 100644 --- a/layout/layout.pixy +++ b/layout/layout.pixy @@ -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)) diff --git a/pages/frontpage/frontpage.pixy b/pages/frontpage/frontpage.pixy index 990749b4..30842eef 100644 --- a/pages/frontpage/frontpage.pixy +++ b/pages/frontpage/frontpage.pixy @@ -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 diff --git a/pages/frontpage/frontpage.scarlet b/pages/frontpage/frontpage.scarlet index 156b6913..98cb03ae 100644 --- a/pages/frontpage/frontpage.scarlet +++ b/pages/frontpage/frontpage.scarlet @@ -16,4 +16,7 @@ max-width 100% border-radius 3px box-shadow shadow-medium - margin-bottom 2rem \ No newline at end of file + margin-bottom 2rem + + :hover + cursor pointer \ No newline at end of file diff --git a/scripts/actions.ts b/scripts/actions.ts index a6e7cb5e..8d939899 100644 --- a/scripts/actions.ts +++ b/scripts/actions.ts @@ -138,4 +138,10 @@ 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() } \ No newline at end of file