Added documentation to functions and basic JWT generation
This commit is contained in:
@@ -2,6 +2,7 @@ package page
|
||||
|
||||
import "projectreshoot/view/layout"
|
||||
|
||||
// Returns the about page content
|
||||
templ About() {
|
||||
@layout.Global() {
|
||||
<div class="text-center max-w-150 m-auto">
|
||||
|
||||
@@ -2,6 +2,9 @@ package page
|
||||
|
||||
import "projectreshoot/view/layout"
|
||||
|
||||
// Page template for Error pages. Error code should be a HTTP status code as
|
||||
// a string, and err should be the corresponding response title.
|
||||
// Message is a custom error message displayed below the code and error.
|
||||
templ Error(code string, err string, message string) {
|
||||
@layout.Global() {
|
||||
<div
|
||||
|
||||
@@ -2,6 +2,7 @@ package page
|
||||
|
||||
import "projectreshoot/view/layout"
|
||||
|
||||
// Page content for the index page
|
||||
templ Index() {
|
||||
@layout.Global() {
|
||||
<div class="text-center mt-24">
|
||||
|
||||
@@ -3,6 +3,7 @@ package page
|
||||
import "projectreshoot/view/layout"
|
||||
import "projectreshoot/view/component/form"
|
||||
|
||||
// Returns the login page
|
||||
templ Login() {
|
||||
@layout.Global() {
|
||||
<div class="max-w-100 mx-auto px-2">
|
||||
|
||||
Reference in New Issue
Block a user