This commit is contained in:
Jaidyn Ann 2024-07-17 18:44:33 -05:00
commit 976c913137
31 changed files with 2691 additions and 0 deletions

BIN
static/email-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
static/logo-1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
static/logo-128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
static/logo-16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

BIN
static/logo-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/logo.fonto.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

3
static/logo.fonto.txt Normal file
View File

@ -0,0 +1,3 @@
El Yapius.
Originale afiŝita ĉe https://www.pixiv.net/artworks/56224492,
reafiŝita al https://danbooru.donmai.us/posts/2323390

BIN
static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

2025
static/style-bootstrap.css Normal file

File diff suppressed because it is too large Load Diff

18
templates/400.html Normal file
View File

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% load i18n %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Bad request" %}</a></li>
{% endblock %}
{% block content %}
<div class="container">
<h2>{% trans "Bad request" %}</h2>
<p>
{% blocktrans %}Were sorry but something appears to be wrong with the request you made.{% endblocktrans %}
</p>
</div>
{% endblock %}

27
templates/403.html Normal file
View File

@ -0,0 +1,27 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Permission Denied" %}</a></li>
{% endblock %}
{% block content %}
<div class="container">
<h2>{% trans "Permission Denied" %}</h2>
<p>
{% trans "Insufficient privileges to display this page." %}
</p>
{% if not user.is_authenticated %}
<a href="{% url 'login' %}?next={{ login_redirect_url|urlencode }}" class="btn btn-primary">{% trans "Sign in" %}</a>
{% endif %}
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Dashboard" %}</a>
<a href="{% url 'projects' %}" class="btn btn-primary">{% trans "Browse all projects" %}</a>
<img src="{% static "x_x/500.png" %}">
</div>
{% endblock %}

28
templates/403_csrf.html Normal file
View File

@ -0,0 +1,28 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Permission Denied" %}</a></li>
{% endblock %}
{% block content %}
<div class="container">
<h2>{% trans "Permission Denied" %}</h2>
<p>{% trans "CSRF verification failed. Request aborted." %}</p>
{% if no_referer %}
<p>{% trans "This HTTPS site requires a 'Referer' header to be sent by your web browser, but none was sent. This header is required for security reasons, to ensure your browser is not hijacked by third-parties." %}</p>
<p>{% trans "If you have set up your web browser to not send 'Referer' headers, please turn that on (at-least for this site, for HTTPS connections, or for 'same-origin' requests)." %}</p>
{% elif no_cookie %}
<p>{% trans "This site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third-parties." %}</p>
<p>{% trans "If you have set up your browser to not save cookies, please turn them on again (at-least for this site, or for 'same-origin' requests)." %}</p>
{% elif reason %}
<p>{% blocktranslate %}CSRF failure reason: {{ reason }}{% endblocktranslate %}
{% endif %}
<img src="{% static "x_x/500.png" %}">
</div>
{% endblock %}

27
templates/404.html Normal file
View File

@ -0,0 +1,27 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Page Not Found" %}</a></li>
{% endblock %}
{% block content %}
<div class="container">
<h2>{% trans "Page Not Found" %}</h2>
<p>
{% trans "The page you are looking for was not found." %}
{% trans "The project you are looking for does not exist or is not publicly available." %}
</p>
<img src="{% static "x_x/404.png" %}">
{% if not user.is_authenticated %}
<a href="{% url 'login' %}" class="btn btn-primary">{% trans "Sign in" %}</a>
{% endif %}
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Dashboard" %}</a>
<a href="{% url 'projects' %}" class="btn btn-primary">{% trans "Browse all projects" %}</a>
</div>
{% endblock %}

43
templates/500.html Normal file
View File

@ -0,0 +1,43 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% load compress %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Internal Server Error" %}</a></li>
{% endblock %}
{% block content %}
<h2>{% trans "Server Error" %}</h2>
{% if sentry_event_id %}
<p>
{% blocktrans with error_id=sentry_event_id %}The server had serious problems serving your request, and this error has been recorded as {{ error_id }}.{% endblocktrans %}
</p>
{% if sentry_dsn %}
<script src="{% static "vendor/sentry.js" %}"></script>
<script>
Sentry.init({ dsn: '{{ sentry_dsn|escapejs }}' });
Sentry.showReportDialog({
{% if request.user.is_authenticated %}
user: { name: "{{ user.full_name|escapejs }}", email: "{{ user.email|escapejs }}" },
{% endif %}
eventId: '{{ sentry_event_id|escapejs }}'
})
</script>
{% endif %}
{% else %}
<p>
{% blocktrans %}The server had serious problems serving your request. You might want to contact server admins in case the error persists.{% endblocktrans %}
</p>
{% endif %}
<img src="{% static "x_x/500.png" %}">
{% endblock %}

378
templates/base.html Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
{% load static %}
<img style="max-width: 3em;" src="{% static 'logo-128.png' %}"/> <a class="navbar-brand" href="{% url 'home' %}">{{ site_title }}</a>

