From 25cd0fd1b8c3333b8ab98e685c12e19660776c71 Mon Sep 17 00:00:00 2001 From: sysek Date: Sat, 21 Dec 2024 20:28:19 +0100 Subject: [PATCH] git init --- .gitignore | 14 +++++++++ app.py | 11 +++++++ static/css/main.css | 71 ++++++++++++++++++++++++++++++++++++++++++ templates/500.html | 12 +++++++ templates/base.html | 22 +++++++++++++ templates/foo/bar.html | 7 +++++ templates/hello.html | 23 ++++++++++++++ templates/maint.html | 25 +++++++++++++++ templates/post.html | 7 +++++ 9 files changed, 192 insertions(+) create mode 100644 .gitignore create mode 100644 app.py create mode 100644 static/css/main.css create mode 100644 templates/500.html create mode 100644 templates/base.html create mode 100644 templates/foo/bar.html create mode 100644 templates/hello.html create mode 100644 templates/maint.html create mode 100644 templates/post.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e36a84a --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +.idea/ +.vscode/ +.venv*/ +venv*/ +__pycache__/ +dist/ +.coverage* +htmlcov/ +.tox/ +docs/_build/ + +# misc dev +.projectile +bpy2.py \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..53f05ec --- /dev/null +++ b/app.py @@ -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') + diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..3cdc087 --- /dev/null +++ b/static/css/main.css @@ -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; } + + diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..6c421c4 --- /dev/null +++ b/templates/500.html @@ -0,0 +1,12 @@ + + + + 500 Internal Server Error + + +

Internal Server Error

+

The server was unable to complete your request. Please try again later.

+

If this problem persists, please contact support.

+

Server logs contain details of this error with request ID: ABC-123.

+ + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..8b4e417 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,22 @@ + + + + + + :: sysek.hopto.org - {% block title %}{% endblock %} + + + +
+
+ +
+
+ {% block content %} + {% endblock %} +
+
+ + diff --git a/templates/foo/bar.html b/templates/foo/bar.html new file mode 100644 index 0000000..6583b2e --- /dev/null +++ b/templates/foo/bar.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} + +{% block title %} foo/bar {% endblock %} + +{% block content %} +

{{ url_for('test1.bp_foo') }}

+{% endblock %} diff --git a/templates/hello.html b/templates/hello.html new file mode 100644 index 0000000..2161070 --- /dev/null +++ b/templates/hello.html @@ -0,0 +1,23 @@ +{% extends 'base.html' %} + +{% block title %} Hello world! {% endblock %} + +{% block content %} +

Hello world!

+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Donec hendrerit tempor tellus.  Donec pretium posuere tellus.  Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.  Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.  Nulla posuere.  Donec vitae dolor.  Nullam tristique diam non turpis.  Cras placerat accumsan nulla.  Nullam rutrum.  Nam vestibulum accumsan nisl.

+

+

Nullam eu ante vel est convallis dignissim.  Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio.  Nunc porta vulputate tellus.  Nunc rutrum turpis sed pede.  Sed bibendum.  Aliquam posuere.  Nunc aliquet, augue nec adipiscing interdum, lacus tellus malesuada massa, quis varius mi purus non odio.  Pellentesque condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non luctus diam neque sit amet urna.  Curabitur vulputate vestibulum lorem.  Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros.  Sed id ligula quis est convallis tempor.  Curabitur lacinia pulvinar nibh.  Nam a sapien.

+

+

+ Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor tellus.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.

+

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Donec hendrerit tempor tellus.  Donec pretium posuere tellus.  Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.  Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.  Nulla posuere.  Donec vitae dolor.  Nullam tristique diam non turpis.  Cras placerat accumsan nulla.  Nullam rutrum.  Nam vestibulum accumsan nisl.

+

+

+ Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor tellus.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.

+

+

+ Pellentesque dapibus suscipit ligula.  Donec posuere augue in quam.  Etiam vel tortor sodales tellus ultricies commodo.  Suspendisse potenti.  Aenean in sem ac leo mollis blandit.  Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.  Phasellus lacus.  Etiam laoreet quam sed arcu.  Phasellus at dui in ligula mollis ultricies.  Integer placerat tristique nisl.  Praesent augue.  Fusce commodo.  Vestibulum convallis, lorem a tempus semper, dui dui euismod elit, vitae placerat urna tortor vitae lacus.  Nullam libero mauris, consequat quis, varius et, dictum id, arcu.  Mauris mollis tincidunt felis.  Aliquam feugiat tellus ut neque.  Nulla facilisis, risus a rhoncus fermentum, tellus tellus lacinia purus, et dictum nunc justo sit amet elit.

+

+{% endblock %} diff --git a/templates/maint.html b/templates/maint.html new file mode 100644 index 0000000..965162b --- /dev/null +++ b/templates/maint.html @@ -0,0 +1,25 @@ + + + + + + :: sysek.hopto.org - {% block title %}{% endblock %} + + + +
+
+ Maint. +
+

Today is: [2024-12-21 20.00 Saturday]

+

Time, Dr. Freeman?

+

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?

+ +

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.

+ +

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.

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

+ +{% endblock %}