summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/web/error.css
diff options
context:
space:
mode:
authorkakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>2023-04-12 12:52:14 +0900
committerGitHub <noreply@github.com>2023-04-12 12:52:14 +0900
commit49749b46c4c8914947e0950069bcf4431f157c4f (patch)
tree6af5d7439b5fc17772b02d1bdc5566b4789fe615 /packages/backend/src/server/web/error.css
parentfeat: role timeline (diff)
downloadmisskey-49749b46c4c8914947e0950069bcf4431f157c4f.tar.gz
misskey-49749b46c4c8914947e0950069bcf4431f157c4f.tar.bz2
misskey-49749b46c4c8914947e0950069bcf4431f157c4f.zip
feat(server): Misskey Webでユーザーフレンドリーなエラーページを出す (#10590)
* (add) user-friendly error page * Update CHANGELOG.md * (add) cache-control header * Add ClientLoggerService * Log params and query * remove error stack on client * fix pug * 文面を調整 * :art] --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Diffstat (limited to 'packages/backend/src/server/web/error.css')
-rw-r--r--packages/backend/src/server/web/error.css110
1 files changed, 110 insertions, 0 deletions
diff --git a/packages/backend/src/server/web/error.css b/packages/backend/src/server/web/error.css
new file mode 100644
index 0000000000..ab913f7a9f
--- /dev/null
+++ b/packages/backend/src/server/web/error.css
@@ -0,0 +1,110 @@
+* {
+ font-family: BIZ UDGothic, Roboto, HelveticaNeue, Arial, sans-serif;
+}
+
+#misskey_app,
+#splash {
+ display: none !important;
+}
+
+body,
+html {
+ background-color: #222;
+ color: #dfddcc;
+ justify-content: center;
+ margin: auto;
+ padding: 10px;
+ text-align: center;
+}
+
+button {
+ border-radius: 999px;
+ padding: 0px 12px 0px 12px;
+ border: none;
+ cursor: pointer;
+ margin-bottom: 12px;
+}
+
+.button-big {
+ background: linear-gradient(90deg, rgb(134, 179, 0), rgb(74, 179, 0));
+ line-height: 50px;
+}
+
+.button-big:hover {
+ background: rgb(153, 204, 0);
+}
+
+.button-small {
+ background: #444;
+ line-height: 40px;
+}
+
+.button-small:hover {
+ background: #555;
+}
+
+.button-label-big {
+ color: #222;
+ font-weight: bold;
+ font-size: 20px;
+ padding: 12px;
+}
+
+.button-label-small {
+ color: rgb(153, 204, 0);
+ font-size: 16px;
+ padding: 12px;
+}
+
+a {
+ color: rgb(134, 179, 0);
+ text-decoration: none;
+}
+
+p,
+li {
+ font-size: 16px;
+}
+
+.dont-worry,
+#msg {
+ font-size: 18px;
+}
+
+.icon-warning {
+ color: #dec340;
+ height: 4rem;
+ padding-top: 2rem;
+}
+
+h1 {
+ font-size: 32px;
+}
+
+code {
+ display: block;
+ font-family: Fira, FiraCode, monospace;
+ background: #333;
+ padding: 0.5rem 1rem;
+ max-width: 40rem;
+ border-radius: 10px;
+ justify-content: center;
+ margin: auto;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+summary {
+ cursor: pointer;
+}
+
+summary > * {
+ display: inline;
+ white-space: pre-wrap;
+}
+
+@media screen and (max-width: 500px) {
+ details {
+ width: 50%;
+ }
+} \ No newline at end of file