Skip to content

Commit

Permalink
Better login page styles and incentive (#2293)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbgk authored Nov 22, 2024
2 parents d84c524 + 1073fe6 commit b6229a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions umap/static/umap/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ input:-moz-placeholder, :-moz-placeholder {
body.login {
width: 320px;
margin: auto;
text-align: center;
background-color: var(--color-lighterGray);
color: var(--color-darkerGray);
}
body.login header {
display: flex;
justify-content: center;
}
.login-grid {
display: grid;
Expand Down
1 change: 1 addition & 0 deletions umap/static/umap/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* Colors. */
--color-waterMint: #B9F5D2;
--color-darkBlue: #263B58;
--color-lighterGray: #f6f6f6;
--color-lightGray: #ddd;
--color-mediumGray: #3e4444;
--color-darkGray: #323737;
Expand Down
13 changes: 7 additions & 6 deletions umap/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
<header class="umap-nav">
{% include "umap/branding.html" %}
</header>
<h2>{% trans "To save and easily find your maps, identify yourself." %}</h2>
{% if ENABLE_ACCOUNT_LOGIN %}
<h2>
{% trans "Please log in with your account" %}
</h2>
<h3>
{% trans "Please log in with your account:" %}
</h3>
<div>
{% if form.non_field_errors %}
<ul class="form-errors">
Expand All @@ -47,9 +48,9 @@ <h2>
</div>
{% endif %}
{% if backends.backends|length %}
<h2>
{% trans "Please choose a provider" %}
</h2>
<h3>
{% trans "Please choose a provider:" %}
</h3>
<div>
<ul class="login-grid block-grid">
{% for name in backends.backends %}
Expand Down

0 comments on commit b6229a0

Please sign in to comment.