diff --git a/homepage/html/index.html b/homepage/html/index.html
new file mode 100644
index 0000000..f044738
--- /dev/null
+++ b/homepage/html/index.html
@@ -0,0 +1,28 @@
+
+
+
+
+
Players Online: {{player_count}}/{{max_players}}
+
+
+
+
diff --git a/homepage/main.py b/homepage/main.py
index 9c0ecf1..5578318 100644
--- a/homepage/main.py
+++ b/homepage/main.py
@@ -1,2 +1,35 @@
#!/usr/bin/env python3
-import bottle
+from bottle import route, run, static_file, template
+from os import listdir
+from os.path import join as pathjoin
+from random import random, choice
+
+# echo -n "["; ls | xargs -I{} echo -n \"{}\",; echo "]"
+BG_IMAGES = listdir("./static/img/background")
+
+@route("/")
+def index():
+ return template("html/index.html", **{"player_count": int(random()*20), "max_players": 20})
+
+@route("/request")
+def request_whitelist():
+ return "ok"
+
+@route("/img/bg.png")
+def random_bg_image():
+ bg_file = choice(BG_IMAGES)
+ print(bg_file)
+ response = static_file(bg_file, root="static/img/background")
+ response.set_header("Cache-Control", "no-cache")
+ response.set_header("Cache-Control", "no-store")
+ response.set_header("Pragma-Directive", "no-cache")
+ response.set_header("Cache-Directive", "no-cache")
+ response.set_header("Pragma", "no-cache")
+ response.set_header("Expires", "0")
+ return response
+
+@route("/