From 004eee2642ae5a425cb1b4410a7c7685f67cc42c Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Thu, 24 Dec 2015 15:26:55 +0100 Subject: [PATCH] More pages --- run.py | 9 +++++++-- static/regular.css | 18 ++++++++++++++++-- templates/faq.html | 38 ++++++++++++++++++++++++++++++++++++++ templates/privacy.html | 6 ++++++ templates/upload.html | 6 ++++++ 5 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 templates/faq.html create mode 100644 templates/privacy.html diff --git a/run.py b/run.py index 8d5549d..5bd1547 100755 --- a/run.py +++ b/run.py @@ -98,14 +98,19 @@ def upload_file(): elif request.method == 'GET': return render_template('upload.html', page=config["SITE_DATA"]) - +# Def all the static pages @app.route('/about') def about(): return render_template('about.html', page=config["SITE_DATA"]) - @app.route('/terms') def terms(): return render_template('terms.html', page=config["SITE_DATA"]) +@app.route('/privacy') +def privacy(): + return render_template('privacy.html', page=config["SITE_DATA"]) +@app.route('/faq') +def faq(): + return render_template('faq.html', page=config["SITE_DATA"]) @app.route('/', methods=['GET']) diff --git a/static/regular.css b/static/regular.css index efa4f95..325c438 100644 --- a/static/regular.css +++ b/static/regular.css @@ -80,15 +80,29 @@ p { } h1 { - margin-top: 15px; + margin-top: 25px; + margin-bottom: 10px; +} + +h2 { + margin-top: 25px; margin-bottom: 5px; } -a { +.title a { color: inherit; text-decoration: none; } +.title a:hover { + text-decoration: underline; +} + +a { + color: #33BB33; + text-decoration: none; +} + a:hover { text-decoration: underline; } \ No newline at end of file diff --git a/templates/faq.html b/templates/faq.html new file mode 100644 index 0000000..a95c387 --- /dev/null +++ b/templates/faq.html @@ -0,0 +1,38 @@ +{% extends "regular.html" %} +{% block body %} +

Frequently asked questions

+ +

+ Can I use ShareX to upload? +

+

Sure thing! Here's the config: i am link

+

Import that as a custom uploader and fire away

+ +

+ Who runs this thing +

+

A guy called Quad (Twitter)

+ +

+ What powers this site? +

+

The server itself comes from RamNode, sitting behind CloudFlare.

+

The actual site is purely Python powered and only depends on Flask. The database is SQLite, but on SSD it works okay since this service isn't too write heavy.

+ +

+ What about the old files I uploaded? +

+

All files from the old {{ page.title }} are still accessible, with the same URLs even.

+ +

+ Where can I donate? +

+

You can't.

+

This is purely a novelty project for personal use, but it was opened up to the public as a free service. If you really want to donate, consider doing so to other projects of mine, such as openings.moe

+ +

+ I get an "Internal server error" (Code 400), why? +

+

The site is fresh. I still haven't implemented error handling for a lot of things, in those cases you will simply see that generic error page.

+ +{% endblock %} \ No newline at end of file diff --git a/templates/privacy.html b/templates/privacy.html new file mode 100644 index 0000000..93f59ff --- /dev/null +++ b/templates/privacy.html @@ -0,0 +1,6 @@ +{% extends "regular.html" %} +{% block body %} +

Privacy policy

+

Files are treated as most would expect. They're stored on a server owned by me until they expire. After expiring they're both deleted from storage and cleared from the database, no trails remain. No permanent logs are kept other than nginx's default access logs.

+

Otherwise there is no privacy policy. It all depends on how much you trust me not to leak your nudes.

+{% endblock %} \ No newline at end of file diff --git a/templates/upload.html b/templates/upload.html index 92b2836..93edbfe 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -20,6 +20,12 @@
  • Terms
  • +
  • + Privacy +
  • +
  • + FAQ +