From 7a33856a527aebbd8d2a624c6d5937c25c9a1d90 Mon Sep 17 00:00:00 2001 From: Emma Terzioglu Date: Fri, 13 Mar 2026 13:49:15 -0700 Subject: initial commit new website repo yay!!! --- src/templates/404.html | 38 ++++++++++++++ src/templates/admin/blog.html | 37 ++++++++++++++ src/templates/admin/blog_create.html | 32 ++++++++++++ src/templates/admin/blog_edit.html | 42 ++++++++++++++++ src/templates/admin/index.html | 11 +++++ src/templates/admin/login.html | 36 ++++++++++++++ src/templates/base.html | 84 +++++++++++++++++++++++++++++++ src/templates/blog/index.html | 27 ++++++++++ src/templates/blog/post.html | 89 +++++++++++++++++++++++++++++++++ src/templates/clocks.html | 56 +++++++++++++++++++++ src/templates/index.html | 66 +++++++++++++++++++++++++ src/templates/projects.html | 96 ++++++++++++++++++++++++++++++++++++ 12 files changed, 614 insertions(+) create mode 100644 src/templates/404.html create mode 100644 src/templates/admin/blog.html create mode 100644 src/templates/admin/blog_create.html create mode 100644 src/templates/admin/blog_edit.html create mode 100644 src/templates/admin/index.html create mode 100644 src/templates/admin/login.html create mode 100644 src/templates/base.html create mode 100644 src/templates/blog/index.html create mode 100644 src/templates/blog/post.html create mode 100644 src/templates/clocks.html create mode 100644 src/templates/index.html create mode 100644 src/templates/projects.html (limited to 'src/templates') diff --git a/src/templates/404.html b/src/templates/404.html new file mode 100644 index 0000000..b7b0961 --- /dev/null +++ b/src/templates/404.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} +http.cat for 404 + + +

I'm sorry I let you down...

+ + {% if request.path == "/femboys" %} +

no bitches?

+ {% else %} +

{{ request.path }} not found on the server! mayhaps you misspelt the url? (it happens to the best of us)

+ {% endif %} +
+{% endblock %} diff --git a/src/templates/admin/blog.html b/src/templates/admin/blog.html new file mode 100644 index 0000000..8cb1433 --- /dev/null +++ b/src/templates/admin/blog.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} + +create new post + +{% for post in posts|sort(attribute="id", reverse=True) %} + + +

id: {{ post.id }}

+

{{ post.title }}

+

{{ post.description or "" }}

+
+ +{% endfor %} + +{% endblock %} diff --git a/src/templates/admin/blog_create.html b/src/templates/admin/blog_create.html new file mode 100644 index 0000000..ac4740b --- /dev/null +++ b/src/templates/admin/blog_create.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} + +

create a post!

+ +
+
+ + + + + +
+ + + +
+ + +
+ + +
+ +{% endblock %} diff --git a/src/templates/admin/blog_edit.html b/src/templates/admin/blog_edit.html new file mode 100644 index 0000000..99c3d9c --- /dev/null +++ b/src/templates/admin/blog_edit.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} + +

edit a post!

+ + + +
+
+ + + + + +
+ + + +
+ + +
+ + +
+ + + +{% endblock %} diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html new file mode 100644 index 0000000..11e414d --- /dev/null +++ b/src/templates/admin/index.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} + +

welcome to admin mode, me!

+ +

safety button to sign out:

+ +here + +{% endblock %} diff --git a/src/templates/admin/login.html b/src/templates/admin/login.html new file mode 100644 index 0000000..e37e046 --- /dev/null +++ b/src/templates/admin/login.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block head %} + +{{ super() }} + + + + + + +{% endblock %} + +{% block content %} +
+ + + + + +
+
+{% endblock %} diff --git a/src/templates/base.html b/src/templates/base.html new file mode 100644 index 0000000..935ab5e --- /dev/null +++ b/src/templates/base.html @@ -0,0 +1,84 @@ +{% macro navbutton(path, name=None) -%} +{{ name or path }} +{%- endmacro %} + +{% set adminmode = request.path.startswith("/admin") %} + + + + + {% block head %} + Emma | {{ title }} + + + + + + + + + + + + + + + {% if adminmode %} + + {% endif %} + + {% endblock %} + + + + +
+ {% block content %} + {% endblock %} + + {% if not adminmode %} +
+ + + + + taken from kate.pet + taken from kate.pet + taken from kate.pet + taken from kate.pet + + + taken from kate.pet + + + made by yours truly +
+ {% endif %} +
+ + {% if adminmode %} +

