From bdc88e0644ebc657a716643b093c4cb2491b76dd Mon Sep 17 00:00:00 2001 From: 0xjrx Date: Mon, 17 Mar 2025 16:25:18 +0100 Subject: [PATCH] feat: add button for t2s Refs: OPS-56 --- senju/templates/haiku.html | 58 +++++++++++++++++++++++++++++--------- senju/templates/scan.html | 2 +- senju/test.py | 7 +++++ 3 files changed, 53 insertions(+), 14 deletions(-) create mode 100644 senju/test.py diff --git a/senju/templates/haiku.html b/senju/templates/haiku.html index f4043b2..10cae42 100644 --- a/senju/templates/haiku.html +++ b/senju/templates/haiku.html @@ -1,32 +1,64 @@ {% extends "base.html" %} - {% block content %}

{{ title }}

-

+

{% for line in context.haiku.lines %} {{ line }}
{% endfor %}

+
+ class="inline-block bg-violet-600 hover:bg-violet-700 text-white font-bold py-2 px-4 rounded-lg mt-6"> Back to Home
{% endblock %} diff --git a/senju/templates/scan.html b/senju/templates/scan.html index b84a917..a77f594 100644 --- a/senju/templates/scan.html +++ b/senju/templates/scan.html @@ -153,7 +153,7 @@ Vote him, task complete. responseBox.classList.remove('opacity-0'); // Example response - document.getElementById('ai-response').textContent = 'Dominic Monaghan interviewing Elijah Wood if he will wear wigs'; + document.getElementById('ai-response').textContent = 'Amogus'; } else { errorMessage.classList.remove('hidden'); diff --git a/senju/test.py b/senju/test.py new file mode 100644 index 0000000..31b8119 --- /dev/null +++ b/senju/test.py @@ -0,0 +1,7 @@ +from senju.haiku import Haiku +from senju.store_manager import StoreManager + +haiku = Haiku(["Red suit, vents unseen,"," Sus behavior, crew unsure,"," Vote him, task complete."]) +store = StoreManager() +store.save_haiku(haiku) +