Update to dark theme and mobile friendly version
Browse files- app/templates/index.html +30 -4
app/templates/index.html
CHANGED
|
@@ -2,10 +2,36 @@
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>[DEMO] ML API</title>
|
|
|
|
| 5 |
<style>
|
| 6 |
-
body {
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
</style>
|
| 10 |
</head>
|
| 11 |
<body>
|
|
@@ -48,4 +74,4 @@
|
|
| 48 |
<div id="result">{{ result | tojson(indent=2) }}</div>
|
| 49 |
{% endif %}
|
| 50 |
</body>
|
| 51 |
-
</html>
|
|
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>[DEMO] ML API</title>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
<style>
|
| 7 |
+
body {
|
| 8 |
+
background: #23272f;
|
| 9 |
+
color: #eee;
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
margin: 2em;
|
| 12 |
+
}
|
| 13 |
+
form {
|
| 14 |
+
margin-bottom: 1em;
|
| 15 |
+
}
|
| 16 |
+
#result {
|
| 17 |
+
white-space: pre-wrap;
|
| 18 |
+
word-break: break-all;
|
| 19 |
+
background: #2c2f36;
|
| 20 |
+
color: #eee;
|
| 21 |
+
padding: 1em;
|
| 22 |
+
border-radius: 5px;
|
| 23 |
+
border: 1px solid #353945;
|
| 24 |
+
}
|
| 25 |
+
h1, h2, h3 {
|
| 26 |
+
color: #aad2ff;
|
| 27 |
+
}
|
| 28 |
+
@media (max-width: 600px) {
|
| 29 |
+
body { margin: 0.5em; }
|
| 30 |
+
img { max-width: 95vw !important; height: auto; }
|
| 31 |
+
#result { font-size: 0.93em; padding: 0.5em; }
|
| 32 |
+
h1 { font-size: 1.15em; }
|
| 33 |
+
h2, h3 { font-size: 1em; }
|
| 34 |
+
}
|
| 35 |
</style>
|
| 36 |
</head>
|
| 37 |
<body>
|
|
|
|
| 74 |
<div id="result">{{ result | tojson(indent=2) }}</div>
|
| 75 |
{% endif %}
|
| 76 |
</body>
|
| 77 |
+
</html>
|