diff --git a/app.py b/app.py index 53b2966..fadfdb3 100755 --- a/app.py +++ b/app.py @@ -1,11 +1,14 @@ from flask import Flask, render_template +import json app = Flask(__name__) +contact_data = json.load(open("data/contact.json")) + @app.route("/") def render_home(): return render_template("home.html", big_header = True) @app.route("/contact") def render_contact(): - return render_template("contact.html") + return render_template("contact.html", data = contact_data) diff --git a/config.py b/config.py new file mode 100644 index 0000000..e69de29 diff --git a/data/contact.json b/data/contact.json new file mode 100644 index 0000000..1fccd17 --- /dev/null +++ b/data/contact.json @@ -0,0 +1,13 @@ +{ + "Social": [ + ["pech@bune.city (Email)", "mailto:pech@bune.city"], + ["Fediverse", "https://fedi.lynnesbian.space/@Petra_fied"], + ["Petra-fied#1528 (Discord)", null] + ], + "Other": [ + ["Keybase", "https://keybase.io/pecha"], + ["Git", "https://git.bune.city/petra-fied"], + ["SW-0502-8685-4802 (Switch)", null], + ["My blog (to be rehosted)", "https://petra.press/"] + ] +} diff --git a/static/style.css b/static/style.css index 37d1519..3ddebdd 100644 --- a/static/style.css +++ b/static/style.css @@ -63,6 +63,14 @@ main { width: 80%; max-width: max-content; background: #0E111380; - text-align: center; font-family: 'VCR OSD Mono', monospace; /*???*/ } +main.centred { + text-align: center; +} +main a { + color: #81a1a8; +} +main ul { + padding-left: 30px; +} diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 0000000..7628d56 --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% block title %}home{% endblock %} +{% block content %} +
+

Contact

+ {% for heading, entries in data.items() %} +

{{ heading }}

+ + {% endfor %} +
+{% endblock %} diff --git a/templates/home.html b/templates/home.html index 6bb6f73..f429c5e 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block title %}home{% endblock %} {% block content %} -
+

Henlo! 0u0

My name is Petra, but Pet, Pech, Pecha etc are all fine =w=

I'm an aspiring Political Economist, but I'm broadly interested in the social sciences and philosophy pretty generally.