Skip to content

Commit 166e45a

Browse files
authored
fix: logout template design adjustments (#1460)
1 parent b807156 commit 166e45a

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/templates/admin/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
<div class="flex flex-col gap-3 mt-6">
4646
{% component "unfold/components/button.html" with submit=1 variant="primary" class="submit-row w-full" %}
47-
{% translate 'Log in' %} <span class="material-symbols-outlined ml-2 relative right-0 transition-all group-hover:-right-1">arrow_forward</span>
47+
{% translate 'Log in' %} <span class="material-symbols-outlined relative right-0 transition-all group-hover:-right-1 text-sm">arrow_forward</span>
4848
{% endcomponent %}
4949

5050
{% url 'admin_password_reset' as password_reset_url %}

src/unfold/templates/registration/logged_out.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
{% extends "unfold/layouts/skeleton.html" %}
1+
{% extends 'unfold/layouts/unauthenticated.html' %}
22

3-
{% load i18n %}
3+
{% load i18n unfold %}
44

5-
{% block base %}
5+
{% block title %}
6+
{{ title }} | {{ site_title }}
7+
{% endblock %}
8+
9+
{% block content %}
610
<div id="page" class="bg-white flex min-h-screen dark:bg-base-900 ">
711
<div class="flex grow items-center justify-center mx-auto px-4">
812
<div class="w-full sm:w-96">
@@ -11,12 +15,13 @@ <h1 class="font-semibold mb-4 text-font-important-light text-xl tracking-tight d
1115
</h1>
1216

1317
<p class="leading-relaxed mb-10">
14-
{% translate "Thanks for spending some quality time with the web site today." %}
18+
{% trans "Thanks for spending some quality time with the web site today." %}
1519
</p>
1620

17-
<a href="{% url "admin:index" %}" class="bg-primary-600 block border border-transparent font-semibold py-2 rounded-default text-sm text-center text-white w-full">
18-
{% translate "Log in again" %}
19-
</a>
21+
{% url "admin:index" as login_url %}
22+
{% component "unfold/components/button.html" with href=login_url variant="primary" class="w-full" %}
23+
{% trans "Log in again" %} <span class="material-symbols-outlined relative right-0 transition-all group-hover:-right-1 text-sm">arrow_forward</span>
24+
{% endcomponent %}
2025
</div>
2126
</div>
2227
</div>

src/unfold/templates/unfold/helpers/unauthenticated_header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<div class="absolute flex flex-row items-center justify-between left-0 m-4 right-0 top-0">
44
{% if site_url %}
5-
<a href="{{ site_url }}" class="flex font-medium items-center text-sm text-primary-600 dark:text-primary-500">
6-
<span class="material-symbols-outlined mr-2">arrow_back</span> {% trans 'Return to site' %}
5+
<a href="{{ site_url }}" class="flex font-medium gap-2 group items-center text-sm text-primary-600 dark:text-primary-500">
6+
<span class="material-symbols-outlined left-0 relative text-sm transition-all group-hover:-left-1">arrow_back</span> {% trans 'Return to site' %}
77
</a>
88
{% endif %}
99

src/unfold/templates/unfold/helpers/unauthenticated_title.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ <h1 class="font-semibold">
66
<span class="block text-font-important-light dark:text-font-important-dark">{{ subtitle }} </span>
77
{% endif %}
88

9-
<span class="block text-primary-600 text-xl dark:text-primary-500">{{ title }}</span>
9+
<span class="block font-semibold text-primary-600 tracking-tight text-xl dark:text-primary-500">{{ title }}</span>
1010
</h1>
1111
</div>

0 commit comments

Comments
 (0)