summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMorgana <Morgana@icolotl.com>2026-10-03 10:25:51 -0500
committerMorgana <Morgana@icolotl.com>2026-10-03 10:25:51 -0500
commitdfe2069c1dd4eb14d44a57d35d76afdc47d1598e (patch)
tree88d2a4688bbc536af1d90ce12118cbf028f9f60b /templates
parente96fdc880d45ab22eea5eb1210fe767ce7fcd34e (diff)
Initial captcha code
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
-rw-r--r--templates/guest.html13
2 files changed, 19 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index df1b899..caf8da7 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,6 +1,12 @@
<!DOCTYPE html>
<html lang="en">
+{% macro render_captcha(captcha) %}
+<drosera-captcha data-size="{{ captcha.size }}" data-label="{{ captcha.make_label() }}"
+ data-lock="{{ captcha.make_lock() }}" {% if captcha.reload %}data-reload{% endif %} {% if has_captcha(captcha.id)
+ %}data-solved{% endif %}></drosera-captcha>
+{% endmacro %}
+
<head>
<title>Drosera Springs | {% block title %}Website{% endblock %}</title>
<link rel="preload" href="/static/img/bgcropped.webp" as="image" fetchpriority="high" />
diff --git a/templates/guest.html b/templates/guest.html
new file mode 100644
index 0000000..8399554
--- /dev/null
+++ b/templates/guest.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block head %}
+<script src="{{ url_for('static', filename='script/captcha.js') }}" defer></script>
+{% endblock %}
+
+{% block content %}
+<main class="centered">
+ <h2>Guest Access</h2>
+ <p>Please solve the following captcha to continue.</p>
+ {{ render_captcha(captcha) }}
+</main>
+{% endblock %} \ No newline at end of file