From 9e0bcfc0d75b9d905b40a4f6583ae3c09a104dad Mon Sep 17 00:00:00 2001 From: "Ethan Clay (Student)" <ethan2.clay@live.uwe.ac.uk@csctcloud.prxhn32zsyjupl12zde3wlfkch.cwx.internal.cloudapp.net> Date: Fri, 11 Oct 2024 10:38:58 +0100 Subject: [PATCH] Continue to sort nav bar --- .env | 1 + __pycache__/config.cpython-38.pyc | Bin 554 -> 554 bytes app/templates/base.html | 10 ---------- app/templates/index.html | 2 +- app/templates/navigation.html | 17 +++++++++++++++++ app/templates/posts/index.html | 2 +- static/core.css | 1 - static/navigation.css | 6 ++++++ 8 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .env delete mode 100644 app/templates/base.html create mode 100644 app/templates/navigation.html delete mode 100644 static/core.css create mode 100644 static/navigation.css diff --git a/.env b/.env new file mode 100644 index 0000000..b6619f5 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +FLASK_ENV=development \ No newline at end of file diff --git a/__pycache__/config.cpython-38.pyc b/__pycache__/config.cpython-38.pyc index 0c35bf379c8bcdc7751d23a7d08c1110a596a303..5316f13b7a6f309389308df34bbf6120033a0539 100644 GIT binary patch delta 19 acmZ3*vWkT(l$V!_fq{Xc@ZCl(1ttI~;shK3 delta 19 acmZ3*vWkT(l$V!_fq{WR@%2V71ttI|^8?8M diff --git a/app/templates/base.html b/app/templates/base.html deleted file mode 100644 index 013b57a..0000000 --- a/app/templates/base.html +++ /dev/null @@ -1,10 +0,0 @@ -<body> -<nav> - <a href="{{ url_for('main.index') }}">HOME</a> - <a href="#">Posts</a> -</nav> -<hr> -<div class="content"> - {% block content %} {% endblock %} -</div> -</body> \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index c5a42d6..290671e 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'navigation.html' %} {% block content %} <div class="content"> diff --git a/app/templates/navigation.html b/app/templates/navigation.html new file mode 100644 index 0000000..7db3c71 --- /dev/null +++ b/app/templates/navigation.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <link rel="stylesheet" href="../../static/navigation.css"> + </head> + <body> + <h1>Something</h1> + <nav> + <a href="{{ url_for('main.index') }}">Home Page</a> + <a href="#">Posts</a> + </nav> + <hr> + <div class="content"> + {% block content %} {% endblock %} + </div> + </body> +</html> \ No newline at end of file diff --git a/app/templates/posts/index.html b/app/templates/posts/index.html index ad42a40..6b98693 100644 --- a/app/templates/posts/index.html +++ b/app/templates/posts/index.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'navigation.html' %} {% block content %} <div class="content"> diff --git a/static/core.css b/static/core.css deleted file mode 100644 index e89b7b7..0000000 --- a/static/core.css +++ /dev/null @@ -1 +0,0 @@ -/* Core CSS Style types */ \ No newline at end of file diff --git a/static/navigation.css b/static/navigation.css new file mode 100644 index 0000000..7723a31 --- /dev/null +++ b/static/navigation.css @@ -0,0 +1,6 @@ +/* CSS Stylesheet for Navigation bar */ + +h1 { + font-size: 1050px; + color: red; +} \ No newline at end of file -- GitLab