(admin)

+ {% endif %} + + diff --git a/src/templates/blog/index.html b/src/templates/blog/index.html new file mode 100644 index 0000000..a0aee24 --- /dev/null +++ b/src/templates/blog/index.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} + +

blog

+ +
+ {% for post in posts|sort(attribute="created_at", reverse=True) %} + +

{{ post.title }}

+

{{ post.description or "" }}

+

posted {{ format_ts(post.created_at) }}

+
+ {% endfor %} + + {% if posts|length == 0 %} +

huh, I guess nothing has been posted yet.

+ {% endif %} +
+ +{% endblock %} diff --git a/src/templates/blog/post.html b/src/templates/blog/post.html new file mode 100644 index 0000000..92c48a2 --- /dev/null +++ b/src/templates/blog/post.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + + + +{% endblock %} + +{% block content %} + +
+
+

{{ post.title }}

+ + {% if post.description %} +

{{ post.description }}

+ {% endif %} + +

posted {{ post.created_at.strftime("%a %d %b %Y at %H:%M:%S") }}

+
+ + {{ post.text|safe }} +
+ +

comments

+ +
+ + + + + + + + + +
+ +
+ +{% endblock %} diff --git a/src/templates/clocks.html b/src/templates/clocks.html new file mode 100644 index 0000000..5e81d0d --- /dev/null +++ b/src/templates/clocks.html @@ -0,0 +1,56 @@ +{% extends "base.html" %} + +{% block head %} + +{{ super() }} + + + +{% endblock %} + +{% block content %} + + +

🏳️‍⚧️:

+ +
+

00

+

00

+

00

+

00

+
+ +

the BEGINNING (of the unix timestamp):

+
+

00

+

00

+

00

+

00

+
+
+ + +{% endblock %} diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..27c1616 --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + + +{% endblock %} + +{% block content %} + +
+ + + +

Hai there! I'm Emma

+

thanks for stopping by on my little website!

+ +

+ I'm a full stack developer that tends to focus on random + projects for fun rather than full works. +

+ +

+ currently, I have a good chunk of my code hosted on either + github or codeberg, and I aim to migrate to my own self-hosted + git server. +

+ + + github + | + codeberg + | + bluesky + +
+
+ +
+
+ +

Woah, where's the background from? :o

+

+ the background comes from a wallpaper used in early builds + of windows xp known as professional/watercolor. +

+
+ + +

What about your profile picture?

+

+ the profile picture is made by me, and it's a combination of a + discrete trans wallpaper and fanart of konata I found on pixiv. +

+
+
+ +
+

random image of the day

+ + +
+
+ +{% endblock %} diff --git a/src/templates/projects.html b/src/templates/projects.html new file mode 100644 index 0000000..d00b544 --- /dev/null +++ b/src/templates/projects.html @@ -0,0 +1,96 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + + +{% endblock %} + +{% block content %} + +

projects

+ +
+
+ +

soteria

+ + +

typescript

+

sveltekit

+

elysia

+

twitter

+
+ + + codeberg + website + +
+ +
+ +

+ twitter-like microblogging social media platform created by me and two other friends. +
+ currently undergoing major rewrites in the backend and frontend, so the provided website + is not functional for the time being. +

+
+ +
+ +

arke

+ + +

python

+

discord

+

library

+

low-level

+
+ + + codeberg + +
+ +
+ +

+ low-level, low abstractions library made to dip my toes into the python discord + library space. +
+ highly inspired by a related project called nextcore, + arke implements the discord rest api & ws gateway without providing simple to use models to + represent discord's data types. +

+
+ +
+ +

tiny-http-server

+ + +

c

+

bsd sockets

+

http

+

library

+
+ + + github + +
+ +
+ +

+ basic and tiny http/1.1 server, using the stdlib and bsd sockets interface. it + features basic tls support via openssl, and allows file serving from an arbitrary directory and + programmable routes. +

+
+
+ +{% endblock %} -- cgit v1.2.3