53 lines
2.4 KiB
Plaintext
53 lines
2.4 KiB
Plaintext
package userView
|
|
|
|
import "github.com/fossyy/filekeeper/view/layout"
|
|
|
|
templ content(email string, username string, title string) {
|
|
@layout.Base(title){
|
|
<div class="bg-white overflow-hidden shadow rounded-lg border">
|
|
<div class="px-4 py-5 sm:px-6">
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
|
User Profile
|
|
</h3>
|
|
<p class="mt-1 max-w-2xl text-sm text-gray-500">
|
|
This is some information about the user.
|
|
</p>
|
|
</div>
|
|
<div class="border-t border-gray-200 px-4 py-5 sm:p-0">
|
|
<dl class="sm:divide-y sm:divide-gray-200">
|
|
<div class="py-3 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
|
<dt class="text-sm font-medium text-gray-500">
|
|
Full name
|
|
</dt>
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
{ username }
|
|
</dd>
|
|
</div>
|
|
<div class="py-3 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
|
<dt class="text-sm font-medium text-gray-500">
|
|
Email address
|
|
</dt>
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
{ email }
|
|
</dd>
|
|
</div>
|
|
<div class="py-3 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
|
<dt class="text-sm font-medium text-gray-500">
|
|
Password
|
|
</dt>
|
|
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
|
|
ntah lah
|
|
</dd>
|
|
</div>
|
|
</dl>
|
|
</div>
|
|
<form action="/logout" method="get">
|
|
<button type="submit" class="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900">Logout</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
}
|
|
|
|
templ Main(title string, email string, username string) {
|
|
@content(email, username, title)
|
|
} |