Skip to content

Commit

Permalink
Ajout des pages de maintenance et d'erreur 500 statiques
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Jul 10, 2014
1 parent 156233f commit 4e7d170
Show file tree
Hide file tree
Showing 12 changed files with 556 additions and 19 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ base.db
/assets/.sass-css
/assets/bower_components
/assets/scss/_sprite.scss
/errors/css

#############
## Python
Expand Down
9 changes: 5 additions & 4 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,14 @@ gulp.task("watch", function(cb) {
gulp.watch(paths.sprite, ["sprite", "stylesheet"]);

gulp.watch("dist/*/**", function(file) {
filePath = path.join("static/", path.relative(path.join(__dirname, "dist/"), file.path)); // Pour que le chemin ressemble à static/.../...
var filePath = path.join("static/", path.relative(path.join(__dirname, "dist/"), file.path)); // Pour que le chemin ressemble à static/.../...
$.livereload.changed(filePath);
});

gulp.watch("errors/images", function(file) {
filePath = path.join("static/", path.relative(path.join(__dirname, "dist/"), file.path)); // Pour que le chemin ressemble à static/.../...
$.livereload.changed(filePath);
gulp.watch("errors/*/**", function(file) {
setImmediate(function(){
$.livereload.changed(file.path);
});
});

$.livereload.listen();
Expand Down
Binary file removed assets/images/favicon.ico
Binary file not shown.
30 changes: 30 additions & 0 deletions errors/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Erreur serveur &bull; Zeste de Savoir</title>

<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0">

<link rel="stylesheet" href="/errors/css/main.css">

<link rel="shortcut icon" type="image/png" href="/errors/images/favicon.png">
</head>
<body>
<div id="page">
<h1>
<img src="/errors/images/logo.png" alt="Zeste de Savoir">
</h1>
<h2>
Erreur interne au serveur
</h2>

<img src="/errors/images/clem-blasee.png" alt="" class="clem clem-blasee">

<p>
On dirait qu'il y a un petit problème... <br>
... retente ta chance en rechargeant la page !
</p>
</div>
</body>
</html>
Loading

0 comments on commit 4e7d170

Please sign in to comment.