diff --git a/app/app.py b/app/app.py index 642bfdd..826db77 100644 --- a/app/app.py +++ b/app/app.py @@ -1,4 +1,4 @@ -from flask import Flask, render_template +from flask import Flask, render_template, make_response import os app = Flask(__name__) @@ -12,5 +12,17 @@ def fortune(): fortune = os.popen("fortune").read() return render_template('fortune.j2', fortune=fortune) +@app.route('/pricing') +def pricing(): + return render_template('pricing.xht') + +@app.route('/style.css') +def css(): + css = render_template('index.css') + response = make_response(css) + response.mimetype = "text/css" + return response + + if __name__ == '__main__': app.run(host="0.0.0.0", port=8080) \ No newline at end of file diff --git a/app/templates/fortune.j2 b/app/templates/fortune.j2 index b0c82d2..d458509 100644 --- a/app/templates/fortune.j2 +++ b/app/templates/fortune.j2 @@ -5,6 +5,7 @@ fortune as a service +

fortune as a service

diff --git a/app/templates/index.css b/app/templates/index.css new file mode 100644 index 0000000..aa7ee70 --- /dev/null +++ b/app/templates/index.css @@ -0,0 +1,10 @@ +@media (prefers-color-scheme: dark) { + body { + background-color: #121212 !important; + color: #ffffff; + } +} + +body { + background-color: white; +} \ No newline at end of file diff --git a/app/templates/index.xht b/app/templates/index.xht index c7b47d0..d2e24b0 100644 --- a/app/templates/index.xht +++ b/app/templates/index.xht @@ -5,6 +5,7 @@ fortune as a service +

fortune as a service

@@ -13,5 +14,7 @@ from the /usr/bin/fortune command on Arch Linux, with our patent-pending AI Layer 2 code execution engine.

+ pricing +
get a fortune \ No newline at end of file diff --git a/app/templates/pricing.xht b/app/templates/pricing.xht new file mode 100644 index 0000000..37c71c6 --- /dev/null +++ b/app/templates/pricing.xht @@ -0,0 +1,45 @@ + + + + + fortune as a service + + + + +

fortune as a service - pricing

+

free

+

+ - 1 fortune per day + - no uptime guarantee + - no support +

+

basic

+

+ - 10 fortunes per day + - 99.9% uptime guarantee + - email support + us$10/month +

+

premium

+

+ - unlimited fortunes + - 99.99% uptime guarantee + - 24/7 support + us$100/month +

+

enterprise

+

+ - unlimited fortunes + - 99.999% uptime guarantee + - 24/7 support + - custom features + contact us for pricing +

+ contact sales +
+ back to home +
+ get a fortune + \ No newline at end of file