diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3997bea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.db \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index 326d6fc..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -primitt.dev \ No newline at end of file diff --git a/construction.html b/construction.html deleted file mode 100644 index 4d0f375..0000000 --- a/construction.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
- Site Under Construction -
- diff --git a/main.py b/main.py new file mode 100644 index 0000000..5a50e41 --- /dev/null +++ b/main.py @@ -0,0 +1,23 @@ +from flask import Flask, render_template, send_from_directory +from models.model import * +app = Flask(__name__) +maintainance = True + +@app.route("/") +def index(): + if maintainance: + return render_template('construction.html') + else: + return render_template('index.html') + + +# Load API's +@app.route('/images/') +def images(name): + return send_from_directory('templates/images', name) +@app.route('/scripts/') +def scripts(name): + return send_from_directory('scripts', name) + +if __name__ == "__main__": + app.run(port=5003) \ No newline at end of file diff --git a/models/model.py b/models/model.py new file mode 100644 index 0000000..e69de29 diff --git a/templates/construction.html b/templates/construction.html new file mode 100644 index 0000000..f080195 --- /dev/null +++ b/templates/construction.html @@ -0,0 +1,52 @@ + + + +
+
+

Site Under Construction

+

(again)

+
+
+ + + \ No newline at end of file diff --git a/images/1f1fa-1f1f8.svg b/templates/images/1f1fa-1f1f8.svg similarity index 100% rename from images/1f1fa-1f1f8.svg rename to templates/images/1f1fa-1f1f8.svg diff --git a/images/ShareX_Logo.svg b/templates/images/ShareX_Logo.svg similarity index 100% rename from images/ShareX_Logo.svg rename to templates/images/ShareX_Logo.svg diff --git a/images/anilist.svg b/templates/images/anilist.svg similarity index 100% rename from images/anilist.svg rename to templates/images/anilist.svg diff --git a/images/image.png b/templates/images/image.png similarity index 100% rename from images/image.png rename to templates/images/image.png diff --git a/images/python-logo-only.svg b/templates/images/python-logo-only.svg similarity index 100% rename from images/python-logo-only.svg rename to templates/images/python-logo-only.svg diff --git a/index.html b/templates/index.html similarity index 100% rename from index.html rename to templates/index.html