add custom error page and update the home page

This commit is contained in:
Lee 2024-04-06 18:10:10 +01:00
parent c8d5e86876
commit c52f9332a2
3 changed files with 25 additions and 3 deletions

View File

@ -1,6 +1,9 @@
server:
address: 0.0.0.0
port: 80
error:
whitelabel:
enabled: false
public-url: http://localhost

View File

@ -0,0 +1,19 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<title>Minecraft Helper</title>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex flex-col h-screen mt-5 items-center">
<p class="font-bold text-red-600">Oh, no!</p>
<p>You have encountered an error.</p>
<img class="mt-5 h-[30rem]" src="https://cdn.fascinated.cc/Ft2OVY.gif" alt="Error Gif"/>
</body>
</html>

View File

@ -10,9 +10,9 @@
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<p class="font-bold">Hello!</p>
<p>I don't feel like making this pretty.</p>
<body class="flex flex-col h-screen mt-5 items-center">
<p class="font-bold">Hello!!!</p>
<p>Wrapper for the Minecraft APIs to make them easier to use.</p>
<div class="flex flex-col mt-3">
<p>Player Data: <a class="text-blue-600" th:href="${url}" th:text="${url}">Player Data</a></p>