generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NOD-793] feat: HTML static page for error responses #17
Merged
andrea-deri
merged 2 commits into
main
from
NOD-793-dismissione-wisp-converter-gestione-pagina-html-errore
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.9 KB
src/main/resources/static/style/font/titillium-web-all-400-normal.woff
Binary file not shown.
Binary file added
BIN
+24.6 KB
src/main/resources/static/style/font/titillium-web-all-700-normal.woff
Binary file not shown.
Binary file added
BIN
+12.1 KB
src/main/resources/static/style/font/titillium-web-latin-400-normal.woff2
Binary file not shown.
Binary file added
BIN
+11.5 KB
src/main/resources/static/style/font/titillium-web-latin-700-normal.woff2
Binary file not shown.
Binary file added
BIN
+6.62 KB
src/main/resources/static/style/font/titillium-web-latin-ext-400-normal.woff2
Binary file not shown.
Binary file added
BIN
+6.5 KB
src/main/resources/static/style/font/titillium-web-latin-ext-700-normal.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@font-face { | ||
font-family: 'Titillium Web'; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('font/titillium-web-latin-ext-700-normal.woff2') format('woff2'), url('font/titillium-web-all-700-normal.woff') format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'Titillium Web'; | ||
font-style: normal; | ||
font-display: swap; | ||
font-weight: 700; | ||
src: url('font/titillium-web-latin-700-normal.woff2') format('woff2'), url('font/titillium-web-all-700-normal.woff') format('woff'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
@font-face { | ||
font-family: 'Titillium Web'; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('font/titillium-web-latin-ext-400-normal.woff2') format('woff2'), url('font/titillium-web-all-400-normal.woff') format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'Titillium Web'; | ||
font-style: normal; | ||
font-display: swap; | ||
font-weight: 400; | ||
src: url('font/titillium-web-latin-400-normal.woff2') format('woff2'), url('font/titillium-web-all-400-normal.woff') format('woff'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
|
||
.main-div { | ||
/* Auto layout */ | ||
display: flex; | ||
flex-direction: column; | ||
top: 250px; | ||
} | ||
|
||
/* Title */ | ||
.error-title { | ||
/*width: 376px; | ||
height: 32px;*/ | ||
font-family: 'Titillium Web'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-size: 24px; | ||
margin-top: 32px; | ||
margin-bottom: 32px; | ||
text-align: center; | ||
color: #17324D; | ||
flex: none; | ||
order: 0; | ||
flex-grow: 0; | ||
} | ||
|
||
/* Subtitle */ | ||
.error-subtitle { | ||
/*width: 376px; | ||
height: 24px;*/ | ||
font-family: 'Titillium Web'; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: 16px; | ||
line-height: 24px; | ||
text-align: center; | ||
letter-spacing: 0.15px; | ||
color: #17324D; | ||
flex: none; | ||
order: 1; | ||
flex-grow: 0; | ||
} | ||
|
||
/* Button */ | ||
.button { | ||
font-family: 'Titillium Web'; | ||
box-sizing: border-box; | ||
color: #0073E6; | ||
font-weight: 700; | ||
background-color: white; | ||
padding: 0px; | ||
width: 330px; | ||
height: 40px; | ||
border: 2px solid #0073E6; | ||
border-radius: 4px; | ||
flex: none; | ||
order: 1; | ||
flex-grow: 0; | ||
} | ||
|
||
/* Icon */ | ||
.error-icon { | ||
width: 80px; | ||
height: 80px; | ||
flex: none; | ||
order: 0; | ||
flex-grow: 0; | ||
} | ||
|
||
body { | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
margin: 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Error</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<h1>Something went wrong! </h1> | ||
<h2>Our Engineers are on it</h2> | ||
<html lang="it" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta content="ie=edge" http-equiv="x-ua-compatible"> | ||
<title>Errore</title> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<link rel="stylesheet" th:href="@{/style/main.css}"/> | ||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="row justify-content-center align-items-center"> | ||
<div class="col-lg-3"></div> | ||
<div class="col-lg-6 main-div"> | ||
<div class="text-center"> | ||
<img alt="Error icon" class="error-icon mx-auto" th:src="@{images/error-icon.png}"> | ||
</div> | ||
<div class="text-center"> | ||
<h2 class="error-title">Si è verificato un errore imprevisto</h2> | ||
<p class="error-subtitle">Riprova, oppure contatta l'assistenza</p> | ||
<button class="button">Contatta l'assistenza</button> | ||
</div> | ||
</div> | ||
<div class="col-lg-3"></div> | ||
</div> | ||
</div> | ||
|
||
<div th:text="${sessionId}"></div> | ||
<div th:text="${type}"></div> | ||
<div th:text="${title}"></div> | ||
<div th:text="${status}"></div> | ||
<div th:text="${detail}"></div> | ||
<div th:text="${timestamp}"></div> | ||
<div th:text="${operationId}"></div> | ||
<div th:text="${errorCode}"></div> | ||
|
||
|
||
<a href="/">Go Home</a> | ||
</body> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium