Skip to content

Commit

Permalink
Add 404 redirect page
Browse files Browse the repository at this point in the history
Add 404 redirect page

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update pi-hole.css

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Delete bk-error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>

Update error404.lp

Signed-off-by: NittanySeaLion <[email protected]>
  • Loading branch information
NittanySeaLion committed Oct 14, 2023
1 parent 6c3d45c commit 5f88426
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
42 changes: 42 additions & 0 deletions error404.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<? --[[
* Pi-hole: A black hole for Internet advertisements
* (c) 2017 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" id="login-box">
<section style="padding: 15px;">
<div class="text-center"> <h1 class="error-headline text-yellow"> Yellow Alert</h2>
<div class="login-logo">

<img src="<?=pihole.webhome()?>img/logo.svg" alt="Pi-hole logo" class="loginpage-logo">

<div class="panel-title text-center"><span class="logo-lg" style="font-size: 25px;"><b>Pi-hole</b></span></div>
</div>
<!-- /.login-logo -->

<div class="error-content">
<h3> You have stumbled into the Neutral Zone </h3> </div>
<p>
<h5> Return to <a href="<?=pihole.webhome()?>">the admin dashboard</a> before a Romulan Warbird arrives!
</p>
<!--
If you want to redirect automatically, replace/comment out the Romulan Warbird comment with the following:

<h5> <p> Plot heading to <a href="<?=pihole.webhome()?>">the admin dashboard</a> and make it so in five seconds</a>
</p>
<meta http-equiv="Refresh" content="5; url='<?=pihole.webhome()?>'" />

-->


</div>

</body>

8 changes: 8 additions & 0 deletions style/pi-hole.css
Original file line number Diff line number Diff line change
Expand Up @@ -1173,3 +1173,11 @@ table.dataTable tbody > tr > .selected {
.button-pad {
margin: 2px;
}

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

0 comments on commit 5f88426

Please sign in to comment.