From a939d9fcb43e8466d44e7d3736d918831a1f2595 Mon Sep 17 00:00:00 2001 From: Lucas Brown Date: Fri, 2 Aug 2019 15:50:02 -0800 Subject: [PATCH] Updated formatting of the signup, login and error pages. --- cmd/web-app/static/assets/css/sb-admin-2.css | 25 +++++++++--- .../templates/content/error-generic.gohtml | 2 +- .../templates/content/signup-step1.gohtml | 39 ++++++++++++------- .../templates/content/user-login.gohtml | 1 - 4 files changed, 46 insertions(+), 21 deletions(-) diff --git a/cmd/web-app/static/assets/css/sb-admin-2.css b/cmd/web-app/static/assets/css/sb-admin-2.css index 90de565..2bdfe65 100755 --- a/cmd/web-app/static/assets/css/sb-admin-2.css +++ b/cmd/web-app/static/assets/css/sb-admin-2.css @@ -11641,20 +11641,20 @@ a:focus { } .bg-login-image { - background: url("https://source.unsplash.com/K4mSJ7kc0As/600x800"); - background-position: center; + background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-login-600x800.png"); + background-position: top center; background-size: cover; } .bg-register-image { - background: url("https://source.unsplash.com/Mv9hjnEUHR4/600x800"); - background-position: center; + background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-join-600x1000.png"); + background-position: top center; background-size: cover; } .bg-password-image { - background: url("https://source.unsplash.com/oWTW-jNGl9I/600x800"); - background-position: center; + background: url("https://dzuyel7n94hma.cloudfront.net/accelerator/img/saas-starter-kit-go-lang-green-600x800.png"); + background-position: top center; background-size: cover; } @@ -11674,6 +11674,19 @@ form.user .btn-user { padding: 0.75rem 1rem; } +.form-control-select-wrapper { + font-size: 0.8rem; + border-radius: 10rem; + padding: .55rem 1rem; + border: 1px solid #d1d3e2; +} +.form-control-select-box { + font-size: 0.8rem; + padding: 0; + border: 0px; +} + + .btn-google { color: #fff; background-color: #ea4335; diff --git a/cmd/web-app/templates/content/error-generic.gohtml b/cmd/web-app/templates/content/error-generic.gohtml index f1bbb51..cd6abe3 100644 --- a/cmd/web-app/templates/content/error-generic.gohtml +++ b/cmd/web-app/templates/content/error-generic.gohtml @@ -6,7 +6,7 @@
-
+
{{ .statusCode }}

{{ .errorMessage }}

{{ if .fullError }} diff --git a/cmd/web-app/templates/content/signup-step1.gohtml b/cmd/web-app/templates/content/signup-step1.gohtml index 5502991..b474a31 100644 --- a/cmd/web-app/templates/content/signup-step1.gohtml +++ b/cmd/web-app/templates/content/signup-step1.gohtml @@ -1,4 +1,4 @@ -{{define "title"}}Crean an Account{{end}} +{{define "title"}}Create an Account{{end}} {{define "style"}} {{end}} @@ -16,7 +16,14 @@

Create an Account!

{{ template "top-error" . }} + +
+ +
+

Your Organization details

+
+
@@ -35,16 +42,18 @@
- + {{ range $i := $.countries }} + {{ $hasGeonames := false }} + {{ range $c := $.geonameCountries }} + {{ if eq $c $i.Code }}{{ $hasGeonames = true }}{{ end }} + {{ end }} + {{ end }} - - {{ end }} - - {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Country" }} + + {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Country" }} +
@@ -57,7 +66,7 @@ {{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.Region" }}
-
+
{{template "invalid-feedback" dict "validationDefaults" $.validationDefaults "validationErrors" $.validationErrors "fieldName" "Account.City" }} @@ -70,6 +79,10 @@
+
+

Your User details

+
+
@@ -128,7 +141,7 @@ if ($(this).find('option:selected').attr('data-geonames') == 1) { // Replace the existing region with an empty dropdown. - $('#divAccountRegion').html(''); + $('#divAccountRegion').html('
'); // Query the API for a list of regions for the selected // country and populate the region dropdown. @@ -165,7 +178,7 @@ */ // Replace the existing zipcode text input with a new one that will supports autocomplete. - $('#divAccountZipcode').html(''); + $('#divAccountZipcode').html(''); $('#inputAccountZipcode').autoComplete({ minLength: 2, events: { diff --git a/cmd/web-app/templates/content/user-login.gohtml b/cmd/web-app/templates/content/user-login.gohtml index ecfe5ac..985fadd 100644 --- a/cmd/web-app/templates/content/user-login.gohtml +++ b/cmd/web-app/templates/content/user-login.gohtml @@ -40,7 +40,6 @@
-