From f89c336212f636cce1b741f20c3de71d9e14eb7a Mon Sep 17 00:00:00 2001 From: Henry Riddall Date: Sat, 9 Mar 2024 17:18:31 +0000 Subject: [PATCH 1/8] Remove bootstrap --- .vscode/launch.json | 4 +- todo_app/templates/index.html | 112 +++++++++++---------------------- todo_app/templates/layout.html | 34 +++++----- 3 files changed, 57 insertions(+), 93 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9bb2bd3..0a33dc1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { "name": "Python: Flask", - "type": "python", + "type": "debugpy", "request": "launch", "module": "flask", "env": { @@ -21,7 +21,7 @@ }, { "name": "Python: Current File", - "type": "python", + "type": "debugpy", "request": "launch", "program": "${file}", "console": "integratedTerminal" diff --git a/todo_app/templates/index.html b/todo_app/templates/index.html index 8e5d3eb..04f0136 100644 --- a/todo_app/templates/index.html +++ b/todo_app/templates/index.html @@ -1,76 +1,38 @@ -{% extends "layout.html" %} {% block title %}To-Do App{% endblock %} {% block -content %} -
-

To-Do App

-

Just another to-do app.

-
-
-
-

Items

-
    - {% for item in items %} -
  • -
    -
    -
    - {{ item.title }} -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    +{% extends "layout.html" %} +{% block title %} +To-Do App +{% endblock title %} +{% block content %} +

    To-Do App

    +

    Just another to-do app.

    +

    Items

    +
      + {% for item in items %} +
    • +
      + {{ item.title }}
      -
    • - {% endfor %} -
    -
    -
-
-
-
-
- -
- -
-
-
-
-
-{% endblock %} +
+ +
+
+ +
+ + {% endfor %} + +
+ + +
+{% endblock content %} \ No newline at end of file diff --git a/todo_app/templates/layout.html b/todo_app/templates/layout.html index 40463f8..5be12e0 100644 --- a/todo_app/templates/layout.html +++ b/todo_app/templates/layout.html @@ -1,24 +1,26 @@ - + - + + + + + + {% block title %} + To-Do App + {% endblock title %} + + - - - {% block title %}To-Do App{% endblock %} - - -
+ + {% endblock content %} diff --git a/todo_app/templates/layout.html b/todo_app/templates/layout.html index 9eefbf1..0858b81 100644 --- a/todo_app/templates/layout.html +++ b/todo_app/templates/layout.html @@ -21,10 +21,15 @@ /> - -