Skip to content

Commit

Permalink
Add static 404 page and robots.txt definition
Browse files Browse the repository at this point in the history
The self-contained 404 page serves a dual purpose of being displayed
when a true 404 is triggered, and when someone visits the tiler root.

A robots.txt file was also added to prevent web crawlers from
interacting with PNG and grid JSON URLs.
  • Loading branch information
Hector Castro committed Jan 26, 2016
1 parent a11b684 commit 41558f2
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 0 deletions.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>OpenTreeMap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="/favicon.png" />
<link href="/static/css/vendor.min.css" rel="stylesheet">
<link href="/static/css/main.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="/static/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<!-- Top Nav -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-collapse" id="otm-navbar-collapse">
<ul class="pull-left nav navbar-nav navbar-left"></ul>
<ul class="pull-right nav navbar-nav navbar-right"></ul>
</div>
</div>
<div class="header">
<div class="logo hidden-xs">
<a href="/"><img id="site-logo" src="/static/img/logo.png" alt="OpenTreeMap"></a>
</div>
<div class="toolbar-wrapper">
</div>
<div class="search-wrapper">
</div>
</div>
<div class="content">
<div class="well error-panel">
<div class="error-icon error-icon-img"><img src="/static/img/404.png"></div>
<h2>No trees here!</h2>
<p>Sorry, we couldn't find the page you requested. You're welcome to <a href="mailto:opentreemap@azavea.com">contact support</a> if you believe you reached this page in error.</p>
</div>
</div>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
1 change: 1 addition & 0 deletions public/static/css/main.min.css

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions public/static/css/vendor.min.css

Large diffs are not rendered by default.

Binary file added public/static/img/404.png
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 public/static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/static/js/html5shiv.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41558f2

Please sign in to comment.