Skip to content

Commit 0afbd88

Browse files
committed
restyled 404 page to fit with design
1 parent fe7faaa commit 0afbd88

File tree

4 files changed

+50
-12
lines changed

4 files changed

+50
-12
lines changed

404.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
---
2-
layout: default
2+
layout: default
33
permalink: /404.html
44
title: "404"
5-
image: /assets/images/luke.png
65
---
76

8-
<div id="post-info">
9-
<p style="color: #fff; opacity: .75; font-size: 420px; font-weight: bold">404</p>
10-
<h2 style=" margin: 0 0 0 0;">This page has just discovered that Darth Vader is his father and ran away to not be found. Go back to the homepage.</h2>
11-
</div>
12-
<div id="nav-icon" style="bottom: 60px;">
13-
<a href="{{ site.url }}"><span class="genericon genericon-home"></span></a>
14-
</div>
7+
<div class="foot-pusher">
8+
<div id="error-page" class="container center">
9+
<h1>Looks like this tiger den is empty.</h1>
10+
<p>Try going back to the <a href="{{ site.url }}">cave entrance</a> to find what you are looking for.</p>
11+
</div>
12+
</div>

_includes/foot.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
<div class="inner container">
33
<p>&copy;CodeRIT 2014 All Rights Reserved</p>
44
</div>
5-
</footer>
6-
<div class="divider"></div>
5+
</footer>

_sass/main.sass

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ $orange-dark : #CE5F15
1212
$blue : #384859
1313
$offwhite : #FCF3E8
1414

15-
//fonts
15+
// fonts
1616
$font-body-family : 'Open Sans', sans-serif
1717
$font-headlines-family : 'Montserrat', sans-serif
1818
$font-headlines-weight-bold : 700
1919
$font-headlines-weight-reg : 400
2020

21+
// constants
22+
$footer-height: 90px
23+
24+
body, html
25+
height: 100%
26+
min-height: 250px
27+
2128
body
2229
background: $white
2330
color: $grey-dark
@@ -117,6 +124,12 @@ a
117124
.center
118125
text-align: center
119126

127+
.foot-pusher
128+
min-height: 100%
129+
height: auto !important
130+
height: 100%
131+
margin-bottom: -$footer-height
132+
120133
// SECTIONS
121134
#mission
122135
color: $grey-dark
@@ -145,6 +158,16 @@ a
145158
vertical-align: top
146159
font-size: 1.45em
147160

161+
#footer
162+
height: $footer-height
163+
border-bottom: 25px solid darken($blue, 10%)
164+
165+
#error-page
166+
h1
167+
margin-top: 0
168+
padding-top: 25px
169+
170+
148171
@media screen and (max-width: 798px)
149172
body
150173
font-size: 14px

assets/css/main.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/* Main.sass */
2+
body, html {
3+
height: 100%;
4+
min-height: 250px; }
5+
26
body {
37
background: #ecf0f1;
48
color: #444444;
@@ -97,6 +101,12 @@ a {
97101
.center {
98102
text-align: center; }
99103

104+
.foot-pusher {
105+
min-height: 100%;
106+
height: auto !important;
107+
height: 100%;
108+
margin-bottom: -90px; }
109+
100110
#mission {
101111
color: #444444;
102112
padding: 25px 0; }
@@ -124,6 +134,14 @@ a {
124134
vertical-align: top;
125135
font-size: 1.45em; }
126136

137+
#footer {
138+
height: 90px;
139+
border-bottom: 25px solid #242f3a; }
140+
141+
#error-page h1 {
142+
margin-top: 0;
143+
padding-top: 25px; }
144+
127145
@media screen and (max-width: 798px) {
128146
body {
129147
font-size: 14px; }

0 commit comments

Comments
 (0)