introducing new 404 page
This commit is contained in:
parent
f1b4ace6c1
commit
07572c3f73
44
404.php
44
404.php
|
|
@ -1,27 +1,29 @@
|
||||||
<!DOCTYPE html>
|
<?php
|
||||||
<html <?php language_attributes(); ?> class="no-js">
|
get_header();
|
||||||
|
?>
|
||||||
|
|
||||||
<head>
|
<section class="error_404 block-content-page-header container">
|
||||||
<meta charset="<?php bloginfo('charset'); ?>">
|
<div class="block-content-page-header__content">
|
||||||
<meta name="viewport" content="width=device-width">
|
<div class="section_titling section_titling--left">
|
||||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
<h1 class="section_titling__title"><?php echo __("Erreur 404 ", "homegrade-theme__texte-fonctionnel") ?></h1>
|
||||||
|
<h2 class="section_titling__subtitle"><?php echo __("Oups… Il semblerait que la page est indisponible.", "homegrade-theme__texte-fonctionnel") ?></h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php wp_head(); ?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="antialiased">
|
|
||||||
<div class="md:flex min-h-screen">
|
<a href="<?php echo get_bloginfo('url'); ?>" class="cta cta--secondary cta--button">
|
||||||
<div class="w-full md:w-1/2 flex items-center justify-center">
|
<?php _e('Retourner à la page d\'acceuil', 'homegrade-theme__texte-fonctionnel'); ?>
|
||||||
<div class="max-w-sm m-8">
|
|
||||||
<div class="text-5xl md:text-15xl text-gray-800 border-primary border-b">404</div>
|
|
||||||
<div class="w-16 h-1 bg-purple-light my-3 md:my-6"></div>
|
|
||||||
<p class="text-gray-800 text-2xl md:text-3xl font-light mb-8"><?php _e('Désolé, la page que vous chercheez n\'a pas pu être trouvée', 'homegrade-theme__texte-fonctionnel'); ?></p>
|
|
||||||
<a href="<?php echo get_bloginfo('url'); ?>" class="bg-primary px-4 py-2 rounded text-white">
|
|
||||||
<?php _e('Retour à l\'acceuil', 'homegrade-theme__texte-fonctionnel'); ?>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
<img decoding="async" class="block-content-page-header__page-icon" src="<?php echo get_template_directory_uri() . "/resources/img/illustrations/homegrade_error-404.svg" ?>" alt="">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
get_footer();
|
||||||
|
?>
|
||||||
|
|
@ -113,3 +113,4 @@
|
||||||
@import './pages/single-conseils.css';
|
@import './pages/single-conseils.css';
|
||||||
@import './pages/taxonomy-questions-(faq-per-taxonomy-term).css';
|
@import './pages/taxonomy-questions-(faq-per-taxonomy-term).css';
|
||||||
@import './pages/single-news.css';
|
@import './pages/single-news.css';
|
||||||
|
@import './pages/404.css';
|
||||||
|
|
|
||||||
7
resources/css/pages/404.css
Normal file
7
resources/css/pages/404.css
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
html {
|
||||||
|
@apply !m-0;
|
||||||
|
}
|
||||||
|
.error_404 {
|
||||||
|
@apply flex items-center;
|
||||||
|
min-height: calc(100vh - 186px);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user