162 lines
4.5 KiB
PHP
Executable File
162 lines
4.5 KiB
PHP
Executable File
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\CoreExtension;
|
|
use Twig\Extension\SandboxExtension;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
use Twig\TemplateWrapper;
|
|
|
|
/* errors/404.twig */
|
|
class __TwigTemplate_c6f0267ca5da37320d6b8008035addab extends Template
|
|
{
|
|
private Source $source;
|
|
/**
|
|
* @var array<string, Template>
|
|
*/
|
|
private array $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->parent = false;
|
|
|
|
$this->blocks = [
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 1
|
|
yield "<!DOCTYPE html>
|
|
<html lang=\"pt-BR\">
|
|
<head>
|
|
<meta charset=\"UTF-8\">
|
|
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
|
<title>Página não encontrada - 404</title>
|
|
<link href=\"/assets/css/bootstrap.min.css\" rel=\"stylesheet\">
|
|
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css\">
|
|
<style>
|
|
body {
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f8f9fa;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
.error-container {
|
|
text-align: center;
|
|
max-width: 600px;
|
|
padding: 60px 40px;
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 10px 40px rgba(0,0,0,0.08);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
.error-container:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
.error-code {
|
|
font-size: 120px;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
background: linear-gradient(135deg, #6c757d 0%, #343a40 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
margin-bottom: 20px;
|
|
}
|
|
.error-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #343a40;
|
|
margin-bottom: 15px;
|
|
}
|
|
.error-message {
|
|
color: #6c757d;
|
|
font-size: 16px;
|
|
margin-bottom: 30px;
|
|
line-height: 1.6;
|
|
}
|
|
.btn-home {
|
|
padding: 12px 30px;
|
|
border-radius: 50px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
.btn-home:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
|
|
}
|
|
.icon-circle {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: #f8f9fa;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 30px;
|
|
}
|
|
.icon-circle i {
|
|
font-size: 32px;
|
|
color: #6c757d;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class=\"container\">
|
|
<div class=\"row justify-content-center\">
|
|
<div class=\"col-12 col-md-8 col-lg-6\">
|
|
<div class=\"error-container\">
|
|
<div class=\"error-code\">404</div>
|
|
<h1 class=\"error-title\">Página não encontrada</h1>
|
|
<p class=\"error-message\">
|
|
Ops! A página que você está procurando parece não existir.
|
|
Ela pode ter sido movida ou excluída.
|
|
</p>
|
|
<a href=\"/\" class=\"btn btn-primary btn-home\">
|
|
<i class=\"bi bi-arrow-left me-2\"></i> Voltar para o Início
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>";
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "errors/404.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 42 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "errors/404.twig", "/app/templates/errors/404.twig");
|
|
}
|
|
}
|