Skip to content

Commit bc43eeb

Browse files
Fix error pages
1 parent 0a8b792 commit bc43eeb

File tree

4 files changed

+50
-26
lines changed

4 files changed

+50
-26
lines changed

src/scss/components/_section.scss

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
section {
33
padding-top: $spacing;
44
padding-bottom: 0;
5+
position: relative;
56

67
article {
78
padding: $spacing*2 0 $spacing*2;

src/views/404.jade

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
extends shared/_layout
1+
extends shared/_layout-errors
22

33
block hero
4-
section.section.full.dark
5-
.inner
6-
.limit.padding.tight.text-center
4+
section.section.dark(window-height)
5+
row(vertical-center): column.large-6.medium-8.col-centered
6+
.text-center
77
h1 awkward..!
88
h3 This page doesn't exist!
9-
p.large.
9+
p.
1010
Bad link? Mistyped address? We're not sure, but since this documentation
11-
is a single page website you're either just messing about, getting
12-
<a href="http://www.urbandictionary.com/define.php?term=trixed" target="_blank">trixed</a>
13-
or simply lost!
11+
is a single page website you're either just messing about or lost!
1412

15-
p.large.
13+
p.
1614
Don’t worry though, it doesn't have to be anybody's fault, just
17-
head on back to our <a href="/">front page</a> and start having fun!
15+
head on back to our <a class="light" href="/">front page</a> and start having fun!
1816

1917
block content
20-
section.section.full.light#about
21-
.limit.padding.tight.text-center
22-
p.large.
18+
section.section.light(window-height)
19+
row: column.large-8.medium-10.col-centered: box
20+
p.text-center.large.
2321
If you’re in denial and believe this is a conspiracy, please enjoy this
2422
thorough video tutorial on bathing your pet guinea pig.
2523

26-
| <iframe class="video" width="700" height="525" src="//www.youtube-nocookie.com/embed/EJ7u_zp7BVs?rel=0" frameborder="0" allowfullscreen></iframe>
24+
figure.video.
25+
<iframe class="video" width="700" height="525" src="//www.youtube-nocookie.com/embed/EJ7u_zp7BVs?rel=0" frameborder="0" allowfullscreen></iframe>
2726

2827
block footer
29-
.limit.padding
30-
p.
28+
footer: section.dark
29+
row: column.medium-10.large-8.col-centered: box: p.text-large.
3130
If you're still here, you must be seriously bored!<br/>
3231
Perhaps you should check out our
3332
<a href="https://github.com/kristjanmik/apis" target="_blank">github repo</a>

src/views/500.jade

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
extends shared/_layout
1+
extends shared/_layout-errors
22

33
block hero
4-
section.section.full.dark
5-
.inner
6-
.limit.padding.tight.text-center
4+
section.section.dark(window-height)
5+
row(vertical-center): column.large-6.medium-8.col-centered
6+
.text-center
77
h1 Oops..!
88
h3 This time it's our fault :(
9-
p.large
10-
a(href='javascript:window.location.reload()') Try again
11-
| in a little while
9+
p.text-large
10+
a.light(href='javascript:window.location.reload()') Try again
11+
| in a little while
1212

1313
block footer
14-
.limit.padding
15-
p.
14+
footer: section.dark
15+
row: column.medium-10.large-8.col-centered: box: p.text-large.
1616
If you're still here, we must be having some problems!<br/>
1717
Perhaps you should check out our
1818
<a href="https://github.com/kristjanmik/apis" target="_blank">github repo</a>
19-
for now.
19+
and do some contributing?

src/views/shared/_layout-errors.jade

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
include _mixins
2+
block vars
3+
- var title = 'apis.is'
4+
5+
doctype html
6+
//[if lt IE 9]><html class="no-js lt-ie10 lt-ie9"><![endif]
7+
//[if IE 9]> <html class="no-js lt-ie10 ie9"><![endif]
8+
//[if gt IE 9]><!
9+
html.loading.no-js
10+
//<![endif]
11+
include _head
12+
13+
body#apis
14+
include _loader
15+
16+
pagewrap
17+
block hero
18+
main
19+
block content
20+
21+
block footer
22+
include _footer
23+
24+
include _javascript

0 commit comments

Comments
 (0)