Skip to content

Commit

Permalink
✨📝 (404.html): enhance 404 page with new layout and content
Browse files Browse the repository at this point in the history
Introduce a more informative and engaging 404 error page. The new design
includes a headline section with a motivational message about learning
from errors and encourages user interaction by reporting issues on
GitHub. The page now features images and badges to enhance visual
appeal. The previous 404 page layout is removed, and the new layout
consolidates the content into a single file for better maintainability.
This change aims to improve user experience and encourage community
engagement when encountering a 404 error.
  • Loading branch information
MrHinsh committed Nov 19, 2024
1 parent 1b90ff8 commit c9e1b70
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 18 deletions.
52 changes: 51 additions & 1 deletion site/layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
{{- define "breadcrumbs" }}
<div></div>
{{- end }}

{{- define "headline" }}
<section class="container my-5">
<div class="row p-2 p-lg-6">
<div class="col-xl-6 p-lg-3">
<h1 class="mb-4 nkda-heading-primary">404 Page not Found.</h1>
<h2 class="mb-4 nkda-heading-secondary">Engineering Excellence: Minimising Errors, Maximising Outcomes</h2>
<p class="mb-4 d-none d-sm-block text-muted">At Naked Agility, we’re all about delivering robust solutions and measurable outcomes. While even the best systems occasionally hit a snag, we see every 404 as a chance to adapt and improve. Excellence isn’t about perfection—it’s about learning fast, fixing faster, and always striving for better. Let’s get you back on track!</p>
<h2 class="mb-4 nkda-heading-secondary">Spot a Problem? Let’s Fix It Together!</h2>
<p class="mb-4 d-none d-sm-block text-muted">
Think you’ve found a glitch? Head over to our
<a href="https://github.com/nkdAgility/NKDAgility.com/issues" target="_blank">
GitHub Issues&nbsp;<small><i class="fa-regular fa-arrow-up-right-from-square" style="transform: scale(0.6)"></i></small>
</a>
to report it — we’re always keen to hear from you. Feeling adventurous? Submit a pull request and be part of the solution! Together, we can make things better. 🚀
</p>
</div>
<div class="col-xl-4 d-none d-sm-block">
<div class="row">
<div class="col-12">
<img src="/images/404.webp" />
</div>
</div>
<div class="row p-5">
<div class="col-lg-4 col-sm-6 col-md-4 p-2"><img src="images/PST-Badge-v2-web-transparent.webp" loading="lazy" width="100%" /></div>
<div class="col-lg-4 col-sm-6 col-md-4 p-2"><img src="images/MVP_Horizontal_FullColor.webp" loading="lazy" width="100%" /></div>
<div class="col-lg-4 col-sm-6 col-md-4 p-2"><img src="images/[email protected]" loading="lazy" width="100%" /></div>
</div>
</div>
</div>
</section>
{{- end }}

{{- define "main" }}
404
<section class="container my-5">
<div class="ais-InstantSearch">
<div class="right-panel">
<div id="searchbox"></div>
<div id="refinement"></div>
<div id="hits"></div>
<div id="pagination"></div>
</div>
</div>
</section>
<script src="{{- "js/algolia/search.js" | relURL }}"></script>
{{- end }}

{{- define "template" }}
page/404.html
{{- end }}
17 changes: 0 additions & 17 deletions site/layouts/page/404.html

This file was deleted.

Binary file added site/static/images/404.webp
Binary file not shown.

0 comments on commit c9e1b70

Please sign in to comment.