Skip to content

Commit 1abefb3

Browse files
June LeeJune Lee
authored andcommitted
static resources
1 parent cec0393 commit 1abefb3

6 files changed

Lines changed: 16 additions & 15 deletions

File tree

kodingevents/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+
}

kodingevents/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>Title</title>
6-
</head>
3+
<head th:replace="fragments :: head"></head>
74
<body>
85
<h1>Create Event</h1>
96
<nav th:replace="fragments :: navigation"></nav>

kodingevents/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="https://www.thymeleaf.org/">
3-
<head>
4-
<meta charset="UTF-8"/>
5-
<title>Koding Events</title>
6-
</head>
3+
<head th:replace="fragments :: head"></head>
74
<body>
85

96
<h1>All Events</h1>

kodingevents/src/main/resources/templates/fragments.html

Lines changed: 7 additions & 3 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>
4-
<meta charset="UTF-8">
5-
<title>Title</title>
3+
<head th:fragment="head">
4+
<meta charset="UTF-8"/>
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

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

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

98
<h1>Coding Events</h1>

0 commit comments

Comments
 (0)