From 575fea388bedcd52976054dc8b5ffce8713c25f1 Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 14 Jul 2020 13:39:51 -0700 Subject: [PATCH] tweaked init form style, redirects to login when set up complete --- brain/views/init.pug | 16 ++++++++-------- src/com/Base.js | 4 ++-- src/styles/main/_forms.styl | 4 ++++ src/styles/main/_index.styl | 16 +++++++++++++--- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/brain/views/init.pug b/brain/views/init.pug index 97441d5..9dd7189 100644 --- a/brain/views/init.pug +++ b/brain/views/init.pug @@ -3,29 +3,29 @@ block main-content #dash-index #dash-index-wrapper .dash-init#dash-init - h1 HI! Let's get you set up, champ. - h2 Just a few questions to get started br form#init-form + h1 What up. + p Just fill these in and it'll get you started. label What's your handle? br - input(type='text', name='new_member_handle' id='new_member_handle', placeholder="What\'s your handle?") + input.large(type='text', name='new_member_handle' id='new_member_handle', placeholder="What\'s your handle?") br label Let's get that email br - input(type='text', name='new_member_email' id='new_member_email', placeholder="Email Please") + input.large(type='text', name='new_member_email' id='new_member_email', placeholder="Email Please") br label Let's get a password br - input(type='password', name='new_member_pass' id='new_member_pass', placeholder="Password Please") + input.large(type='password', name='new_member_pass' id='new_member_pass', placeholder="Password Please") br label And let's confirm that password br - input(type='password', name='new_member_pass2' id='new_member_pass2', placeholder="Email Confirm") + input.large(type='password', name='new_member_pass2' id='new_member_pass2', placeholder="Email Confirm") br label And finally, a title br - input(type='text', name='new_member_title' id='new_member_title', placeholder="Site Title Please") + input.large(type='text', name='new_member_title' id='new_member_title', placeholder="Site Title Please") br - button#init-blog(data-action='blog-init' type='submit') LETSGO + button#init-blog(data-action='blog-init' type='submit') SET IT UP diff --git a/src/com/Base.js b/src/com/Base.js index e938466..312e208 100644 --- a/src/com/Base.js +++ b/src/com/Base.js @@ -68,8 +68,8 @@ export default class Base { } else { notify.alert(response.message, true); setTimeout(() => { - //window.location = '/@/dashboard'; - }, 500); + window.location = '/@/dashboard'; + }, 700); } }) .catch(err => { diff --git a/src/styles/main/_forms.styl b/src/styles/main/_forms.styl index 0505c2d..3f60c8e 100644 --- a/src/styles/main/_forms.styl +++ b/src/styles/main/_forms.styl @@ -25,6 +25,10 @@ button, input[type=submit] cursor pointer border 0 +input.large + font-size 1.4em + padding 10px + select font 1em $monoType border 1px solid $secondary diff --git a/src/styles/main/_index.styl b/src/styles/main/_index.styl index 83d85b3..e3d6543 100644 --- a/src/styles/main/_index.styl +++ b/src/styles/main/_index.styl @@ -24,12 +24,22 @@ form background $white - padding 10px - input[type=email], input[type=password], input[type=text] + padding 15px + h1 + color $primary + p + color $primary - 60% + border-top 1px solid $primary + border-bottom 1px solid $primary + padding 10px 0 10px 0 + input.large[type=email], input[type=password], input[type=text] margin-bottom 15px + margin-top 5px button height 30px - width 100px + width 120px + margin 0 auto + display block #dash-login width 100%