Skip to content

Commit

Permalink
#103 added 404 page 🙏6️⃣:godmode:
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcfad committed Jun 23, 2015
1 parent a4e8603 commit 1238e9d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Binary file added client/public/assets/img/404.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions client/public/views/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 - Pong Hacks</title>
</head>
<body>
<img class="full-page-gif" src="assets/img/404.gif" alt="404 - BALL NOT FOUND">
</body>
<style>
.full-page-gif {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
}
</style>
</html>
4 changes: 4 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ app.use("/api/stats", require("./controllers/api/stats"));

app.use("/", require("./controllers/static"));

app.use(function(req, res, next) {
res.status(404).render("404.html");
});

http.listen(port, function(){
var msg = "Ping Ponging on Port:" + port;
console.log(msg.bgRed);
Expand Down

0 comments on commit 1238e9d

Please sign in to comment.