aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/routes.py6
-rw-r--r--python/fatcat/static/fatcat.jpgbin0 -> 86240 bytes
-rw-r--r--python/fatcat/templates/home.html4
3 files changed, 9 insertions, 1 deletions
diff --git a/python/fatcat/routes.py b/python/fatcat/routes.py
index ec6b849e..b23dc9d4 100644
--- a/python/fatcat/routes.py
+++ b/python/fatcat/routes.py
@@ -342,6 +342,12 @@ def robots():
'robots.txt',
mimetype='text/plain')
+@app.route('/static/fatcat.jpg', methods=['GET'])
+def fatcat_photo():
+ return send_from_directory(os.path.join(app.root_path, 'static'),
+ 'fatcat.jpg',
+ mimetype='image/jpeg')
+
@app.route('/health', methods=['GET'])
def health():
return jsonify({'ok': True})
diff --git a/python/fatcat/static/fatcat.jpg b/python/fatcat/static/fatcat.jpg
new file mode 100644
index 00000000..ad100381
--- /dev/null
+++ b/python/fatcat/static/fatcat.jpg
Binary files differ
diff --git a/python/fatcat/templates/home.html b/python/fatcat/templates/home.html
index 476127f6..f1377954 100644
--- a/python/fatcat/templates/home.html
+++ b/python/fatcat/templates/home.html
@@ -2,7 +2,9 @@
{% block body %}
<div class="ui container text">
-<h1>Welcome to fatcat!</h1>
+<h1 class="ui header centered">Welcome to fatcat!</h1>
+
+<img class="ui fluid bordered image" src="/static/fatcat.jpg" title="CC0 photo of an oversized feline" alt="">
<div class="ui message">
<div class="header">Current Status: Prototype</div>