Skip to content

Commit 45a2ae6

Browse files
authored
404 error page (#408)
* feat: Add 40x page * chore: Improve appearance of 404 page * chore: refactor + remove to_delete.md fle
1 parent 8859b6b commit 45a2ae6

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

40x.html

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: Error 404
3+
position: 1
4+
heading: Page Not Found
5+
include_in_navigation: false
6+
is_search_page: true
7+
sitemap: false
8+
---
9+
10+
<div class="container-fluid mt-30 mb-80">
11+
<div class="content">
12+
<img class="ninja" src="/devtools/aspnet-ajax/images/ninja-icon.png" />
13+
<h1>
14+
Oh, no! <br />
15+
It seems we've lost this page
16+
</h1>
17+
<h2>
18+
Things you can try:
19+
</h2>
20+
<ul>
21+
<li>
22+
<p>Use our Google-powered search bar below to search in our documentation
23+
</p>
24+
<div class="local-search mt-20">
25+
{% include search.html %}
26+
</div>
27+
</li>
28+
<li><a href="#" onclick="history.go(-1); return false;">Go back</a> and try another way</li>
29+
<li>Head to the <a href="/aspnet-ajax">Documentation Homepage</a></li>
30+
<li>Cheer up and <a href="https://www.telerik.com/download">try our products</a>. Some of them are free!</li>
31+
</ul>
32+
</div>
33+
</div>
34+
</div>
35+
36+
</div>
37+
<script>showSearchPopup = false;</script>
38+
<script src="{{site.baseurl}}/assets/jquery.js?{{randomNumber}}" defer></script>
39+
<script src="{{site.baseurl}}/assets/bootstrap.min.js?{{randomNumber}}" defer></script>
40+
<script src="{{site.baseurl}}/assets/main.js?{{randomNumber}}" defer></script>
41+
<script src="{{site.baseurl}}/assets/search-results.js?{{randomNumber}}" defer></script>
42+
43+
44+
45+
<style>
46+
html {
47+
font-family: Roboto, Helvetica, Arial, sans-serif;
48+
line-height: 1.5em;
49+
}
50+
51+
.content {
52+
max-width: 768px;
53+
margin: 0 auto;
54+
position: relative;
55+
56+
}
57+
.content > h1{
58+
padding-left: 200px;
59+
margin: 20px auto;
60+
}
61+
.content > .ninja{
62+
margin: 20px;
63+
}
64+
65+
.content > h2{
66+
margin-top: 80px
67+
}
68+
69+
.ninja {
70+
position: absolute;
71+
left: 0;
72+
top: 0;
73+
}
74+
75+
h1 {
76+
margin: 0 0 40px;
77+
font: 600 60px/.9 Roboto, Helvetica, Arial, sans-serif;
78+
letter-spacing: -.03em;
79+
}
80+
81+
h2 {
82+
margin: 0 0 20px;
83+
font: 400 28px/1 Roboto, Helvetica, Arial, sans-serif;
84+
letter-spacing: -.035em;
85+
}
86+
87+
ul {
88+
padding: 0 0 0 1.3em;
89+
margin: 0;
90+
}
91+
92+
a,
93+
a:visited {
94+
color: #0487c4;
95+
text-decoration: none;
96+
transition: color .2s ease, opacity .2s ease;
97+
}
98+
99+
a:hover,
100+
a:focus {
101+
color: #036c9c;
102+
text-decoration: underline;
103+
}
104+
</style>

images/ninja-icon.png

2.62 KB
Loading

web.config

+6
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@
275275
<remove fileExtension=".woff" />
276276
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
277277
</staticContent>
278+
<httpErrors errorMode="Custom" defaultResponseMode="File" >
279+
<remove statusCode="403" />
280+
<remove statusCode="404" />
281+
<error statusCode="403" path="40x.html" />
282+
<error statusCode="404" path="40x.html" />
283+
</httpErrors>
278284
</system.webServer>
279285

280286
</configuration>

0 commit comments

Comments
 (0)