Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
WIP – refactored 404 view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 22, 2015
1 parent d7406b3 commit 63eaef6
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 260 deletions.
2 changes: 1 addition & 1 deletion assets/css/uno.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/src/__init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ $ ->

$('#panic-button').click ->
s = document.createElement('script')
s.setAttribute('src','/assets/js/tdfw.js')
s.setAttribute('src','https://nthitz.github.io/turndownforwhatjs/tdfw.js')
document.body.appendChild(s)
231 changes: 0 additions & 231 deletions assets/js/tdfw.js

This file was deleted.

4 changes: 2 additions & 2 deletions assets/js/uno.js

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions assets/scss/components/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// ------------------------------
// BUTTONS
// ------------------------------

.btn {
padding: 10px 20px;
font-size: .9em;
Expand Down Expand Up @@ -37,10 +33,6 @@
}
}

// ------------------------------
// MOBILE MENU BUTTON
// ------------------------------

.btn-mobile-menu {
position: fixed;
top: 0;
Expand Down
17 changes: 7 additions & 10 deletions assets/scss/components/_page-error.scss
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
body[data-page='error'] {
width: 100%;
height: 100%;
font-size: 16px;
font-weight: normal;
line-height: 25px;
width: 100%;
height: 100%;
text-align: center;
@include background-filter;

> article {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
@include center-absolute;
}
}
.mayday {
width: 500px;
margin: 150px auto 20px;
> h1 {
font-size: 24px;
color: $gray-lightest;
text-shadow: 0 1px 1px rgba(0,0,0,.4);
line-height: 35px;
color: $gray-lightest;
text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
}
.astro-wrap {
Expand All @@ -35,7 +32,7 @@ body[data-page='error'] {
left: 0;
width: 175px;
height: 283px;
background: url('/assets/img/astronaut.png');
transform: translate(0, 50px);
animation: move 10s infinite;
background: url(/assets/img/astronaut.png);
}
4 changes: 2 additions & 2 deletions assets/scss/modules/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

@mixin center-absolute {
display: flex;
justify-content: center;
align-items: center;
justify-content: center;
align-items: center;
}

@mixin font-shadow {
Expand Down
9 changes: 4 additions & 5 deletions error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@
<link rel="stylesheet" type="text/css" href="{{asset "css/uno.css"}}" />
{{ghost_head}}
</head>
<body data-page="error" class="text-center no-js">
<body>
<article>
<section>
<div class="astro-wrap">
<a class="astronaut" href="#" title="return to base"></a>
</div>
<div class="mayday">
<hr class="panel-cover__divider">
<h1>
Houston, we've got a problem. <br>
Houston, 404 error appeared.
</h1>
<hr class="panel-cover__divider panel-cover__divider--secondary">
<hr class="divider short">
<h1>
What happens now?
</h1>
</div>
<div class="astro-options">
<a id="panic-button" class="btn btn-small" href="#">Panic button</a>
<a id="safe-button" class="btn btn-small" href="/#open">Safe button</a>
<a id="panic-button" class="btn small" href="#">Panic button</a>
<a id="safe-button" class="btn small" href="/#open">Safe button</a>
</div>
</section>
</article>
Expand Down

0 comments on commit 63eaef6

Please sign in to comment.