Skip to content

Commit

Permalink
style(ui): 🎨 remove blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed May 2, 2024
1 parent a10ab45 commit 3895724
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions lifemonitor/auth/templates/auth/identity_not_found.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
{% block body %}

<div class="login-box" style="height: auto;">

{{ macros.render_logo(class="login-logo", style="width: auto") }}

<div class="card card-primary card-outline shadow-lg p-1 mb-5 bg-white rounded">
<div class="card card-primary card-outline shadow-lg p-1 mb-5 bg-white rounded">

<div class="card-body login-card-body">
{% if not identity %}
Expand Down Expand Up @@ -39,26 +39,26 @@
If you already have an account, we strongly recommend
that you <span class="text-center text-bold">Sign In</span>
with your existing credentials and link your new identity
<a href="{{ url_for("auth.profile") }}">from the account configuration page</a>.
<a href="{{ url_for("auth.profile") }}">from the account configuration page</a>.
</p>
<p class="text-bold">- OR -</p>
<p class="p-1 pb-4">
Click on <b>Register</b> to create a new account
linked to your <b>{{ identity.provider.name }}</b> identity.
</p>
</div>
</div>
</div>
{% endif %}

<form method="POST" action="{{action}}" >

{{ form.hidden_tag() }}

<div class="text-center mb-3 row">
<div class="text-center mb-3 row">
<div class="col-6">
<a href="{{ url_for("auth.login") }}" class="btn btn-block btn-secondary">
Sign In
</a>
</a>
</div>
<div class="col-6">
<a href="{{ url_for("auth.register_identity") }}" class="btn btn-block btn-primary">
Expand All @@ -73,4 +73,4 @@
</div>
</div>

{% endblock body %}
{% endblock body %}
22 changes: 11 additions & 11 deletions lifemonitor/auth/templates/auth/register.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
{% block body %}

<div class="login-box" style="height: auto;">

{{ macros.render_logo(class="login-logo", style="width: auto") }}

<div class="card card-primary card-outline shadow-lg p-1 mb-5 bg-white rounded">
<div class="card card-primary card-outline shadow-lg p-1 mb-5 bg-white rounded">

<div class="card-body login-card-body">
{% if not identity %}
<h5 class="login-box-msg text-bold m-0">Sign Up</h5>
{% else %}
<div class="text-center">
<div class="small text-muted m-2">
<div>
<div>
Sign Up for <span style="font-style: italic; font-family: Baskerville,Baskerville Old Face,Hoefler Text,Garamond,Times New Roman,serif;">Life</span><span class="small" style="font-size: 75%; margin: 0 -1px 0 1px;">-</span><span style="font-weight: bold; font-family: Gill Sans,Gill Sans MT,Calibri,sans-serif;">Monitor</span>
</div>
<div class="m-n1">
Expand All @@ -32,15 +32,15 @@
Hi, there!
{% endif %}
</h5>
</div>
</div>
<div class="mt-4 small text-muted" style="font-weight: lighter;">
Choose a username for your LifeMonitor account:
</div>
{% endif %}

<form method="POST" action="{{action}}" >
{% if identity %}
{{ form.identity(value=identity.user_info.sub) | safe }}
{{ form.identity(value=identity.user_info.sub) | safe }}
{% endif %}
{{ macros.render_custom_field(form.username, value=user.username if user else "") }}
{% if not identity %}
Expand All @@ -49,24 +49,24 @@
{% endif %}
{{ form.hidden_tag() }}

<div class="text-center mb-3 row">
<div class="text-center mb-3 row">
<div class="col-6">
<a href="{{ url_for("auth.login") }}" class="btn btn-block btn-secondary">
Back
</a>
</a>
</div>
<div class="col-6">
<button type="submit"
class="btn btn-block btn-primary">
Register
</button>
</button>
</div>
</div>

</form>

{% if not identity %}
<div class="social-auth-links text-center mb-3">
<div class="social-auth-links text-center mb-3">
<p class="text-bold">- OR -</p>
{% for p in providers %}
{% if p.client_name != 'lsaai' %}
Expand Down Expand Up @@ -96,12 +96,12 @@
Rather than creating a new account, we strongly recommend
that you <a href="{{ url_for("auth.login") }}" class="text-center">Sign In</a>
with your existing credentials and link your new identity
<a href="{{ url_for("auth.profile") }}">from the account configuration page</a>
<a href="{{ url_for("auth.profile") }}">from the account configuration page</a>
</div>
</p>
{% endif %}
</div>
</div>
</div>

{% endblock body %}
{% endblock body %}
2 changes: 1 addition & 1 deletion lifemonitor/templates/base.j2
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<script>
initCookieConsentBanner('{{ domain }}')
</script>
{% endif %}
{% endif %}
</body>


0 comments on commit 3895724

Please sign in to comment.