From 8721810bc6f32c6fbe79b7e0bd46f753321cda5c Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Fri, 13 Sep 2019 23:34:58 -0600 Subject: [PATCH] Add create account form to /login view --- app/i18n/locales/en.json | 8 ++++- app/views/login/index.js | 65 +++++++++++++++++++++++++++++++--------- 2 files changed, 58 insertions(+), 15 deletions(-) diff --git a/app/i18n/locales/en.json b/app/i18n/locales/en.json index d860b7a..798a79e 100644 --- a/app/i18n/locales/en.json +++ b/app/i18n/locales/en.json @@ -12,9 +12,15 @@ "logged_out_join_now": "Join Now!" }, "login": { + "log_in": "Log In", "email": "Email", "password": "Password", - "login_button": "Log In!" + "login_button": "Log In!", + "create_account": "Create a New Account", + "confirm_password": "Confirm Password", + "username": "Username", + "display_name": "Display Name", + "create_account_button": "Create Account!" }, "search": { "header": "Search", diff --git a/app/views/login/index.js b/app/views/login/index.js index be839a8..7ba9b82 100644 --- a/app/views/login/index.js +++ b/app/views/login/index.js @@ -8,19 +8,56 @@ export const loginView = (state, emit) => { return html`
-
-
- - - +
+
+
+
+

${i18n.__('login.log_in')}

+
+
+ + + +
+
+
+
+
+
+

${i18n.__('login.create_account')}

+
+ +
+
-
- -
`; + + `; } \ No newline at end of file