parent
a34e131e3d
commit
c467185fee
@ -0,0 +1,9 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* The template for displaying 404 pages (Not Found) |
||||||
|
*/ |
||||||
|
|
||||||
|
$context = Timber::get_context(); |
||||||
|
Timber::render('templates/404.twig', $context); |
||||||
|
|
||||||
|
?> |
@ -0,0 +1,59 @@ |
|||||||
|
{% extends 'layout.twig' %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
|
||||||
|
|
||||||
|
<style> |
||||||
|
:root { |
||||||
|
--gradient-turquoise: linear-gradient(90deg, #00C4B4, #00A3E0); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.container { |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
h1 { |
||||||
|
font-size: 120px; |
||||||
|
margin: 0; |
||||||
|
background: var(--gradient-turquoise); |
||||||
|
-webkit-background-clip: text; |
||||||
|
-webkit-text-fill-color: transparent; |
||||||
|
} |
||||||
|
|
||||||
|
p { |
||||||
|
font-size: 24px; |
||||||
|
color: #000000; |
||||||
|
margin: 20px 0; |
||||||
|
} |
||||||
|
|
||||||
|
.btn-home { |
||||||
|
display: inline-block; |
||||||
|
padding: 10px 20px; |
||||||
|
font-size: 18px; |
||||||
|
color: #ffffff; |
||||||
|
text-decoration: none; |
||||||
|
border-radius: 5px; |
||||||
|
background: var(--gradient-turquoise); |
||||||
|
transition: transform 0.2s; |
||||||
|
} |
||||||
|
|
||||||
|
.btn-home:hover { |
||||||
|
transform: scale(1.05); |
||||||
|
} |
||||||
|
</style> |
||||||
|
|
||||||
|
<div class="container"> |
||||||
|
{% if current_lang == 'ru' %} |
||||||
|
<h1>404</h1> |
||||||
|
<p>Данной страницы не существует</p> |
||||||
|
<a href="/" class="btn-home">На главную</a> |
||||||
|
{% elseif current_lang == 'en' %} |
||||||
|
<h1>404</h1> |
||||||
|
<p>This page does not exist</p> |
||||||
|
<a href="/" class="btn-home">Main page</a> |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
Loading…
Reference in new issue