From 133b3d67228577cfb9a0ec8b105eebd90b7ce6eb Mon Sep 17 00:00:00 2001 From: Rhys Nute <nuterd@cardiff.ac.uk> Date: Mon, 11 Dec 2023 19:57:02 +0000 Subject: [PATCH] added css --- .../resources/static/css/businessesStyle.css | 13 +++++++++++++ .../resources/templates/business-data.html | 4 +++- src/main/resources/templates/businesses.html | 18 ++++++++++-------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 src/main/resources/static/css/businessesStyle.css diff --git a/src/main/resources/static/css/businessesStyle.css b/src/main/resources/static/css/businessesStyle.css new file mode 100644 index 00000000..b52eaf25 --- /dev/null +++ b/src/main/resources/static/css/businessesStyle.css @@ -0,0 +1,13 @@ +body{ + background-color: rgb(41, 41, 41) +} +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/business-data.html b/src/main/resources/templates/business-data.html index b550c48c..97bec483 100644 --- a/src/main/resources/templates/business-data.html +++ b/src/main/resources/templates/business-data.html @@ -3,7 +3,9 @@ <head> <meta charset="UTF-8"> <title>Businesses</title> + <link rel="stylesheet" th:href="@{css\templatingstyle.css}"> </head> +<header th:insert="~{/towns/Templating.html::header}"></header> <body> <div id="container1"> <h2>Enter your Business information</h2> @@ -40,5 +42,5 @@ </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/businesses.html b/src/main/resources/templates/businesses.html index f0fcf1a6..4dbaef65 100644 --- a/src/main/resources/templates/businesses.html +++ b/src/main/resources/templates/businesses.html @@ -3,17 +3,19 @@ <head> <meta charset="UTF-8"> <title>Businesses</title> - <link rel="stylesheet" href="../static/css/templatingstyle.css"> + <link rel="stylesheet" th:href="@{css\businessesStyle.css}"> + <link rel="stylesheet" th:href="@{css\templatingstyle.css}"> </head> +<header th:insert="~{/towns/Templating.html::header}"></header> <body> -<h1>Future Proof Businesses</h1> -<h1>Compete with Online Retailers</h1> -<h1>Drive Footfall to the high street</h1> -<h1>Increase Sales</h1> -<ul th:each="businesses:${business}"> - <li th:text="${businesses}"></li> +<h3>Future Proof Businesses</h3> +<h3>Compete with Online Retailers</h3> +<h3>Drive Footfall to the high street</h3> +<h3>Increase Sales</h3> +<ul th:each="business:${business}"> + <li th:text="${business}"></li> </ul> -<p>Businesses please enter here</p><button><a href="business-data.html" id="business">Login</a></button> +<button><a href="business-data.html" id="business">Businesses please enter here</a></button> </body> <footer th:insert="~{/towns/Templating.html::footer}"></footer> </html> \ No newline at end of file -- GitLab