diff --git a/CodeIgniter-3.1.13/application/config/routes.php b/CodeIgniter-3.1.13/application/config/routes.php index af9e05a..d54b555 100644 --- a/CodeIgniter-3.1.13/application/config/routes.php +++ b/CodeIgniter-3.1.13/application/config/routes.php @@ -50,7 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | my-controller/my-method -> my_controller/my_method */ $route['default_controller'] = 'home/index'; -$route['404_override'] = ''; +$route['404_override'] = 'errors/error_404'; $route['translate_uri_dashes'] = FALSE; $route['albums'] = 'albums/index'; $route['musiques'] = 'Musiques/index'; diff --git a/CodeIgniter-3.1.13/application/controllers/Errors.php b/CodeIgniter-3.1.13/application/controllers/Errors.php new file mode 100644 index 0000000..d3c6bc0 --- /dev/null +++ b/CodeIgniter-3.1.13/application/controllers/Errors.php @@ -0,0 +1,16 @@ +output->set_status_header('404'); + $this->load->view('layout/header_dark'); + $this->load->view('error_404'); + $this->load->view('layout/footer_dark'); + } +} diff --git a/CodeIgniter-3.1.13/application/views/error_404.php b/CodeIgniter-3.1.13/application/views/error_404.php new file mode 100644 index 0000000..96b2304 --- /dev/null +++ b/CodeIgniter-3.1.13/application/views/error_404.php @@ -0,0 +1,159 @@ + + + + + 404 - Page non trouvée + + + +

Erreur 404 🤖 - Cette page n'existe pas

+

Ne partez pas si vite, pourquoi ne pas rester pour jouer Ă  Flappy Onzeur ?

+ +
+
3
+
+ + + diff --git a/CodeIgniter-3.1.13/assets/css/error_404.css b/CodeIgniter-3.1.13/assets/css/error_404.css new file mode 100644 index 0000000..cb00776 --- /dev/null +++ b/CodeIgniter-3.1.13/assets/css/error_404.css @@ -0,0 +1,24 @@ +canvas { + border: 1px solid black; + display: block; + margin: 0 auto; + z-index: 1; +} + +.overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 2; +} + +.countdown { + font-size: 36px; + color: white; +} \ No newline at end of file