Skip to content

Instantly share code, notes, and snippets.

@LibertysYarn
Created May 27, 2013 02:45
Show Gist options
  • Save LibertysYarn/5654939 to your computer and use it in GitHub Desktop.
Save LibertysYarn/5654939 to your computer and use it in GitHub Desktop.
Retro TV 404 page - from line25.com
$(document).ready(function() {
$(".scale1").fitText();
$(".scale2").fitText(3, { maxFontSize: '100px' });
$(".scale3").fitText(3, { maxFontSize: '25px' });
});
body {
background-color: #000;
background-image: url(images/static.gif);
font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 0.3em;
font-size: 62.5%;
}
body, html, div {
height: 100%;
}
#tv {
background-image: url(images/tv.png), url(images/shading.png);
background-size: 100% 100%;
}
#content {
width: 60%; height: 65%; position: relative; top: 20%; left: 10%;
text-align: center; color: #fff;
}
#logo {
display: block;
width: 20%; margin: 0 auto 2em auto;
}
#logo img {
max-width: 100%;
}
h1 {
font-family: Serif; font-size: 10em;
margin: 0 0 0.1em 0;
}
h2 {
font-size: 3em; text-transform: uppercase; line-height: 1.5em; margin: 0 0 1.3em 0;
}
h2 span {
font-size: 2.05em; display: block;
}
p {
font-size: 2em;
}
a {
color: #ded7bd; text-decoration: none;
}
a:hover {
color: #af9a77;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>404</title>
<link href="style.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/scripts.js"></script>
</head>
<body>
<div id="tv">
<div id="content">
<a href="http://blog.spoongraphics.co.uk" id="logo"><img src="images/spoon-logo.png" alt="Blog.SpoonGraphics" /></a>
<h1>404</h1>
<h2><span>No signal</span> on this frequency</h2>
<p>Go back to <a href="http://blog.spoongraphics.co.uk">Blog.SpoonGraphics</a>,<br/> tune in to the <a href="http://blog.spoongraphics.co.uk/archives">Archives</a><br/> or <a href="http://blog.spoongraphics.co.uk/contact">call an Engineer</a></p>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment