[O] Style webpage

This commit is contained in:
Hykilpikonna
2021-11-24 20:56:47 -05:00
parent 54b6ace414
commit 1f6ede258a
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -1,4 +1,5 @@
import os.path
import webbrowser
from pathlib import Path
from flask import Flask, send_from_directory, Response
@@ -61,6 +62,8 @@ def serve_report() -> None:
path = os.path.join(REPORT_DIR, path)
return send_from_directory(Path(path).absolute().parent, Path(path).name)
# Run app
webbrowser.open("http://localhost:5000")
app.run()
+11
View File
@@ -3,6 +3,17 @@
<head>
<meta charset="UTF-8">
<title>CSC110 Report</title>
<style>
#content {
margin: auto;
max-width: 900px;
text-align: justify;
text-justify: inter-word;
font-family: "Microsoft YaHei UI", Avenir, Helvetica, Arial, sans-serif;
color: #5b3300;
}
</style>
</head>
<body>
<div id="content">