Skip to content

Commit

Permalink
Merge pull request #2829 from WPO-Foundation/404
Browse files Browse the repository at this point in the history
Blade 404, fix white-on-white header text
  • Loading branch information
stoyan authored Apr 18, 2023
2 parents 163af46 + 5a42558 commit 46f46ee
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
31 changes: 6 additions & 25 deletions www/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,12 @@
// Copyright 2020 Catchpoint Systems Inc.
// Use of this source code is governed by the Polyform Shield 1.0.0 license that can be
// found in the LICENSE.md file.
include 'common.inc';

$page_keywords = array('Missing');
$page_description = "Page Not Found.";
?>
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>WebPageTest - Page Not Found</title>
<meta http-equiv="charset" content="iso-8859-1">

<?php include('head.inc'); ?>
</head>
<body class="not-found">
<?php
$tab = '404';
include 'header.inc';
?>
<div class="about">
<h1>Page Not Found</h1>
<div class="box">
<p><strong>Sorry!</strong> That page doesn't appear to exist. If you think you have the right link, perhaps try logging in to see if anything changes.</p>

</div>
</div>
<?php include('footer.inc'); ?>
</div>
</body>
</html>
require_once __DIR__ . '/common.inc';
echo view('pages.404', [
'page_title' => 'WebPageTest - Page Not Found',
'body_class' => 'four-oh-four',
]);
1 change: 1 addition & 0 deletions www/assets/css/wpt-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ wpt-header * {
.account-layout wpt-header,
body.history wpt-header,
body.about wpt-header,
body.four-oh-four wpt-header,
body.common wpt-header,
body.video wpt-header,
body.compare:not(.compare-experiment) wpt-header,
Expand Down
17 changes: 17 additions & 0 deletions www/resources/views/pages/404.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@extends('default')

@section('content')

<div class="about">
<h1>Page Not Found</h1>
<div class="box">
<p>
<strong>Sorry!</strong>
That page doesn't appear to exist. If you think you have the right link,
perhaps try logging in to see if anything changes.
</p>

</div>
</div>

@endsection

0 comments on commit 46f46ee

Please sign in to comment.