summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/auth.html22
-rw-r--r--components/index.html12
2 files changed, 3 insertions, 31 deletions
diff --git a/components/auth.html b/components/auth.html
deleted file mode 100644
index 5122919..0000000
--- a/components/auth.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{{define "auth"}}
-<div id="logindiv">
- <form class="space-y-6" hx-target="#ancestor" hx-swap="outerHTML">
- <div>
- <label For="username" class="block text-sm font-medium leading-6 text-white-900">username</label>
- <div class="mt-2">
- <input id="username" name="username" autocomplete="username" class="rounded-md text-center text-black" required />
- </div>
- </div>
- <div>
- <label For="password" class="block text-sm font-medium leading-6 text-white-900">password</label>
- <div class="mt-2">
- <input id="password" name="password" type="password" required class="rounded-md text-center text-black" />
- </div>
- </div>
- <div>
- <button type="submit" hx-post="/login" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Log in</button>
- <button type="submit" hx-post="/signup" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Sign up</button>
- </div>
- </form>
-</div>
-{{end}}
diff --git a/components/index.html b/components/index.html
index 4562550..cd6eeeb 100644
--- a/components/index.html
+++ b/components/index.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Action Points Journal</title>
+ <title>German exercises</title>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="/assets/style.css" />
<link rel="icon" sizes="64x64" href="/assets/favicon/wolfhead_negated.ico" />
@@ -10,18 +10,12 @@
</head>
<body>
<div id="ancestor">
- {{ if not .Username }}
<div>
- {{ template "auth" }}
+ {{.Text}}
</div>
- {{ else }}
<div>
- hello user
+ <!-->here we need to iterate through options and make them selectable; ai!<-->
</div>
- <div>
- some button
- </div>
- {{ end }}
</div>
</body>
</html>