Skip to content

Commit 91a6500

Browse files
flex
1 parent c06fe80 commit 91a6500

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dockflare/app/templates/login.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
{% endwith %}
3333

3434
{% if oauth_providers and password_login_enabled %}
35-
<div class="flex flex-col md:flex-row items-stretch">
36-
<!-- Password Login Section -->
37-
<div class="w-full md:w-1/2 md:pr-6">
35+
36+
<div class="grid grid-cols-1 md:grid-cols-[1fr_auto_1fr] gap-x-8 items-center">
37+
38+
<!-- Column 1: Password Login -->
39+
<div>
3840
<h3 class="text-lg font-semibold mb-4 text-center md:text-left">Sign in with password</h3>
3941
<form method="POST" action="{{ url_for('web.login') }}">
4042
{% if form %}{{ form.hidden_tag() }}{% endif %}
@@ -66,11 +68,11 @@ <h3 class="text-lg font-semibold mb-4 text-center md:text-left">Sign in with pas
6668
</form>
6769
</div>
6870

69-
71+
<!-- Column 2: Divider -->
7072
<div class="divider md:divider-horizontal">OR</div>
7173

72-
<!-- OAuth Login Section -->
73-
<div class="w-full md:w-1/2 md:pl-6 flex flex-col justify-center">
74+
<!-- Column 3: OAuth Login -->
75+
<div class="flex flex-col justify-center">
7476
<h3 class="text-lg font-semibold mb-4 text-center md:text-left">Sign in with OAuth</h3>
7577
{% set logos = {
7678
'google': '<svg class="w-5 h-5" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512"><path fill="currentColor" d="M488 261.8C488 403.3 381.5 512 244 512 111.8 512 0 400.2 0 261.8 0 123.8 111.8 14 244 14c77.3 0 143.3 31.4 191.1 82.1l-73.3 73.3c-24.5-23.2-58.3-37.2-97.8-37.2-80.3 0-146.1 65.7-146.1 146.1s65.8 146.1 146.1 146.1c92.8 0 131.3-74.4 136.8-109.9H244v-89.9h239.1c4.9 26.9 7.9 54.9 7.9 84.9z"></path></svg>',
@@ -111,7 +113,7 @@ <h3 class="text-lg font-semibold mb-4 text-center md:text-left">Sign in with OAu
111113
{% endfor %}
112114
</div>
113115
{% elif password_login_enabled %}
114-
116+
<!-- Password login only (no OAuth) -->
115117
<form method="POST" action="{{ url_for('web.login') }}">
116118
{% if form %}{{ form.hidden_tag() }}{% endif %}
117119
<div class="form-control">

0 commit comments

Comments
 (0)