diff --git a/app/app.py b/app/app.py index 5ec5bb0..3492a78 100644 --- a/app/app.py +++ b/app/app.py @@ -59,6 +59,7 @@ def get_status() -> str: return markdown.markdown(statuses[status]) +# Main Page @app.route('/') def index(): @@ -74,6 +75,78 @@ def index(): return flask.render_template('index.html', posts=post_bodies, status=status) +# Games Page +@app.route('/games/') +def games(): + + # Get posts + posts = get_posts(category_filter="games") + + post_bodies = [] + for post in posts: + post_bodies.append(post.body) + + # Get status + status = get_status() + + return flask.render_template('games.html', posts=post_bodies, status=status) + +# Music Page +@app.route('/music/') +def music(): + + # Get posts + posts = get_posts(category_filter="music") + + post_bodies = [] + for post in posts: + post_bodies.append(post.body) + + # Get status + status = get_status() + + return flask.render_template('music.html', posts=post_bodies, status=status) + +# Motion Pictures Page +@app.route('/motion-pictures/') +def motion_pictures(): + + # Get posts + posts = get_posts(category_filter="motion-pictures") + + post_bodies = [] + for post in posts: + post_bodies.append(post.body) + + # Get status + status = get_status() + + return flask.render_template('motion-pictures.html', posts=post_bodies, status=status) + +# Programming Page +@app.route('/programming/') +def programming(): + + # Get posts + posts = get_posts(category_filter="programming") + + post_bodies = [] + for post in posts: + post_bodies.append(post.body) + + # Get status + status = get_status() + + return flask.render_template('programming.html', posts=post_bodies, status=status) + +# About Page +@app.route('/about/') +def about(): + + # Get status + status = get_status() + + return flask.render_template('about.html', status=status) if __name__ == "__main__": if DEV: diff --git a/app/static/IBMPlexMono-Regular.woff b/app/static/IBMPlexMono-Regular.woff deleted file mode 100644 index dd3070d..0000000 Binary files a/app/static/IBMPlexMono-Regular.woff and /dev/null differ diff --git a/app/static/index_style.css b/app/static/style.css similarity index 94% rename from app/static/index_style.css rename to app/static/style.css index b91f32c..5a6e542 100644 --- a/app/static/index_style.css +++ b/app/static/style.css @@ -104,7 +104,6 @@ a:hover { text-decoration: none; } - .dlog { flex: 3; diff --git a/app/templates/about.html b/app/templates/about.html new file mode 100644 index 0000000..a2663fc --- /dev/null +++ b/app/templates/about.html @@ -0,0 +1,41 @@ + + +
+ + + 0x01fe.net - About +
+ +
+

0x01fe.net

+ {{ status|safe }} +
+
+ + + + + +
+
+

About

+

+ Hi! I'm 0x01fe. This website is a personal project that allows me to express my thoughts online about things I like and also gives me something to program and tinker with on my spare time. If you want to contact me try hitting me up on discord at 0x01fe. +

+
+

Why 0x01fe?

+

+ This is a pretty common question I get regarding my username so I thought I'd put a little section here about it. The thought process behind the username was "I like computers so what's a computer related username I could have?" and the first thing that came to mind was the master boot record boot sector (100% related to that other Master Boot Record). So I opened up the Wikipedia Page on the master boot record and scrolled until something called out to me. When I saw the starting byte of the boot signature in hex was 0x01fe I thought "yeah that'd work", and I've stuck with it. +

+
+
+
+ + diff --git a/app/templates/games.html b/app/templates/games.html new file mode 100644 index 0000000..d023f8b --- /dev/null +++ b/app/templates/games.html @@ -0,0 +1,33 @@ + + +
+ + + 0x01fe.net - Games +
+ +
+

Games

+ {{ status|safe }} +
+
+ + + + + +
+ {% for post in posts %} +
{{ post|safe }}
+ {% endfor %} +
+
+ + diff --git a/app/templates/index.html b/app/templates/index.html index f9fb491..a5bfb0c 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -2,7 +2,7 @@
- + 0x01fe.net
@@ -13,10 +13,12 @@
diff --git a/app/templates/motion-pictures.html b/app/templates/motion-pictures.html new file mode 100644 index 0000000..459f655 --- /dev/null +++ b/app/templates/motion-pictures.html @@ -0,0 +1,33 @@ + + +
+ + + 0x01fe.net - Motion Pictures +
+ +
+

Motion Pictures

+ {{ status|safe }} +
+
+ + + + + +
+ {% for post in posts %} +
{{ post|safe }}
+ {% endfor %} +
+
+ + diff --git a/app/templates/music.html b/app/templates/music.html new file mode 100644 index 0000000..9a00a11 --- /dev/null +++ b/app/templates/music.html @@ -0,0 +1,33 @@ + + +
+ + + 0x01fe.net - Music +
+ +
+

Music

+ {{ status|safe }} +
+
+ + + + + +
+ {% for post in posts %} +
{{ post|safe }}
+ {% endfor %} +
+
+ + diff --git a/app/templates/programming.html b/app/templates/programming.html new file mode 100644 index 0000000..91a5a31 --- /dev/null +++ b/app/templates/programming.html @@ -0,0 +1,33 @@ + + +
+ + + 0x01fe.net - Programming +
+ +
+

Programming

+ {{ status|safe }} +
+
+ + + + + +
+ {% for post in posts %} +
{{ post|safe }}
+ {% endfor %} +
+
+ +