From 710bd7e49afa635515b4b171700645e56e6bea1c Mon Sep 17 00:00:00 2001 From: Rhys Nute <nuterd@cardiff.ac.uk> Date: Mon, 11 Dec 2023 20:58:12 +0000 Subject: [PATCH] updated css --- src/main/resources/static/css/addTownsStyle.css | 16 ++++++++++++++++ src/main/resources/templates/towns-data.html | 5 +++-- src/main/resources/templates/towns.html | 5 +++-- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/static/css/addTownsStyle.css diff --git a/src/main/resources/static/css/addTownsStyle.css b/src/main/resources/static/css/addTownsStyle.css new file mode 100644 index 00000000..61c59d35 --- /dev/null +++ b/src/main/resources/static/css/addTownsStyle.css @@ -0,0 +1,16 @@ +body{ + background-color: rgb(41, 41, 41) +} +h1{ + color: wheat; +} +h3{ + color: wheat; +} +ul{ + list-style: none; +} +ul li{ + color: wheat; + list-style: none; +} \ No newline at end of file diff --git a/src/main/resources/templates/towns-data.html b/src/main/resources/templates/towns-data.html index 024b480c..599b1065 100644 --- a/src/main/resources/templates/towns-data.html +++ b/src/main/resources/templates/towns-data.html @@ -3,8 +3,9 @@ <head> <meta charset="UTF-8"> <title>Towns</title> - <link rel="stylesheet" href="static/css/templatingstyle.css"> + <link rel="stylesheet" th:href="@{css/templatingstyle.css}"> </head> +<header th:insert="~{/towns/Templating.html::header}"></header> <body> <div id="container1"> <h2>Enter your Local authority</h2> @@ -36,6 +37,6 @@ <input type="submit" value="Submit Data"> </form> </div> - </body> +<footer th:insert="~{/towns/Templating.html::footer}"></footer> </html> \ No newline at end of file diff --git a/src/main/resources/templates/towns.html b/src/main/resources/templates/towns.html index cdd805cb..89938039 100644 --- a/src/main/resources/templates/towns.html +++ b/src/main/resources/templates/towns.html @@ -3,7 +3,8 @@ <head> <meta charset="UTF-8"> <title>Towns</title> - <link rel="stylesheet" th:href="@{css\templatingstyle.css}"> + <link rel="stylesheet" th:href="@{css/addTownsPageStyle.css}"> + <link rel="stylesheet" th:href="@{css/templatingstyle.css}"> </head> <header th:insert="~{/towns/Templating.html::header}"></header> <body> @@ -15,7 +16,7 @@ <li th:text="${towns}"></li> </ul> </div> -<button id="submit">Towns log in here</button><a href="towns-data.html"></a> +<button id="submit"><a href="towns-data.html">Towns log in here</button></a> </body> <footer th:insert="~{/towns/Templating.html::footer}"></footer> </html> \ No newline at end of file -- GitLab