-
+
⌚
Timetracker
diff --git a/src/web/tracker/templates/index.html b/src/web/tracker/templates/index.html
new file mode 100644
index 0000000..831eb9b
--- /dev/null
+++ b/src/web/tracker/templates/index.html
@@ -0,0 +1,13 @@
+{% extends 'base.html' %}
+
+{% block title %}{{ title }}{% endblock title %}
+
+{% block content %}
+
+{% if session_count > 0 %}
+You have played a total of {{ session_count }} sessions.
+{% else %}
+Start by clicking the links at the top. To track playtime, you need to have at least 1 owned game.
+{% endif %}
+
+{% endblock content %}
\ No newline at end of file
diff --git a/src/web/tracker/urls.py b/src/web/tracker/urls.py
index fb8944f..73fcb69 100644
--- a/src/web/tracker/urls.py
+++ b/src/web/tracker/urls.py
@@ -3,6 +3,7 @@ from django.urls import path
from . import views
urlpatterns = [
+ path("", views.index, name="index"),
path("add-game/", views.add_game, name="add_game"),
path("add-session/", views.add_session, name="add_session"),
path("add-purchase/", views.add_purchase, name="add_purchase"),
diff --git a/src/web/tracker/views.py b/src/web/tracker/views.py
index 66130cb..8c20b94 100644
--- a/src/web/tracker/views.py
+++ b/src/web/tracker/views.py
@@ -65,3 +65,7 @@ def add_game(request):
context["form"] = form
context["title"] = "Add New Game"
return render(request, "add.html", context)
+
+def index(request):
+ context = {}
+ return render(request, "index.html", context)