diff --git a/site/client/app/modules/landing/views/landing.html b/site/client/app/modules/landing/views/landing.html index da4bc29..9ac4fd9 100644 --- a/site/client/app/modules/landing/views/landing.html +++ b/site/client/app/modules/landing/views/landing.html @@ -18,6 +18,8 @@ Play as guest Login + Nope Nope + \ No newline at end of file diff --git a/site/client/app/modules/session/components/register.js b/site/client/app/modules/session/components/register.js index 81c9ea0..56261c9 100644 --- a/site/client/app/modules/session/components/register.js +++ b/site/client/app/modules/session/components/register.js @@ -4,11 +4,21 @@ module.exports = { inherit: true, + data: function() { + return { + username: '', + password: '', + email: '' + } + }, + methods: { register: function(e) { e.preventDefault(); - console.log("bal"); + if( ! this.username || ! this.password || ! this.email) { + $('.form-error').hide().fadeIn('fast'); + } return false; } diff --git a/site/client/app/modules/session/views/register.html b/site/client/app/modules/session/views/register.html index 133c112..1258027 100644 --- a/site/client/app/modules/session/views/register.html +++ b/site/client/app/modules/session/views/register.html @@ -1,7 +1,7 @@
- - - + + +
diff --git a/site/client/assets/sass/_form.scss b/site/client/assets/sass/_form.scss index 9fc7dbd..9704f19 100644 --- a/site/client/assets/sass/_form.scss +++ b/site/client/assets/sass/_form.scss @@ -101,4 +101,13 @@ } :-ms-input-placeholder { color: darken(#8798ac, 10%); +} + +.form-error { + float: left; + clear: both; + color: #c64b4b; + font-size: 15px; + margin: 20px 0; + display: none; } \ No newline at end of file