[O] Style webpage
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user