summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 23:00:03 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 23:00:03 -0700
commit224e4929af6fa84401944c757d9902a5f83da7a3 (patch)
treea34bc425c7779f7a5cb843104ba2386dab5e5b33
parentd9d14dfc213d84e8e281b63ba47ac2c028314a65 (diff)
downloadfatcat-224e4929af6fa84401944c757d9902a5f83da7a3.tar.gz
fatcat-224e4929af6fa84401944c757d9902a5f83da7a3.zip
add cat photo to front page
-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>