This commit is contained in:
sysek 2024-12-21 20:28:19 +01:00
commit 25cd0fd1b8
9 changed files with 192 additions and 0 deletions

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
.idea/
.vscode/
.venv*/
venv*/
__pycache__/
dist/
.coverage*
htmlcov/
.tox/
docs/_build/
# misc dev
.projectile
bpy2.py

11
app.py Normal file
View file

@ -0,0 +1,11 @@
from flask import Flask, render_template
from bpy2 import bp, bp2
app = Flask(__name__)
app.register_blueprint(bp)
app.register_blueprint(bp2)
@app.route("/")
def index():
return render_template('maint.html')

71
static/css/main.css Normal file
View file

@ -0,0 +1,71 @@
* {
box-sizing: border-box;
}
html {
background-image: linear-gradient(to top, #1e0f1d, #061f2b);
background-repeat: no-repeat;
background-attachment: fixed;
width: 100%;
height: 100%;
}
body {
font-family: monospace;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 1px #d945d1 solid;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
.container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto auto auto;
grid-auto-rows: 1fr;
gap: 5px;
grid-auto-flow: row;
grid-template-areas:
"header header header"
"content content content"
"footer footer footer";
margin-left: 20%;
margin-right: 20%;
}
.header { grid-area: header; }
.content {
grid-area: content;
color: #fff;
padding: 5px;
margin-left: 10%;
margin-right: 10%;
}
.footer { grid-area: footer; }

12
templates/500.html Normal file
View file

@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>Internal Server Error</h1>
<p>The server was unable to complete your request. Please try again later.</p>
<p>If this problem persists, please <a href="https://example.com/support">contact support</a>.</p>
<p>Server logs contain details of this error with request ID: ABC-123.</p>
</body>
</html>

22
templates/base.html Normal file
View file

@ -0,0 +1,22 @@
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>:: sysek.hopto.org - {% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
<div class="container">
<div class="header">
<ul>
<li><a href="{{ url_for('index') }}">Index</a></li>
</ul>
</div>
<div class="content">
{% block content %}
{% endblock %}
</div>
</div>
</body>
</html>

7
templates/foo/bar.html Normal file
View file

@ -0,0 +1,7 @@
{% extends 'base.html' %}
{% block title %} foo/bar {% endblock %}
{% block content %}
<p> {{ url_for('test1.bp_foo') }} </p>
{% endblock %}

23
templates/hello.html Normal file
View file

@ -0,0 +1,23 @@
{% extends 'base.html' %}
{% block title %} Hello world! {% endblock %}
{% block content %}
<p>Hello world!</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&nbsp;&nbsp;Donec hendrerit tempor tellus.&nbsp;&nbsp;Donec pretium posuere tellus.&nbsp;&nbsp;Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.&nbsp;&nbsp;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.&nbsp;&nbsp;Nulla posuere.&nbsp;&nbsp;Donec vitae dolor.&nbsp;&nbsp;Nullam tristique diam non turpis.&nbsp;&nbsp;Cras placerat accumsan nulla.&nbsp;&nbsp;Nullam rutrum.&nbsp;&nbsp;Nam vestibulum accumsan nisl.<br><br>
</p>
<p>Nullam eu ante vel est convallis dignissim.&nbsp;&nbsp;Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio.&nbsp;&nbsp;Nunc porta vulputate tellus.&nbsp;&nbsp;Nunc rutrum turpis sed pede.&nbsp;&nbsp;Sed bibendum.&nbsp;&nbsp;Aliquam posuere.&nbsp;&nbsp;Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio.&nbsp;&nbsp;Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna.&nbsp;&nbsp;Curabitur vulputate vestibulum lorem.&nbsp;&nbsp;Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros.&nbsp;&nbsp;Sed id ligula quis est convallis tempor.&nbsp;&nbsp;Curabitur lacinia pulvinar nibh.&nbsp;&nbsp;Nam a sapien.<br><br>
</p>
<p>
Aliquam erat volutpat.&nbsp;&nbsp;Nunc eleifend leo vitae magna.&nbsp;&nbsp;In id erat non orci commodo lobortis.&nbsp;&nbsp;Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.&nbsp;&nbsp;Sed diam.&nbsp;&nbsp;Praesent fermentum tempor tellus.&nbsp;&nbsp;Nullam tempus.&nbsp;&nbsp;Mauris ac felis vel velit tristique imperdiet.&nbsp;&nbsp;Donec at pede.&nbsp;&nbsp;Etiam vel neque nec dui dignissim bibendum.&nbsp;&nbsp;Vivamus id enim.&nbsp;&nbsp;Phasellus neque orci, porta a, aliquet quis, semper a, massa.&nbsp;&nbsp;Phasellus purus.&nbsp;&nbsp;Pellentesque tristique imperdiet tortor.&nbsp;&nbsp;Nam euismod tellus id erat.<br><br>
</p>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&nbsp;&nbsp;Donec hendrerit tempor tellus.&nbsp;&nbsp;Donec pretium posuere tellus.&nbsp;&nbsp;Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.&nbsp;&nbsp;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.&nbsp;&nbsp;Nulla posuere.&nbsp;&nbsp;Donec vitae dolor.&nbsp;&nbsp;Nullam tristique diam non turpis.&nbsp;&nbsp;Cras placerat accumsan nulla.&nbsp;&nbsp;Nullam rutrum.&nbsp;&nbsp;Nam vestibulum accumsan nisl.<br><br>
</p>
<p>
Aliquam erat volutpat.&nbsp;&nbsp;Nunc eleifend leo vitae magna.&nbsp;&nbsp;In id erat non orci commodo lobortis.&nbsp;&nbsp;Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.&nbsp;&nbsp;Sed diam.&nbsp;&nbsp;Praesent fermentum tempor tellus.&nbsp;&nbsp;Nullam tempus.&nbsp;&nbsp;Mauris ac felis vel velit tristique imperdiet.&nbsp;&nbsp;Donec at pede.&nbsp;&nbsp;Etiam vel neque nec dui dignissim bibendum.&nbsp;&nbsp;Vivamus id enim.&nbsp;&nbsp;Phasellus neque orci, porta a, aliquet quis, semper a, massa.&nbsp;&nbsp;Phasellus purus.&nbsp;&nbsp;Pellentesque tristique imperdiet tortor.&nbsp;&nbsp;Nam euismod tellus id erat.<br><br>
</p>
<p>
Pellentesque dapibus suscipit ligula.&nbsp;&nbsp;Donec posuere augue in quam.&nbsp;&nbsp;Etiam vel tortor sodales tellus ultricies commodo.&nbsp;&nbsp;Suspendisse potenti.&nbsp;&nbsp;Aenean in sem ac leo mollis blandit.&nbsp;&nbsp;Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.&nbsp;&nbsp;Phasellus lacus.&nbsp;&nbsp;Etiam laoreet quam sed arcu.&nbsp;&nbsp;Phasellus at dui in ligula mollis ultricies.&nbsp;&nbsp;Integer placerat tristique nisl.&nbsp;&nbsp;Praesent augue.&nbsp;&nbsp;Fusce commodo.&nbsp;&nbsp;Vestibulum convallis, lorem a tempus semper, dui dui euismod elit, vitae placerat urna tortor vitae lacus.&nbsp;&nbsp;Nullam libero mauris, consequat quis, varius et, dictum id, arcu.&nbsp;&nbsp;Mauris mollis tincidunt felis.&nbsp;&nbsp;Aliquam feugiat tellus ut neque.&nbsp;&nbsp;Nulla facilisis, risus a rhoncus fermentum, tellus tellus lacinia purus, et dictum nunc justo sit amet elit.<br><br>
</p>
{% endblock %}

25
templates/maint.html Normal file
View file

@ -0,0 +1,25 @@
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>:: sysek.hopto.org - {% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
<div class="container">
<div class="content">
Maint.
<article class="post">
<h1>Today is: [2024-12-21 20.00 Saturday]</h1>
<p>Time, Dr. Freeman?</p>
<p>Is it really that time again? It seems as if you only just arrived. You've done a great deal in a small timespan. You've done so well, in fact, that I've received some interesting offers for your services. Ordinarily, I wouldn't contemplate them, but these are extraordinary times, hmm?</p>
<p>Rather than offer you the illusion of free choice, I will take the liberty of choosing for you... if and when your time comes round again.</p>
<p>I do apologize for what must seem to you an arbitrary imposition, Dr. Freeman. I trust it will all make sense to you in the course of... well... I'm really not at liberty to say. In the meantime... This is where I get off.</p>
</article>
</div>
</div>
</body>
</html>

7
templates/post.html Normal file
View file

@ -0,0 +1,7 @@
{% extends 'base.html' %}
{% block title %} ID.TEXT {% endblock %}
{% block post %}
Nullam eu ante vel est convallis dignissim.&nbsp;&nbsp;Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio.&nbsp;&nbsp;Nunc porta vulputate tellus.&nbsp;&nbsp;Nunc rutrum turpis sed pede.&nbsp;&nbsp;Sed bibendum.&nbsp;&nbsp;Aliquam posuere.&nbsp;&nbsp;Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio.&nbsp;&nbsp;Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna.&nbsp;&nbsp;Curabitur vulputate vestibulum lorem.&nbsp;&nbsp;Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros.&nbsp;&nbsp;Sed id ligula quis est convallis tempor.&nbsp;&nbsp;Curabitur lacinia pulvinar nibh.&nbsp;&nbsp;Nam a sapien.<br><br>
{% endblock %}