From 35fe62c7c24929b6d213cab761d9deebec69413b Mon Sep 17 00:00:00 2001
From: c22122192 <XiaoX16@cardiff.ac.uk>
Date: Tue, 29 Oct 2024 10:48:09 +0000
Subject: [PATCH] XiaoXie

---
 .../{templates => static}/css/index.css       |   0
 .../{templates => static}/css/reset.css       |   0
 .../page => static/images}/logo.jpg           | Bin
 src/main/resources/templates/page/index.html  |  34 +++++++++---------
 4 files changed, 16 insertions(+), 18 deletions(-)
 rename src/main/resources/{templates => static}/css/index.css (100%)
 rename src/main/resources/{templates => static}/css/reset.css (100%)
 rename src/main/resources/{templates/page => static/images}/logo.jpg (100%)

diff --git a/src/main/resources/templates/css/index.css b/src/main/resources/static/css/index.css
similarity index 100%
rename from src/main/resources/templates/css/index.css
rename to src/main/resources/static/css/index.css
diff --git a/src/main/resources/templates/css/reset.css b/src/main/resources/static/css/reset.css
similarity index 100%
rename from src/main/resources/templates/css/reset.css
rename to src/main/resources/static/css/reset.css
diff --git a/src/main/resources/templates/page/logo.jpg b/src/main/resources/static/images/logo.jpg
similarity index 100%
rename from src/main/resources/templates/page/logo.jpg
rename to src/main/resources/static/images/logo.jpg
diff --git a/src/main/resources/templates/page/index.html b/src/main/resources/templates/page/index.html
index 96ae169..b3f8316 100644
--- a/src/main/resources/templates/page/index.html
+++ b/src/main/resources/templates/page/index.html
@@ -1,27 +1,25 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
 <head>
     <meta charset="UTF-8">
     <title>Title</title>
-    <link rel="stylesheet" href="../css/index.css">
-    <link rel="stylesheet" href="../css/reset.css">
+    <link rel="stylesheet" href="../../css/index.css">
+    <link rel="stylesheet" href="../../css/reset.css">
     <script src="../static/lib/jquery.js"></script>
-
 </head>
 <body>
-    <header class="safe">
-            <div>
-                <img src="logo.jpg" alt="Logo">
-            </div>
-            <div   class="l">
-                <ul>
-                    <li><a href="index.html"></a>Index</li>
-                    <li><a href="groupList.html"></a>GroupList</li>
-                    <li><a href="itemForm.html"></a>ShelfItem</li>
-                    <li><a href="personalInformation.html"></a>PersonalInformation</li>
-                </ul>
-
-            </div>
-    </header>
+<header class="safe">
+    <div>
+        <img th:src="@{/images/logo.jpg}" alt="Logo" width="50" height="50">
+    </div>
+    <div class="l">
+        <ul>
+            <li><a th:href="@{/index.html}">Index</a></li>
+            <li><a th:href="@{/groupList.html}">GroupList</a></li>
+            <li><a th:href="@{/itemForm.html}">ShelfItem</a></li>
+            <li><a th:href="@{/personalInformation.html}">PersonalInformation</a></li>
+        </ul>
+    </div>
+</header>
 </body>
 </html>
\ No newline at end of file
-- 
GitLab