<?php

declare(strict_types=1);

/** 
 * @author Robert Strutts <Robert@TryingToScale.com>
 * @copyright Copyright (c) 2022, Robert Strutts.
 * @license https://mit-license.org/
 */

 $protocol = "HTTP/1.0";
  if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] ) {
    $protocol = "HTTP/1.1";
  }
  
  header( "{$protocol} 404 Not Found", true, 404 );
  header('Content-type: text/html; charset=utf-8');
    if (defined("PROJECT_ASSETS_BASE_REF")) {
        $base_ref = PROJECT_ASSETS_BASE_REF;
    } else {
        $base_ref = "";
    }
?>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <base href="<?= $base_ref ?>/">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="language" content="english">
    <meta name="robots" content="no-follow">
    <link rel="shortcut icon" href="<?= $base_ref ?>/favicon/favicon.ico">
    <title>404 Page not found!</title>
    <style>
        @media only screen and (max-width: 600px) {
            #nopage {
                height: 150px;
                width: 300px; 
            }
        }
        @media only screen and (min-width: 600px) {
            #nopage {
                height: 500px;
                width: 1500px; 
            }
        }
    </style>
  </head>
  <body>
    <div id="wrap">
<?php      
     $assets = \bs_tts\site_helper::get_asset("images/404page.jpg");
?>      
        <img src="<?= $assets ?>/images/404page.jpg" alt="Page not found." id="nopage"/>
        <header><h1>404 Page not found!<h1></header>  
        <h3>Our apologies for the temporary inconvenience.</h3>
    </div>    
  </body>
</html>
<?php
  exit;  
