From ef2713e8bb5e21076b566c123e37c2af2977df86 Mon Sep 17 00:00:00 2001
From: "muhammad.raihan05" <muhammad.raihan05@ui.ac.id>
Date: Thu, 29 Sep 2022 17:38:52 +0700
Subject: [PATCH] chore: add error page

---
 .../src/main/resources/templates/error/400.html  | 16 ++++++++++++++++
 .../src/main/resources/templates/error/500.html  | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 belajarbelajar/src/main/resources/templates/error/400.html
 create mode 100644 belajarbelajar/src/main/resources/templates/error/500.html

diff --git a/belajarbelajar/src/main/resources/templates/error/400.html b/belajarbelajar/src/main/resources/templates/error/400.html
new file mode 100644
index 0000000..dd7454f
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/error/400.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>400 error</title>
+  <object th:include="fragments/fragment :: css" th:remove="tag"></object>
+  <object th:include="fragments/fragment :: js" th:remove="tag"></object>
+</head>
+<body>
+<nav th:replace="fragments/fragment :: navbar (${'/'})"></nav>
+<div class="container-fluid">
+  <h2>Halaman tidak ditemukan</h2>
+  <a th:href="@{/}">Kembali ke home</a>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/error/500.html b/belajarbelajar/src/main/resources/templates/error/500.html
new file mode 100644
index 0000000..433a8b8
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/error/500.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>500 error</title>
+    <object th:include="fragments/fragment :: css" th:remove="tag"></object>
+    <object th:include="fragments/fragment :: js" th:remove="tag"></object>
+</head>
+<body>
+<nav th:replace="fragments/fragment :: navbar (${'/'})"></nav>
+<div class="container-fluid">
+    <h2>Halaman tidak ditemukan</h2>
+    <a th:href="@{/}">Kembali ke home</a>
+</div>
+</body>
+</html>
\ No newline at end of file
-- 
GitLab