with htpy and css
This commit is contained in:
parent
4b376c54a2
commit
9ce576e7e8
9 changed files with 2217 additions and 17 deletions
20
repub/web.py
20
repub/web.py
|
|
@ -1,6 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from quart import Quart
|
||||
from quart import Quart, url_for
|
||||
|
||||
from repub.pages import admin_page
|
||||
|
||||
|
||||
def create_app() -> Quart:
|
||||
|
|
@ -8,20 +10,6 @@ def create_app() -> Quart:
|
|||
|
||||
@app.get("/")
|
||||
async def index() -> str:
|
||||
return """<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Republisher</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>Hello, world!</h1>
|
||||
<p>Republisher web UI is starting here.</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
return str(admin_page(stylesheet_href=url_for("static", filename="app.css")))
|
||||
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue