css and pricing
This commit is contained in:
parent
42025e98e4
commit
954539eef3
5 changed files with 72 additions and 1 deletions
14
app/app.py
14
app/app.py
|
@ -1,4 +1,4 @@
|
||||||
from flask import Flask, render_template
|
from flask import Flask, render_template, make_response
|
||||||
import os
|
import os
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
@ -12,5 +12,17 @@ def fortune():
|
||||||
fortune = os.popen("fortune").read()
|
fortune = os.popen("fortune").read()
|
||||||
return render_template('fortune.j2', fortune=fortune)
|
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__':
|
if __name__ == '__main__':
|
||||||
app.run(host="0.0.0.0", port=8080)
|
app.run(host="0.0.0.0", port=8080)
|
|
@ -5,6 +5,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>fortune as a service</title>
|
<title>fortune as a service</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="stylesheet" href="/assets/style.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>fortune as a service</h1>
|
<h1>fortune as a service</h1>
|
||||||
|
|
10
app/templates/index.css
Normal file
10
app/templates/index.css
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #121212 !important;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: white;
|
||||||
|
}
|
|
@ -5,6 +5,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>fortune as a service</title>
|
<title>fortune as a service</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="stylesheet" href="/style.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>fortune as a service</h1>
|
<h1>fortune as a service</h1>
|
||||||
|
@ -13,5 +14,7 @@
|
||||||
from the /usr/bin/fortune command on Arch Linux, with our patent-pending AI Layer
|
from the /usr/bin/fortune command on Arch Linux, with our patent-pending AI Layer
|
||||||
2 code execution engine.
|
2 code execution engine.
|
||||||
</p>
|
</p>
|
||||||
|
<a href="/pricing">pricing</a>
|
||||||
|
<br />
|
||||||
<a href="/fortune">get a fortune</a>
|
<a href="/fortune">get a fortune</a>
|
||||||
</body>
|
</body>
|
45
app/templates/pricing.xht
Normal file
45
app/templates/pricing.xht
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>fortune as a service</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="stylesheet" href="/assets/style.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>fortune as a service - pricing</h1>
|
||||||
|
<h3>free</h3>
|
||||||
|
<p>
|
||||||
|
- 1 fortune per day
|
||||||
|
- no uptime guarantee
|
||||||
|
- no support
|
||||||
|
</p>
|
||||||
|
<h3>basic</h3>
|
||||||
|
<p>
|
||||||
|
- 10 fortunes per day
|
||||||
|
- 99.9% uptime guarantee
|
||||||
|
- email support
|
||||||
|
us$10/month
|
||||||
|
</p>
|
||||||
|
<h3>premium</h3>
|
||||||
|
<p>
|
||||||
|
- unlimited fortunes
|
||||||
|
- 99.99% uptime guarantee
|
||||||
|
- 24/7 support
|
||||||
|
us$100/month
|
||||||
|
</p>
|
||||||
|
<h3>enterprise</h3>
|
||||||
|
<p>
|
||||||
|
- unlimited fortunes
|
||||||
|
- 99.999% uptime guarantee
|
||||||
|
- 24/7 support
|
||||||
|
- custom features
|
||||||
|
contact us for pricing
|
||||||
|
</p>
|
||||||
|
<a href="mailto:me@everypizza.im">contact sales</a>
|
||||||
|
<br />
|
||||||
|
<a href="/">back to home</a>
|
||||||
|
<br />
|
||||||
|
<a href="/fortune">get a fortune</a>
|
||||||
|
</body>
|
Loading…
Add table
Reference in a new issue