diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 6 | ||||
| -rw-r--r-- | templates/guest.html | 13 |
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 |