[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>

View File

@@ -1,43 +1,33 @@
<!DOCTYPE html>
<html layout:decorate="~{layout/layout-error}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns:th="http://www.thymeleaf.org">
xmlns:th="http://www.thymeleaf.org" lang="ko">
<head>
<title>500 - 에러발생</title>
<title>500</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-cone-striped"></i>
Oops, <span class="text-muted">에러가 발생했습니다!</span> :-(</h1>
<p class="col-md-8 fs-4">
아래 에러 메세지를 담당자에게 전달해주세요.
</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="strock" th:onclick="|location.href='#{uri.front.record.calendar.path}'|">일계부로 이동</button>
<button type="button" class="fill" th:onclick="location.reload()">다시 시도</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>
<!-- <br/>-->
<!-- <span>Status</span> <span th:text="${status}" class="text-muted"></span>-->
<!-- <br/>-->
<!-- <span>Path</span> <span th:text="${path}" class="text-muted"></span>-->
<!-- <br/>-->
<!-- <span>Timestamp</span> <span th:text="${timestamp}" class="text-muted"></span>-->
</p>
<hr>
<button class="btn btn-primary btn-lg" onclick="history.go(-1)" type="button">이전으로 이동
</button>
</div>
</div>
</div>
</div>
</section>
</th:block>
</div>
</body>
</html>
</html>