summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iss/server.py2
-rw-r--r--iss/templates/base.html6
-rw-r--r--iss/templates/index.html6
3 files changed, 10 insertions, 4 deletions
diff --git a/iss/server.py b/iss/server.py
index 82c5493..620e070 100644
--- a/iss/server.py
+++ b/iss/server.py
@@ -11,4 +11,4 @@ templates = Jinja2Templates(directory="iss/templates")
@app.get("/")
async def home(request: Request):
- return templates.TemplateResponse("base.html", {"request": request})
+ return templates.TemplateResponse("index.html", {"request": request})
diff --git a/iss/templates/base.html b/iss/templates/base.html
index fa75313..2a2e44c 100644
--- a/iss/templates/base.html
+++ b/iss/templates/base.html
@@ -11,9 +11,9 @@
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<body class="bg-near-black near-white">
- <div class="container">
- <h1 class="title">ISS.guru</h1>
- <p>Hello this is text <span class="b">in bold</span></p>
+ <div class="pa4 mw7 center">
+ {% block content %}
+ {% endblock %}
</div>
</body>
</html>
diff --git a/iss/templates/index.html b/iss/templates/index.html
new file mode 100644
index 0000000..07894a6
--- /dev/null
+++ b/iss/templates/index.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="f1">ISS.guru</h1>
+<p class="light-red">Hello this is text <span class="b">in bold</span></p>
+{% endblock %}