build: setup docker containers for development

This commit is contained in:
2026-03-12 18:37:56 +01:00
parent c16657f996
commit 83cad4b0ae
33 changed files with 170 additions and 138 deletions

View File

@@ -0,0 +1,8 @@
extends layout
block content
h1 Conclave
form(method="POST" action="/conclave/new")
input(type="text" name="title" placeholder="Title")
textarea(name="content")
button(type="submit") Publish

View File

@@ -0,0 +1,6 @@
extends layout
block content
h1= message
h2= error.status
pre #{error.stack}

View File

@@ -0,0 +1,9 @@
extends layout
block content
section
ul
each post in posts
li
a(href=`/posts/${post.id}`)
h2= post.title

View File

@@ -0,0 +1,16 @@
doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
block head
body
header
h1
a(href="/") Pathtoglory.quest
p I'm on a quest to learn and understand things.
block content
footer
p Pathtoglory.quest No copyright. Copy and paste me.

View File

@@ -0,0 +1,6 @@
extends layout
block content
article
h1= post.title
div!= html

View File

@@ -0,0 +1,12 @@
extends ../layout
block head
script(defer src="https://unpkg.com/@simplewebauthn/browser/dist/bundle/index.umd.min.js")
script(defer src="/javascripts/user-login.js")
block content
h2 Login
form
label(for="username") Username
input(type="text" name="username" autocomplete="webauth" placeholder="Username")
input(type="submit" value="Login with passkey")

View File

@@ -0,0 +1,13 @@
extends ../layout
block head
script(defer src="https://unpkg.com/@simplewebauthn/browser/dist/bundle/index.umd.min.js")
script(defer src="/javascripts/users.js")
block content
h2 Register new user
form
label(for="username") Username
input(type="text" name="username" autocomplete="username webauth" placeholder="Username")
button(id="register") Register