[FO] 에러페이지 HTML 적용

This commit is contained in:
김현주
2025-06-25 09:29:08 +09:00
parent 253b4e49e8
commit c0a50d3655
3 changed files with 78 additions and 66 deletions

View File

@@ -1,37 +1,33 @@
<!DOCTYPE html>
<html layout:decorate="~{layout/layout-error}"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns:th="http://www.w3.org/1999/xhtml">
<html layout:decorate="~{layout/layout-error}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns:th="http://www.thymeleaf.org" lang="ko">
<head>
<title>404</title>
</head>
<body>
<section layout:fragment="content">
<div class="container">
<div class="row">
<div class="p-5 mb-4 bg-light rounded-3">
<div class="container-fluid py-5">
<h1 class="display-5 fw-bold"><i class="bi bi-eye-slash-fill"></i>
Oops, 404 Not Found :-(</h1>
<p class="col-md-8 fs-4">
존재하지 않는 URI 주소로 접근했습니다. 다시 확인해주세요.
</p>
<p class="col-md-8 fs-5">
<div layout:fragment="content" th:classappend="error-wrap">
<main id="content" role="main">
<div class="info-msg">
<strong>요청하신 페이지를<br>
찾을 수 없습니다</strong>
<span>페이지를 찾을 수 없습니다.<br>
일계부 첫 화면으로 이동해 주세요.</span>
</div>
<div class="btns">
<button type="button" class="fill" th:onclick="|location.href='#{uri.front.record.calendar.path}'|">일계부로 이동</button>
</div>
</main>
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
<div class="info-msg">
<span>Error</span> <span class="text-muted" th:text="${error}"></span>
<br/>
<span>Message</span> <span class="text-muted" th:text="${message}"></span>
</p>
<button class="btn btn-primary btn-lg" onclick="location.href='/'" type="button">홈으로 이동
</button>
</div>
</div>
</div>
</div>
</section>
</th:block>
</div>
</body>
</html>