BIN
x_x/400.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
x_x/404.fonto.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

25
x_x/404.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE HTML>
<html>
<head>
<title>404 — Ne trovita</title>
<link rel="stylesheet" type="text/css" href="/static/x_x/style.css">
<meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,user-scalable=no">
</head>
<body>
<header>
<div class="title">HTTP 404 — Ne trovita</div>
</header>
<div class="panel user-profile-placeholder">
<div class="panel-body">
<h1>Paĝo ne troveblas!</h1>
<p>Tiu dosiero aŭ paĝo ne troviĝis. Bedaŭron!</p>
<p>Aŭ ĝi ne plu ekzistas, aŭ ĝi neniam ekzistis. Kia mistero, ĉu ne?</p>
</div>
<div class="panel-body">
<img src="/static/x_x/404.png">
</div>
</div>
</body>
</html>

BIN
x_x/404.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
x_x/500.fonto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

2
x_x/500.fonto.txt Normal file
View File

@ -0,0 +1,2 @@
El ぎあ魂, https://www.pixiv.net/artworks/37277532
Trovita ĉe https://danbooru.donmai.us/posts/1561979

BIN
x_x/500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
x_x/500.xcf Normal file

Binary file not shown.

BIN
x_x/502.fonto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

36
x_x/502.html Normal file
View File

@ -0,0 +1,36 @@
<!DOCTYPE HTML>
<html>
<head>
<title>502 — Servilo paŭzetas</title>
<link rel="stylesheet" type="text/css" href="/static/x_x/style.css">
<meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,user-scalable=no">
</head>
<body>
<header>
<div class="title">HTTP 502 — Pordega eraro</div>
</header>
<div class="panel user-profile-placeholder">
<div class="panel-body">
<h1>La servilo paŭzetas!</h1>
<p>Ĝi kredeble restartiĝos baldaŭ; bonvolu rekontroli post momento.</p>
<p>Se post ~15 minutoj ankoraŭ vidas tiun ĉi eraron, bonvolu sciigi jadedctrl! (Prefere per XMPP/Matrix!)</p>
<p><b>Matrix:</b> <a href="https://matrix.to/#/@jadedctrl:tedomum.net">@jadedctrl:tedomum.net</a><b>XMPP:</b> <a href="xmpp:jaidedim@dismail.de">jaidedim@dismail.de</a><br>
<b>Poŝte:</b> <a href="mailto:jadedctrl@posteo.net">jadedctrl@posteo.net</a></p>
</div>
<div class="panel-body">
<h1>The server's taking a break!</h1>
<p>It'll likely be back to work soon, so please try again in a moment.</p>
<p>If you still get this error after ~15 minutes, please let jadedctrl know! (Preferably with XMPP or Matrix!)</p>
<p><b>Matrix:</b> <a href="https://matrix.to/#/@jadedctrl:tedomum.net">@jadedctrl:tedomum.net</a><b>XMPP:</b> <a href="xmpp:jaidedim@dismail.de">jaidedim@dismail.de</a><br>
<b>E-mail:</b> <a href="mailto:jadedctrl@posteo.net">jadedctrl@posteo.net</a></p>
</div>
<div class="panel-body">
<img src="/static/x_x/502.png">
</div>
</div>
</body>
</html>

BIN
x_x/502.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
x_x/502.xcf Normal file

Binary file not shown.

77
x_x/style.css Normal file
View File

@ -0,0 +1,77 @@
/* Somewhat riffing off of Pleroma-FEs generated CSS.
Using the colors of Tiriftos Malvo theme. */
body {
font-family: sans-serif;
font-size: 14px;
}
.panel {
overflow: hidden;
border-radius: 3px;
padding: 0;
max-width: 1000px;
margin: auto;
}
img {
bottom: 0;
display: table-cell;
vertical-align: bottom;
}
h1 {
text-align: center;
}
header {
border-radius: 3px 3px 0 0;
margin: 0;
background: transparent;
background-color: #E2C2F2;
box-shadow: 0px 0px 0px 1px rgba(98, 14, 140, 1) ,
1px 1px 0px 0px rgba(255, 255, 255, 0.3) inset,
-1px -1px 0px 0px rgba(0, 0, 0, 0.3) inset;
padding: .5em;
text-align: left;
font-size: 1.3em;
}
.panel:after {
bottom: 0;
box-shadow: 1px 1px 4px rgba(0, 0, 0, .6);
box-shadow: 0px 0px 0px 1px rgba(98, 14, 140, 1) , 1px 1px 3px 1px rgba(0, 0, 0, 0.5);
content: "";
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
z-index: 5;
}
.panel-body p {
padding-left: 20px;
padding-right: 20px;
}
.panel-body:empty:before {
content: "¯\\_(ツ)_/¯";
display: block;
margin: 1em;
text-align: center;
}
.panel-body>p {
line-height: 1.3;
margin: 0;
padding: .5em;
text-align: center;
}