with htpy and css

This commit is contained in:
Abel Luck 2026-03-30 12:13:04 +02:00
parent 4b376c54a2
commit 9ce576e7e8
9 changed files with 2217 additions and 17 deletions

View file

@ -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