]> _ Git - fluidbook-v3.git/commitdiff
done #698 @1:40
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Sep 2016 13:28:03 +0000 (13:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Sep 2016 13:28:03 +0000 (13:28 +0000)
framework/application/controllers/ErrorController.php
framework/application/views/scripts/error/e404.phtml [new file with mode: 0644]
js/504-e404.js [new file with mode: 0644]
less/504-e404.less [new file with mode: 0644]

index be156216883a864e797e313c4c07aef80c7d0f13..e4ded892a1832b6a2f51b097e3e2a98af88de795 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-class ErrorController extends CubeIT_Controller_ErrorController
-{
+class ErrorController extends CubeIT_Controller_ErrorController {
+       public function e404Action() {
+
+       }
+
 }
 
diff --git a/framework/application/views/scripts/error/e404.phtml b/framework/application/views/scripts/error/e404.phtml
new file mode 100644 (file)
index 0000000..303f861
--- /dev/null
@@ -0,0 +1,7 @@
+<?php\r
+$this->headScript()->addScriptAndStyle('504-e404');\r
+$this->headerClass = "light noscrollanim";\r
+\r
+echo '<div id="error">';\r
+echo $this->markupDotclear($this->option('e404'));\r
+echo '</div>';
\ No newline at end of file
diff --git a/js/504-e404.js b/js/504-e404.js
new file mode 100644 (file)
index 0000000..5581cd0
--- /dev/null
@@ -0,0 +1,13 @@
+registerLoader(load_e404, true);\r
+function load_e404() {\r
+    resize_e404();\r
+    $(window).on('fluidbookresize', resize_e404);\r
+}\r
+\r
+function resize_e404() {\r
+    var wh = getWindowHeight() / zoom;\r
+    $('#error').css('height', wh);\r
+\r
+    var c = $("#error .dotclear");\r
+    $(c).css({paddingTop: $("#h").height() + (wh - $("#h").height() - $(c).outerHeight()) / 2})\r
+}
\ No newline at end of file
diff --git a/less/504-e404.less b/less/504-e404.less
new file mode 100644 (file)
index 0000000..6ff15f3
--- /dev/null
@@ -0,0 +1,49 @@
+@import "000-imports";\r
+\r
+#error {\r
+       background-image: url("/images/error/404/background.jpg");\r
+       background-size: cover;\r
+       min-height: 100%;\r
+\r
+       .dotclear {\r
+               text-align: center;\r
+               color: #ffffff;\r
+               h1, p {\r
+                       font-weight: 400;\r
+                       font-family: @playfair;\r
+                       padding:0 20px;\r
+               }\r
+\r
+               h1 {\r
+                       font-size: 150px;\r
+\r
+                       @media @m1024{\r
+                               font-size: 100px;\r
+                       }\r
+                       @media @m640{\r
+                               font-size: 50px;\r
+                       }\r
+               }\r
+\r
+               p {\r
+                       font-size: 25px;\r
+\r
+                       @media @m1024{\r
+                               font-size: 20px;\r
+                       }\r
+\r
+                       @media @m640{\r
+                               font-size: 15px;\r
+                       }\r
+               }\r
+\r
+               a {\r
+                       .button();\r
+                       .background-button-green();\r
+                       .longarrow-button(16px, 40px, 18px);\r
+                       color: #fff;\r
+                       margin-top: 30px;\r
+                       font-size: 12px;\r
+               }\r
+       }\r
+}
\ No newline at end of file