diff --git a/customize.dist/four-oh-four.js b/customize.dist/four-oh-four.js
index 2f7b6212a..571663a32 100644
--- a/customize.dist/four-oh-four.js
+++ b/customize.dist/four-oh-four.js
@@ -1,13 +1,33 @@
define([
+ '/api/config',
'/common/hyperscript.js',
+ '/common/outer/local-store.js',
+ '/customize/messages.js',
'less!/customize/src/less2/pages/page-404.less',
-], function (h) {
- var scramble = h('h2#cp-scramble', "We couldn't find the page you were looking for");
- var title = h('h1#title', "404");
+], function (Config, h, LocalStore, Messages) {
+ var urlArgs = Config.requireConf.urlArgs;
+ var img = h('img#cp-logo', {
+ src: '/customize/cryptpad-new-logo-colors-logoonly.png?' + urlArgs
+ });
+
+ var brand = h('h1#cp-brand', 'CryptPad');
+ var message = h('h2#cp-scramble', Messages.four04_pageNotFound);
+ var title = h('h2#cp-title', "404");
+
+ var loggedIn = LocalStore.isLoggedIn();
+ var link = h('a#cp-link', {
+ href: loggedIn? '/drive/': '/',
+ }, loggedIn? Messages.four04_goToDrive: Messages.four04_goToHome);
+
var content = h('div#cp-main', [
+ img,
+ brand,
+ //h('h1#cp-brand', 'CryptPad'),
title,
- scramble
+ message,
+ //scramble,
+ link,
]);
document.body.appendChild(content);
@@ -50,8 +70,10 @@ define([
};
};
+ makeDecryptor(brand, 90, 4, function () { })();
makeDecryptor(title, 70, 17, function () { })();
- makeDecryptor(scramble, 10, 8, function () {
+ makeDecryptor(link, 20, 12, function () {})();
+ makeDecryptor(scramble, 30, 8, function () {
console.log('done');
})();
});
diff --git a/customize.dist/src/less2/pages/page-404.less b/customize.dist/src/less2/pages/page-404.less
index 7bac6d4bd..6c67732fd 100644
--- a/customize.dist/src/less2/pages/page-404.less
+++ b/customize.dist/src/less2/pages/page-404.less
@@ -1,16 +1,36 @@
-//@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
+@import (once) "../include/font.less";
+.font_neuropolitical();
+.font_open-sans();
html, body {
- margin: 0;
- padding: 0;
+ margin: 0px;
+ padding: 0px;
#cp-main {
+
height: 100vh;
+ margin: 0px;
width: 100%;
- padding-top: 20%;
+ padding-top: 5%;
text-align: center;
- #cp-scramble {
- font-family: monospace !important;
+ #cp-logo {
+ display: block;
+ max-width: 15%;
+ margin: auto;
+ }
+ #cp-brand {
+ font-family: neuropolitical;
+ font-size: 40px;
+ }
+ #cp-title {
+ font-size: 30px;
+ }
+ #cp-scramble, #cp-link {
+ font-size: 20px;
+ }
+ #cp-title, #cp-scramble, #cp-link {
+ //font-family: 'Open Sans';
+ font-family: monospace;
}
}
}
diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js
index 511629de8..c37420611 100644
--- a/customize.dist/translations/messages.js
+++ b/customize.dist/translations/messages.js
@@ -688,10 +688,14 @@ define(function () {
out.tos_logs = "Metadata provided by your browser to the server may be logged for the purpose of maintaining the service.";
out.tos_3rdparties = "We do not provide individualized data to third parties unless required to by law.";
+ out.four04_pageNotFound = "We couldn't find the page you were looking for.";
+ out.four04_goToHome = "Go to the home page.";
+ out.four04_goToDrive = "Go to my CryptDrive.";
+
// BottomBar.html
- out.bottom_france = 'Made with
in
';
- out.bottom_support = 'An
Labs Project with the support of
';
+ //out.bottom_france = 'Made with
in
';
+ //out.bottom_support = 'An
Labs Project with the support of
';
// Header.html