Skip to content

Commit 48eb619

Browse files
committed
first commit
0 parents  commit 48eb619

9 files changed

+532
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
.svn
3+
log/*.log
4+
tmp/**
5+
dist
6+
netmag_files
7+
netmag.html

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2011 Hakim El Hattab, http://hakim.se
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 404
2+
3+
This 404 page was created for netmagazine.com.
4+
5+
[Check out the demo](http://hakim.se/experiments/html5/404) or see how it looked in context on [netmagazine.com](http://hakim.se/experiments/html5/404/netmag.html).
6+
7+
# License
8+
9+
MIT licensed
10+
11+
Copyright (C) 2011 Hakim El Hattab, http://hakim.se

css/404.css

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#fof {
2+
margin: 20px 0 120px;
3+
text-align: center;
4+
}
5+
6+
#fof div {
7+
position: fixed;
8+
width: 100%;
9+
height: 100%;
10+
top: 0;
11+
left: 0;
12+
13+
background: #000;
14+
}
15+
16+
#fof canvas,
17+
#fof img {
18+
position: relative;
19+
width: 960px;
20+
height: 480px;
21+
margin-bottom: 20px;
22+
z-index: 1;
23+
24+
background: #000;
25+
}

css/main.css

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/**
2+
* @author Hakim El Hattab
3+
*/
4+
5+
6+
/*********************************************
7+
* GLOBAL STYLES
8+
*********************************************/
9+
10+
html, body {
11+
width: 100%;
12+
height: 100%;
13+
overflow: hidden;
14+
15+
background: #eee;
16+
color: #eee;
17+
18+
font-family: 'Molengo', Arial, Helvetica, sans-serif;
19+
}
20+
21+
22+
/*********************************************
23+
* EXPERIMENTS HEADER
24+
*********************************************/
25+
26+
a {
27+
color: rgb(220,200,150);
28+
}
29+
30+
header {
31+
padding: 10px 0;
32+
z-index: 999;
33+
34+
height: 20px;
35+
width: 100%;
36+
37+
background: rgba(0,0,0,0.7);
38+
}
39+
40+
header>div {
41+
float: right;
42+
margin-right: 10px;
43+
}
44+
45+
header div.facebook-button {
46+
top: 1px;
47+
}
48+
49+
header a {
50+
float: left;
51+
font-size: 14px;
52+
color: #eee;
53+
margin-left: 10px;
54+
}
55+
56+
/*********************************************
57+
* CONTENTS
58+
*********************************************/
59+
60+
#fof {
61+
margin-top: 40px;
62+
text-align: center;
63+
}
64+
65+
66+
67+
68+

css/reset.css

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/* http://meyerweb.com/eric/tools/css/reset/
2+
v2.0 | 20110126
3+
License: none (public domain)
4+
*/
5+
6+
html, body, div, span, applet, object, iframe,
7+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+
a, abbr, acronym, address, big, cite, code,
9+
del, dfn, em, img, ins, kbd, q, s, samp,
10+
small, strike, strong, sub, sup, tt, var,
11+
b, u, i, center,
12+
dl, dt, dd, ol, ul, li,
13+
fieldset, form, label, legend,
14+
table, caption, tbody, tfoot, thead, tr, th, td,
15+
article, aside, canvas, details, embed,
16+
figure, figcaption, footer, header, hgroup,
17+
menu, nav, output, ruby, section, summary,
18+
time, mark, audio, video {
19+
margin: 0;
20+
padding: 0;
21+
border: 0;
22+
font-size: 100%;
23+
font: inherit;
24+
vertical-align: baseline;
25+
}
26+
/* HTML5 display-role reset for older browsers */
27+
article, aside, details, figcaption, figure,
28+
footer, header, hgroup, menu, nav, section {
29+
display: block;
30+
}
31+
body {
32+
line-height: 1;
33+
}
34+
ol, ul {
35+
list-style: none;
36+
}
37+
blockquote, q {
38+
quotes: none;
39+
}
40+
blockquote:before, blockquote:after,
41+
q:before, q:after {
42+
content: '';
43+
content: none;
44+
}
45+
table {
46+
border-collapse: collapse;
47+
border-spacing: 0;
48+
}
49+
50+
51+
/* HTML5BP:
52+
These selection declarations have to be separate.
53+
No text-shadow: twitter.com/miketaylr/status/12228805301
54+
Also: hot pink. */
55+
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
56+
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
57+

fallback.png

64.3 KB
Loading

index.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
6+
<title>404</title>
7+
8+
<link rel="stylesheet" href="css/reset.css">
9+
<link rel="stylesheet" href="css/404.css">
10+
<link rel="stylesheet" href="css/main.css">
11+
12+
<body>
13+
<header>
14+
<a href="http://hakim.se/experiments/404">About this experiment</a>
15+
16+
<div class="facebook-button">
17+
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhakim.se%2Fexperiments%2Fhtml5%2F404&amp;layout=button_count&amp;show_faces=false&amp;width=90&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
18+
</div>
19+
20+
<div class="tweet-button">
21+
<a href="http://twitter.com/share" class="twitter-share-button" data-text="A creepy 404 page created @hakimel." data-url="http://hakim.se/experiments/html5/404" data-count="horizontal" data-related="hakimel"><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></a>
22+
</div>
23+
</header>
24+
25+
<div id="fof">
26+
<div></div>
27+
<canvas></canvas>
28+
</div>
29+
30+
<script src="js/404.js"></script>
31+
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)