scinote-web/app/views/errors/422.html.erb
sboursen-scinote adc0a460bd Improve logic for custom logos on error pages [SCI-9147]
- Switch to dynamic ERB templates.
- Move text to I18n
2023-09-22 10:26:32 +02:00

81 lines
1.8 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title><%= t("errors.unprocessable_entity.title") %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #F0F0F6;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
div.navbar {
background: #FFFFFF;
box-shadow: 0px 1px 4px rgba(35, 31, 32, 0.15);
height: 52px;
left: 0%;
position: absolute;
right: 0%;
top: 0%;
}
div.navbar img {
width: 121px;
height: 24px;
left: 21px;
position: absolute;
top: calc(50% - 24px/2 - 0px);
}
div.dialog {
width: 95%;
margin: 4em auto 0;
}
div.dialog > h1 {
color: #404048;
font-family: Lato;
font-style: normal;
font-weight: bold;
font-size: 1.5em;
line-height: 29px;
margin: 0.5em;
text-align: center;
}
div.dialog > p {
color: #404048;
font-family: Lato;
font-style: normal;
font-weight: normal;
font-size: 1.1em;
margin: 0.5em;
}
div.dialog > img {
margin: 1em;
}
.illustration {
margin-top: 64px !important;
}
</style>
</head>
<body data-turbolinks="false">
<div class="navbar">
<a href="/">
<img id="logo" src="/images/scinote_logo.svg" title="SciNote">
</a>
</div>
<div class="dialog">
<img src="/images/genericError.svg" class="illustration">
<h1><%= t("errors.unprocessable_entity.dialog.title") %></h1>
<p><%= t("errors.unprocessable_entity.dialog.text") %></p>
</div>
</body>
</html>