Refine Forgejo sign-in button
This commit is contained in:
parent
746472d532
commit
0b28a58234
3 changed files with 34 additions and 18 deletions
20
.zed/settings.json
Normal file
20
.zed/settings.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="min-h-screen bg-surface text-sm text-text antialiased">
|
<body class="min-h-screen bg-surface text-sm text-text antialiased">
|
||||||
<header class="border-b border-border bg-surface-bright">
|
<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="/"
|
<a href="/"
|
||||||
class="flex items-center gap-2 text-base font-semibold tracking-normal text-text transition hover:text-primary">
|
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>
|
<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 %}
|
{% else %}
|
||||||
<a href="/auth/login/forgejo"
|
<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">
|
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"
|
||||||
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
|
alt=""
|
||||||
alt=""
|
width="16"
|
||||||
width="16"
|
height="16"
|
||||||
height="16"
|
class="size-4 shrink-0 brightness-0 invert"
|
||||||
class="size-4"
|
aria-hidden="true" />
|
||||||
aria-hidden="true" />
|
|
||||||
</span>
|
|
||||||
<span>Sign in with Forgejo</span>
|
<span>Sign in with Forgejo</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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 %}
|
{% block content %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,12 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/auth/login/forgejo"
|
<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">
|
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"
|
||||||
<img src="http://myst-forgejo-pk9mpr-31e452-76-13-111-87.sslip.io/assets/img/logo.svg"
|
alt=""
|
||||||
alt=""
|
width="16"
|
||||||
width="16"
|
height="16"
|
||||||
height="16"
|
class="size-4 shrink-0 brightness-0 invert"
|
||||||
class="size-4"
|
aria-hidden="true" />
|
||||||
aria-hidden="true" />
|
|
||||||
</span>
|
|
||||||
<span>Sign in with Forgejo</span>
|
<span>Sign in with Forgejo</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue