Merge pull request #2996 from betagouv/fix_2952_page_erreur_500

Fix 2952 page erreur 500
This commit is contained in:
gregoirenovel 2018-11-15 18:26:54 +01:00 committed by GitHub
commit 31b57116ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 56 deletions

View file

@ -1,66 +1,53 @@
<!DOCTYPE html>
<html>
<html lang='fr'>
<head>
<title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<meta content='no-cache' name='turbolinks-cache-control'>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<title>
Erreur 500 · demarches-simplifiees.fr
</title>
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 12% 0;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}
div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #999;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
html,body,div,span,h1,p,a,img,table,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
html,body{height:100%;}
body{line-height:1;font-family:"Muli";color:#333333;font-size:16px;line-height:1.42857143;}
html{box-sizing:border-box;}
*,*::before,*::after{box-sizing:inherit;}
a{text-decoration:none;}
.page-wrapper{position:relative;min-height:100%;}
.container{padding-left:16px;padding-right:16px;max-width:1072px;margin:0 auto;}
.flex{display:flex;}
.flex.align-center{align-items:center;}
.header-inner-content{padding-left:16px;padding-right:16px;max-width:1072px;margin:0 auto;display:flex;justify-content:space-between;min-height:72px;}
.new-header{background-color:#FFFFFF;}
.new-header-with-border{border-bottom:1px solid #CCCCCC;}
.header-logo{display:inline-block;margin-right:32px;}
.header-logo img{height:34px;}
@media (max-width: 1040px){
.header-logo img{height:18px;}
}
.new-h1{color:#333333;text-align:center;font-weight:bold;margin-bottom:60px;font-size:41px;margin-top:60px;}
/*! CSS Used fontfaces */
@font-face{font-family:"Muli";src:url(/fonts/muli-bold/Muli-Regular.woff) format("woff");font-weight:normal;font-style:normal;}
</style>
</head>
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<div>
<h1>We're sorry, but something went wrong.</h1>
<div class='page-wrapper'>
<div class='new-header new-header-with-border'>
<div class='header-inner-content'>
<div class='flex align-center'>
<a class="header-logo" href="/"><img alt='demarches-simplifiees.fr' src='/logo-ds.svg'>
</a>
</div>
</div>
</div>
<div class='container'>
<h1 class='new-h1'>Une erreur est survenue</h1>
<div class='description'>
Nos équipes ont été averties. Si le problème persiste ou si vous voulez nous donner des détails concernant l'erreur qui vient de se produire, vous pouvez nous contacter à l'adresse <a href="mailto:contact@demarches-simplifiees.fr" target="_blank">contact@demarches-simplifiees.fr</a>.
</div>
</div>
<p>If you are the application owner check the logs for more information.</p>
</div>
</body>
</html>

Binary file not shown.

1
public/logo-ds.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 36 KiB