Skip to content

Commit 8e2f07b

Browse files
committed
modifying static resources
1 parent f7d567b commit 8e2f07b

6 files changed

Lines changed: 13 additions & 14 deletions

File tree

src/main/resources/static/script.js

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
font-size: 18px;
3+
color: purple;
4+
}

src/main/resources/templates/events/create.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
3-
<head>
4-
<meta charset="UTF-8">
5-
<title>Create Event</title>
6-
</head>
3+
<head th:replace="fragments :: head"></head>
74
<body>
85
<h1>Create Event</h1>
96
<nav th:replace="fragments :: navigation"></nav>

src/main/resources/templates/events/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
3-
<head>
4-
<meta charset="UTF-8"/>
5-
<title>Coding Events</title>
6-
</head>
3+
<head th:replace="fragments :: head"></head>
74
<body>
85

96
<h1>All Events</h1>

src/main/resources/templates/fragments.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
3-
<head>
3+
<head th:fragment="head">
44
<meta charset="UTF-8">
5-
<title>Title</title>
5+
<title>Coding Events</title>
6+
7+
<script th:src="@{/script.js}"></script>
8+
<link th:href="@{/styles.css}" rel="stylesheet">
9+
610
</head>
711
<body>
812

src/main/resources/templates/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
3-
<head>
4-
<meta charset="UTF-8"/>
5-
<title>Coding Events</title>
6-
</head>
3+
<head th:replace="fragments :: head"></head>
74
<body>
85

96
<h1>Coding Events</h1>

0 commit comments

Comments
 (0)