Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 86259ca

Browse files
authored
Merge pull request #57 from starknet-io/404-refactor
404 page refactor
2 parents 6d4f2e1 + a665a25 commit 86259ca

File tree

4 files changed

+40
-11
lines changed

4 files changed

+40
-11
lines changed

build/ui-bundle.zip

193 Bytes
Binary file not shown.

src/partials/article-404.hbs

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
1-
<article class="doc">
2-
<h1 class="page">{{{or page.title 'Page Not Found'}}}</h1>
3-
<div class="paragraph">
4-
<p>The page you&#8217;re looking for does not exist. It may have been moved. You can{{#with site.homeUrl}} return to the <a href="{{{this}}}">start page</a>, or{{/with}} follow one of the links in the navigation to the left.</p>
5-
</div>
6-
<div class="paragraph">
7-
<p>If you arrived on this page by clicking on a link, please notify the owner of the site that the link is broken.
8-
If you typed the URL of this page manually, please double check that you entered the address correctly.</p>
9-
</div>
1+
<pre>{{log page}}</pre>
2+
<article
3+
class="doc"
4+
style="
5+
text-align: center;
6+
height: 75vh;
7+
display: grid;
8+
place-items: center;
9+
place-content: center;
10+
"
11+
>
12+
<h1 class="page">
13+
Page Not Found
14+
</h1>
15+
<div class="paragraph">
16+
<p>
17+
The page you are looking for no longer exists.
18+
</p>
19+
</div>
20+
<div class="paragraph">
21+
<p>
22+
If you believe this is a mistake, please help by
23+
<a
24+
style="cursor:pointer;text-decoration:none;"
25+
target="_blank"
26+
onclick="this.href=`https://github.com/starknet-io/starknet-docs/issues/new?assignees=landauraz&title=${encodeURIComponent(window.location.href)} is broken`"
27+
>submitting an issue</a>.
28+
</p>
29+
</div>
30+
<div class="paragraph">
31+
<a href="{{{site.homeUrl}}}" style="text-decoration:none;">
32+
<h1 style="font-size:1.1rem;">
33+
Click here to go to the docs homepage
34+
</h1>
35+
</a>
36+
</div>
1037
</article>

src/partials/body.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<div class="body">
2-
{{> nav}}
2+
{{#unless (eq page.layout '404')}}
3+
{{> nav}}
4+
{{/unless}}
35
{{> main}}
46
</div>

src/partials/footer-scripts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<script async src="{{{uiRootPath}}}/js/vendor/tabs-block-behaviour.js?new"></script>
44
<script async src="{{{uiRootPath}}}/js/vendor/swagger-ui.js?new"></script>
55
<script async src="{{{uiRootPath}}}/js/vendor/component-versions.js?new"></script>
6-
<script src="https://chatwith.tools/chatbot/04f9f1da-f9bd-46c1-a74d-b72cec2014ea.js" async=""></script>
76
<script src="{{uiRootPath}}/js/vendor/custom.js?new"></script>
87
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
98
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
9+
{{#if page.component}}<script src="https://chatwith.tools/chatbot/04f9f1da-f9bd-46c1-a74d-b72cec2014ea.js" async=""></script>{{/if}}

0 commit comments

Comments
 (0)