refactored view package
This commit is contained in:
28
internal/view/authview/register_page.templ
Normal file
28
internal/view/authview/register_page.templ
Normal file
@@ -0,0 +1,28 @@
|
||||
package authview
|
||||
|
||||
import "git.haelnorr.com/h/oslstats/internal/view/baseview"
|
||||
|
||||
// Returns the login page
|
||||
templ RegisterPage(username string) {
|
||||
@baseview.Layout("Register") {
|
||||
<div class="max-w-100 mx-auto px-2">
|
||||
<div class="mt-7 bg-mantle border border-surface1 rounded-xl">
|
||||
<div class="p-4 sm:p-7">
|
||||
<div class="text-center">
|
||||
<h1
|
||||
class="block text-2xl font-bold"
|
||||
>Set your display name</h1>
|
||||
<p
|
||||
class="mt-2 text-sm text-subtext0"
|
||||
>
|
||||
Select your display name. This must be unique, and cannot be changed.
|
||||
</p>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
@RegisterFormForm(username)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user