Skip to content

Commit

Permalink
Add custom 404 page to site
Browse files Browse the repository at this point in the history
type: documentation
  • Loading branch information
casey committed Apr 19, 2020
1 parent 09b0ee3 commit 87687f4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog

UNRELEASED - 2020-04-19
-----------------------
- :books: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Document piece length selection algorithm ([#392](https://github.com/casey/intermodal/pull/392)) - Fixes [#367](https://github.com/casey/intermodal/issues/367) - _Casey Rodarmor <casey@rodarmor.com>_
- :books: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Add custom 404 page to site - _Casey Rodarmor <casey@rodarmor.com>_
- :books: [`09b0ee316c03`](https://github.com/casey/intermodal/commit/09b0ee316c034848c3b50966e7b5e3ed720aef2b) Document piece length selection algorithm ([#392](https://github.com/casey/intermodal/pull/392)) - Fixes [#367](https://github.com/casey/intermodal/issues/367) - _Casey Rodarmor <casey@rodarmor.com>_
- :books: [`3ed449ce9325`](https://github.com/casey/intermodal/commit/3ed449ce932509ac88bd4837d74c9cbbb0729da9) Generate reference sections with `bin/gen` - _Casey Rodarmor <casey@rodarmor.com>_
- :art: [`a6bf75279181`](https://github.com/casey/intermodal/commit/a6bf7527918178821e080db10e65b057f427200d) Use `invariant` instead of `unwrap` and `expect` - Fixes [#167](https://github.com/casey/intermodal/issues/167) - _Casey Rodarmor <casey@rodarmor.com>_
- :white_check_mark: [`faf46c0f0e6f`](https://github.com/casey/intermodal/commit/faf46c0f0e6fd4e4f8b504d414a3bf02d7d68e4a) Test that globs match torrent contents - Fixes [#377](https://github.com/casey/intermodal/issues/377) - _Casey Rodarmor <casey@rodarmor.com>_
Expand Down
5 changes: 3 additions & 2 deletions src/piece_length_picker.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! See [the book](https://imdl.io/book/bittorrent/piece-length.html) for more
//! information on Intermodal's automatic piece length selection algorithm.
//! See [the book](https://imdl.io/book/bittorrent/piece-length-selection.html)
//! for more information on Intermodal's automatic piece length selection
//! algorithm.
use crate::common::*;

Expand Down
30 changes: 30 additions & 0 deletions www/404.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
* {
margin: 0;
padding: 0;
}

html {
background-color: black;
color: white;
font-family: sans-serif;
text-align: center;
font-size: 60vmin;
width: 100%;
height: 100%;
}

body {
min-height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

a {
color: white;
text-decoration: none;
}

a:hover {
text-shadow: 0 0 100px #fff;
}
13 changes: 13 additions & 0 deletions www/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>I N T E R M I S S I N G</title>
<link href="404.css" rel="stylesheet" type="text/css">
</head>
<body>
<div><a href="/"></a></div>
</body>
</html>
<!-- Love, Casey -->

0 comments on commit 87687f4

Please sign in to comment.