From 48463d414bf61ff66cbdd2da6a37b39e0595be0f Mon Sep 17 00:00:00 2001 From: Matthew Iverson Date: Fri, 29 Nov 2024 14:35:49 -0500 Subject: [PATCH] Upload files to "templates" --- templates/base.html | 129 +++++++++++++--------------------- templates/notebook.html | 11 ++- templates/register.html | 99 +++++++++++--------------- templates/search_results.html | 18 +++++ 4 files changed, 114 insertions(+), 143 deletions(-) create mode 100644 templates/search_results.html diff --git a/templates/base.html b/templates/base.html index 752bf61..05b8e6c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,35 +1,26 @@ - - - - {{ title }} - - {% if theme == 'dark' %} - - {% elif theme == 'modern' %} - - {% elif theme == 'vampire' %} - - {% elif theme == 'nordic' %} - - {% elif theme == 'halloween' %} - - {% else %} - - {% endif %} - + + + + {{ title }} + + +
- -
-
-
-
-
- - - - - -
+
{{ random_tip | safe }} @@ -83,56 +66,40 @@ + diff --git a/templates/notebook.html b/templates/notebook.html index b4801c6..b21aa3a 100644 --- a/templates/notebook.html +++ b/templates/notebook.html @@ -1,28 +1,33 @@ {% extends "base.html" %} {% block content %}

Notebook

+ +
- + - +

+ {% for category, entries in notebook.items() %}

{{ category.capitalize() }}

diff --git a/templates/register.html b/templates/register.html index 284a996..41ab1e0 100644 --- a/templates/register.html +++ b/templates/register.html @@ -3,32 +3,7 @@ {% block content %}

Create an Account

-
-
- - -
- -
- - -
- -
- - - Password must be at least 10 characters, contain 1 uppercase letter, 1 special character, and 1 number. -
- -
- - -
- - -
- -
+ +
+ + + + + + + + + + + + + +
+ + {% endblock %} diff --git a/templates/search_results.html b/templates/search_results.html new file mode 100644 index 0000000..7090a67 --- /dev/null +++ b/templates/search_results.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block content %} +

Search Results for "{{ query }}"

+ +{% if results %} +
    + {% for result in results %} +
  • + {{ result.title }}
    +

    {{ result.snippet }}

    +
  • + {% endfor %} +
+{% else %} +

No results found.

+{% endif %} +{% endblock %}