Refine Forgejo sign-in button

This commit is contained in:
ZTatman 2026-05-16 14:08:15 -04:00
parent 746472d532
commit 0b28a58234
3 changed files with 34 additions and 18 deletions

20
.zed/settings.json Normal file
View file

@ -0,0 +1,20 @@
{
"lsp": {
"basedpyright": {
"settings": {
"python.pythonPath": "web/.venv/bin/python"
}
}
},
"languages": {
"HTML": {
"formatter": {
"external": {
"command": "uv",
"arguments": ["run", "--directory", "web", "djlint", "--reformat", "-"]
}
},
"format_on_save": "on"
}
}
}

View file

@ -15,7 +15,7 @@
</head>
<body class="min-h-screen bg-surface text-sm text-text antialiased">
<header class="border-b border-border bg-surface-bright">
<div class="mx-auto flex max-w-[1280px] items-center justify-between px-4 py-3 sm:px-8">
<div class="mx-auto flex max-w-7xl items-center justify-between px-4 py-3 sm:px-8">
<a href="/"
class="flex items-center gap-2 text-base font-semibold tracking-normal text-text transition hover:text-primary">
<span class="grid size-7 place-items-center rounded-md border border-primary/20 bg-primary text-xs font-semibold text-white">M</span>
@ -30,21 +30,19 @@
{% else %}
<a href="/auth/login/forgejo"
class="inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-white transition hover:bg-primary-hover focus:ring-2 focus:ring-primary-muted">
<span class="grid size-5 place-items-center rounded-sm bg-white p-0.5">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4"
aria-hidden="true" />
</span>
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4 shrink-0 brightness-0 invert"
aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}
</nav>
</div>
</header>
<main class="mx-auto max-w-[1280px] px-4 py-8 sm:px-8">
<main class="mx-auto max-w-7xl px-4 py-8 sm:px-8">
{% block content %}{% endblock %}
</main>
</body>

View file

@ -22,14 +22,12 @@
{% else %}
<a href="/auth/login/forgejo"
class="inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2.5 text-sm font-medium text-white transition hover:bg-primary-hover focus:ring-2 focus:ring-primary-muted">
<span class="grid size-5 place-items-center rounded-sm bg-white p-0.5">
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4"
aria-hidden="true" />
</span>
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
alt=""
width="16"
height="16"
class="size-4 shrink-0 brightness-0 invert"
aria-hidden="true" />
<span>Sign in with Forgejo</span>
</a>
{% endif %}