Skip to content

Commit 67ab119

Browse files
committed
static-resources branch
1 parent b6ea268 commit 67ab119

7 files changed

Lines changed: 11 additions & 17 deletions

File tree

src/main/java/org/launchcode/codingevents/controllers/EventController.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
import java.util.ArrayList;
1111
import java.util.List;
1212

13-
/**
14-
* Created by Chris Bay
15-
*/
1613
/**
1714
* Created by Chris Bay
1815
*/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let appName = "Coding Events";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
font-size: 18px;
3+
}

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="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
<header th:replace="fragments :: header"></header>

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
<header th:replace="fragments :: header"></header>

src/main/resources/templates/fragments.html

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

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)