Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 404 error page #2746

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions error404.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<? --[[
DL6ER marked this conversation as resolved.
Show resolved Hide resolved
* Pi-hole: A black hole for Internet advertisements
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license.
--]]

mg.include('scripts/pi-hole/lua/header.lp','r')
?>
<body class="hold-transition layout-boxed login-page">
<div class="box login-box">
<section style="padding: 15px;">
<h2 class="error-headline text-yellow">404</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
<p>
We could not find the page you were looking for.<br>
Meanwhile, you may want to return to <a href="<?=pihole.webhome()?>">the dashboard</a> .
</p>
</div>
</section>
</div>
</body>
</html>
8 changes: 8 additions & 0 deletions style/pi-hole.css
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,14 @@ table.dataTable tbody > tr > .selected {
margin: 2px;
}

.error-headline {
float: none;
text-align: center;
font-size: 100px;
font-weight: 500;
padding-right: 20px;
}

.m-0 {
margin: 0 !important;
}
Expand Down