add test template and stylesheet
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
from quart import Blueprint
|
from quart import Blueprint
|
||||||
from quart import Response
|
from quart import render_template
|
||||||
|
|
||||||
web_routes = Blueprint('web_routes', __name__)
|
web_routes = Blueprint('web_routes', __name__)
|
||||||
|
|
||||||
|
|
||||||
@web_routes.route('/')
|
@web_routes.route('/')
|
||||||
async def hello():
|
async def hello():
|
||||||
return Response(response="Hello, world")
|
return await render_template('index.html')
|
||||||
|
|||||||
6
app/src/web/static/css/style.css
Normal file
6
app/src/web/static/css/style.css
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
h1 {
|
||||||
|
border: 2px #eee solid;
|
||||||
|
color: brown;
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
11
app/src/web/templates/index.html
Normal file
11
app/src/web/templates/index.html
Normal 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>
|
||||||
Reference in New Issue
Block a user