diff --git a/prophet/app.py b/prophet/app.py index abb9b03..c557dbd 100644 --- a/prophet/app.py +++ b/prophet/app.py @@ -209,7 +209,7 @@ def list_improvements(): return ( """ """ + "\n".join( - f"""
{item.title}
{item.summary}
@@ -225,24 +225,44 @@ def list_originals(): return ( """ """ + "\n".join( - f"""
-
-
{item.original.title}
-
{item.original.summary}
+ f""" +
+
+
{item.original.title}
+
{item.original.summary}
""" for item in sorted(improved, key=lambda i: i.original.date, reverse=True) ) ) +style = """ +.card { + border: 1px solid #ccc; + padding: 10px; + margin: auto; + margin-bottom: 40px; + width: 600px; +} + +.card-title { + font-size: 24px; + margin-bottom: 5px; +} +""" + + @app.get("/", response_class=HTMLResponse) def root_route(): - return """ + return f""" The Pollen Prophet +

The Pollen Prophet