Better login page styles and incentive (#2293)
Some checks failed
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
Test & Docs / docs (push) Has been cancelled

Fixes https://github.com/umap-project/umap-dsfr/issues/21

Rel.
24f23874f7
This commit is contained in:
David Larlet 2024-11-22 09:29:47 -05:00 committed by GitHub
commit b6229a05b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 8 deletions

View file

@ -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;

View file

@ -2,6 +2,7 @@
/* Colors. */
--color-waterMint: #B9F5D2;
--color-darkBlue: #263B58;
--color-lighterGray: #f6f6f6;
--color-lightGray: #ddd;
--color-mediumGray: #3e4444;
--color-darkGray: #323737;

View file

@ -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">
@ -47,9 +48,9 @@
</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 %}