add test template and stylesheet

This commit is contained in:
Stefan Allius
2025-04-16 19:42:52 +02:00
parent 7425195b8b
commit 5eded48ee8
3 changed files with 19 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
from quart import Blueprint
from quart import Response
from quart import render_template
web_routes = Blueprint('web_routes', __name__)
@web_routes.route('/')
async def hello():
return Response(response="Hello, world")
return await render_template('index.html')

View File

@@ -0,0 +1,6 @@
h1 {
border: 2px #eee solid;
color: brown;
text-align: center;
padding: 10px;
}

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href=".{{ url_for('static', filename= 'css/style.css') }}">
<title>FlaskBlog</title>
</head>
<body>
<h1>Welcome to FlaskBlog</h1>
</body>
</html>