From d500f36299b5eb3f26fcd67f5f5bfd4468cd0801 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sat, 2 Nov 2024 19:00:02 -0300 Subject: [PATCH] refactor(layout): changes layour dir and adds header --- app/templates/index.html | 4 +-- app/templates/layout.html | 21 -------------- app/templates/layout/layout.html | 47 ++++++++++++++++++++++++++++++++ app/templates/layout/menu.html | 35 ++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 23 deletions(-) delete mode 100644 app/templates/layout.html create mode 100644 app/templates/layout/layout.html create mode 100644 app/templates/layout/menu.html diff --git a/app/templates/index.html b/app/templates/index.html index 6d03436..0e10f45 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,7 +1,7 @@ -{% extends "layout.html" %} +{% extends "layout/layout.html" %} +{% block title %} Home {% endblock %} {% block head %} {{ super() }} - {% block title %}Home{% endblock %} {% endblock %} {% block content %}

Hello, World!

diff --git a/app/templates/layout.html b/app/templates/layout.html deleted file mode 100644 index 7c88c79..0000000 --- a/app/templates/layout.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - {% block head %} - - - {% block title %}{% endblock %} - Adog a pet - - - - {% endblock %} - - -
{% block content %}{% endblock %}
- - - diff --git a/app/templates/layout/layout.html b/app/templates/layout/layout.html new file mode 100644 index 0000000..0ff6581 --- /dev/null +++ b/app/templates/layout/layout.html @@ -0,0 +1,47 @@ +{% from "layout/menu.html" import menu %} + + + + {% block head %} + + + {% block title %}{% endblock %} - Adog a pet + + + + {% endblock %} + + +
+
+
+ A dog a pet logo +
+
+ +
+
+ Log In +
+
+
+ +
+
+
{% block content %}{% endblock %}
+ + + diff --git a/app/templates/layout/menu.html b/app/templates/layout/menu.html new file mode 100644 index 0000000..34078f5 --- /dev/null +++ b/app/templates/layout/menu.html @@ -0,0 +1,35 @@ +{% macro menu(ROUTES, menu_type) %} + +{% endmacro %} \ No newline at end of file