tmpl: add text to home page [skip ci]

This commit is contained in:
surtur 2023-09-04 16:17:14 +02:00
parent fcea85e54b
commit d0867f0686
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -12,6 +12,60 @@
<h1 class="mt-20 text-2xl text-pink-400 font-bold">
Welcome, <code>{{.Name}}</code>!<br>
</h1>
{{if .User}}
{{if .User.IsAdmin}}
<div class="px-10 mx-16 md:mx-32">
<p class="mt-4 px-12 text-sm text-gray-500 dark:text-gray-400">
<span class="font-mono text-md">&#128712;</span> To query
the breach APIs, you need to create a <b>user-level</b>
account. To use it, log into it in another browser
(<em>not</em> just another browser window, as normally that
would share the session details of this user). User and
administrator-level accounts each have distinct
capabilities. Similarly to how it is only possible to
manage users using the administrator-level account,
browsing breach data is only allowed for user-level
accounts
<a href="https://git.dotya.ml/mirre-mt/masters-thesis/" rel="noopener"
target="_blank"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
&#128712; learn more about this project</a>.
</p>
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
<span class="font-mono text-md">&#128712;</span> Add a new user
<a href="/manage/users/new"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
from here</a>, or
<a href="/manage/users"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
view a listing of all existing users</a>.
</p>
<p class="mt-4 text-sm text-gray-500 dark:text-gray-400">
<span class="font-mono text-md">&#128712;</span> You can also view the configured API keys
<a href="/manage/api-keys"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
here</a>.
</p>
</div>
{{else}}
<div class="px-10 mx-16 md:px-32">
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
<span class="font-mono text-md">&#128712;</span>
Check whether your email account is a part of a breach
<a href="/user/hibp-search"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
here</a>.
</p>
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
<span class="font-mono text-md">&#128712;</span>
Alternatively,
<a href="https://git.dotya.ml/mirre-mt/masters-thesis/"
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
learn more</a> about this project.
</p>
</div>
{{end}}
{{end}}
<div class="mt-8 md:flex md:items-center md:place-items-center md:justify-between">
<form method="POST" class="w-full md:w-5xl" action="/logout">
<input type="hidden" name="csrf" value="{{- .CSRF -}}">