Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2015-03-26 21:06:54 +0300
committerJonne Haß <me@jhass.eu>2015-03-27 13:15:59 +0300
commite7d0a978bad4ae403dbbfc5b142e51ee6d80a930 (patch)
tree7e2ef7e9d6c833bed71002ba7e01f5d515f752a1 /public
parent2eaa5a4d3bc9284ef9b935a5189f2f1c30233a40 (diff)
Generate error pages on assets:precompile
This allows us to reuse any CSS we have, unify their look and unify their look with the regular page design. This works by instantiating ActionView and rendering templates in a rake task. Inspired by the errgent gem.
Diffstat (limited to 'public')
-rw-r--r--public/404.css52
-rw-r--r--public/404.html14
-rw-r--r--public/422.html26
-rw-r--r--public/500.html47
-rw-r--r--public/Roboto-BoldCondensed.ttfbin161308 -> 0 bytes
-rw-r--r--public/Roboto-Regular.ttfbin158604 -> 0 bytes
-rw-r--r--public/apple-touch-icon.pngbin6618 -> 0 bytes
-rw-r--r--public/bgpattern.pngbin4064 -> 0 bytes
-rw-r--r--public/icon_128.gifbin6388 -> 0 bytes
-rw-r--r--public/peeping-tom.pngbin63911 -> 0 bytes
10 files changed, 0 insertions, 139 deletions
diff --git a/public/404.css b/public/404.css
deleted file mode 100644
index b0d7864ad..000000000
--- a/public/404.css
+++ /dev/null
@@ -1,52 +0,0 @@
-@font-face {
- font-family:Roboto;
- src: local("Roboto-Regular.ttf")
-}
-
-@font-face {
- font-family:Roboto-BoldCondensed;
- src: local("Roboto-BoldCondensed.ttf")
-}
-
-html {
- background: url("bgpattern.png") #ebebeb;
- text-align: center;
-}
-
-body {
- width: 100%;
- height: 100%;
- position: fixed;
- bottom:0px;
- margin: 0px;
- font-family: Roboto, Helvetica, Arial, sans-serif;
- text-align: center;
- text-shadow: 0 1px 0 #fff;
- color: #666;
- background: url("peeping-tom.png") no-repeat bottom;
-}
-
-#big-number {
- font-family: Roboto-BoldCondensed, Helvetica, Arial, sans-serif;
- font-size: 250px;
- text-shadow: 0 2px 0 #fff, 0 -1px 0 #999;
- color: #ddd;
-}
-
-a {
- text-decoration : none;
- color : rgb(42,156,235);
-}
-
-a:hover {
- text-decoration : underline;
-}
-
-.transparent {
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
- filter: alpha(opacity=80);
- opacity: 0.8;
- -moz-opacity: 0.8;
- -khtml-opacity: 0.8;
- -webkit-opacity: 0.8;
-}
diff --git a/public/404.html b/public/404.html
deleted file mode 100644
index daa4be7f5..000000000
--- a/public/404.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>The page you were looking for doesn't exist (404)</title>
- <link href="/favicon.ico" rel="shortcut icon">
- <link href="/404.css" type="text/css" rel="stylesheet">
- </head>
- <body>
- <!-- This file lives in public/404.html -->
- <div id="big-number" class="transparent">404</div>
- <p>These are not the kittens you're looking for. Move along.</p>
- <p><a href="javascript:history.back()">Go Back?</a></p>
- </body>
-</html>
diff --git a/public/422.html b/public/422.html
deleted file mode 100644
index 83660ab18..000000000
--- a/public/422.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>The change you wanted was rejected (422)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/422.html -->
- <div class="dialog">
- <h1>The change you wanted was rejected.</h1>
- <p>Maybe you tried to change something you didn't have access to.</p>
- </div>
-</body>
-</html>
diff --git a/public/500.html b/public/500.html
deleted file mode 100644
index d90787b1d..000000000
--- a/public/500.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>We're sorry, but something went wrong (500)</title>
- <style type="text/css">
- body {
- text-align: center;
- background-color: rgb(252,252,252);
- color: #444;
- font-family: 'helvetica neue', 'helvetica', 'arial', sans-serif;
- margin: 0;
- padding: 1em;
- }
-
- header {
- height: 100px;
- background-color: #333;
- position:relative;
- }
-
- #diaspora_logo {
- position: relative;
- margin-top: 50px;
- }
-
- h1 {
- font-size: 100%;
- color: #444;
- line-height: 1.5em;
- }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/500.html -->
- <header>
- <img id="diaspora_logo" src="/assets/branding/white2x.png"/>
- </header>
-
- <h1>
- 500: Internal server error.
- </h1>
- <h3>
- Our bad! Sorry about that. :(
- </h3>
-</body>
-</html>
diff --git a/public/Roboto-BoldCondensed.ttf b/public/Roboto-BoldCondensed.ttf
deleted file mode 100644
index d7ea8833b..000000000
--- a/public/Roboto-BoldCondensed.ttf
+++ /dev/null
Binary files differ
diff --git a/public/Roboto-Regular.ttf b/public/Roboto-Regular.ttf
deleted file mode 100644
index 7d9a6c4c3..000000000
--- a/public/Roboto-Regular.ttf
+++ /dev/null
Binary files differ
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
deleted file mode 100644
index 302744847..000000000
--- a/public/apple-touch-icon.png
+++ /dev/null
Binary files differ
diff --git a/public/bgpattern.png b/public/bgpattern.png
deleted file mode 100644
index a21195356..000000000
--- a/public/bgpattern.png
+++ /dev/null
Binary files differ
diff --git a/public/icon_128.gif b/public/icon_128.gif
deleted file mode 100644
index fd164228e..000000000
--- a/public/icon_128.gif
+++ /dev/null
Binary files differ
diff --git a/public/peeping-tom.png b/public/peeping-tom.png
deleted file mode 100644
index e35c0a1f7..000000000
--- a/public/peeping-tom.png
+++ /dev/null
Binary files differ