Spaces:
Sleeping
Sleeping
Commit
·
16e58e0
1
Parent(s):
cdc2048
Enhanced UI
Browse files- templates/index.html +135 -89
templates/index.html
CHANGED
|
@@ -1,96 +1,142 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</head>
|
| 57 |
<body>
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
</div>
|
| 95 |
</body>
|
| 96 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>IPM Golden vs Test Data Visualizer</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 10 |
+
background: linear-gradient(135deg, #e3f2fd, #ffffff);
|
| 11 |
+
display: flex;
|
| 12 |
+
flex-direction: column;
|
| 13 |
+
align-items: center;
|
| 14 |
+
justify-content: center;
|
| 15 |
+
height: 100vh;
|
| 16 |
+
margin: 0;
|
| 17 |
+
color: #333;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
h1 {
|
| 21 |
+
color: #1e88e5;
|
| 22 |
+
font-size: 28px;
|
| 23 |
+
margin-bottom: 30px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.card {
|
| 27 |
+
background: white;
|
| 28 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
| 29 |
+
border-radius: 12px;
|
| 30 |
+
padding: 30px 40px;
|
| 31 |
+
width: 400px;
|
| 32 |
+
text-align: center;
|
| 33 |
+
transition: all 0.3s ease;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.card:hover {
|
| 37 |
+
transform: translateY(-3px);
|
| 38 |
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
input[type="file"] {
|
| 42 |
+
margin: 15px 0;
|
| 43 |
+
padding: 10px;
|
| 44 |
+
border: 2px dashed #1e88e5;
|
| 45 |
+
border-radius: 8px;
|
| 46 |
+
background: #f9fbfc;
|
| 47 |
+
cursor: pointer;
|
| 48 |
+
width: 100%;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
button {
|
| 52 |
+
background-color: #1e88e5;
|
| 53 |
+
color: white;
|
| 54 |
+
border: none;
|
| 55 |
+
border-radius: 8px;
|
| 56 |
+
padding: 12px 20px;
|
| 57 |
+
margin-top: 10px;
|
| 58 |
+
font-size: 15px;
|
| 59 |
+
cursor: pointer;
|
| 60 |
+
width: 100%;
|
| 61 |
+
transition: background-color 0.3s ease;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
button:hover {
|
| 65 |
+
background-color: #1565c0;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.reset-btn {
|
| 69 |
+
background-color: #e53935;
|
| 70 |
+
margin-top: 20px;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.reset-btn:hover {
|
| 74 |
+
background-color: #c62828;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.message {
|
| 78 |
+
color: #2e7d32;
|
| 79 |
+
margin-bottom: 15px;
|
| 80 |
+
font-weight: 500;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.error {
|
| 84 |
+
color: #c62828;
|
| 85 |
+
margin-bottom: 15px;
|
| 86 |
+
font-weight: 500;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
footer {
|
| 90 |
+
position: absolute;
|
| 91 |
+
bottom: 10px;
|
| 92 |
+
font-size: 13px;
|
| 93 |
+
color: #777;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
@media (max-width: 480px) {
|
| 97 |
+
.card {
|
| 98 |
+
width: 85%;
|
| 99 |
+
padding: 25px;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
</style>
|
| 103 |
</head>
|
| 104 |
<body>
|
| 105 |
+
|
| 106 |
+
<h1>📊 IPM Golden vs Test Data Visualizer</h1>
|
| 107 |
+
|
| 108 |
+
{% if error %}
|
| 109 |
+
<div class="error">{{ error }}</div>
|
| 110 |
+
{% endif %}
|
| 111 |
+
{% if message %}
|
| 112 |
+
<div class="message">{{ message }}</div>
|
| 113 |
+
{% endif %}
|
| 114 |
+
|
| 115 |
+
{% if not golden_loaded %}
|
| 116 |
+
<div class="card">
|
| 117 |
+
<h3>Step 1: Upload Golden Data (.xlsx)</h3>
|
| 118 |
+
<form method="POST" enctype="multipart/form-data">
|
| 119 |
+
<input type="file" name="golden_file" accept=".xlsx" required>
|
| 120 |
+
<button type="submit">Upload Golden Data</button>
|
| 121 |
+
</form>
|
| 122 |
+
</div>
|
| 123 |
+
{% else %}
|
| 124 |
+
<div class="card">
|
| 125 |
+
<h3>Step 2: Upload New Test Data (.xlsx)</h3>
|
| 126 |
+
<form method="POST" enctype="multipart/form-data">
|
| 127 |
+
<input type="file" name="test_file" accept=".xlsx" required>
|
| 128 |
+
<button type="submit">Upload Test Data</button>
|
| 129 |
+
</form>
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div class="card" style="width: 250px; margin-top: 20px;">
|
| 133 |
+
<form action="/reset_golden">
|
| 134 |
+
<button class="reset-btn" type="submit">Reset Golden Data</button>
|
| 135 |
+
</form>
|
| 136 |
+
</div>
|
| 137 |
+
{% endif %}
|
| 138 |
+
|
| 139 |
+
<footer>© 2025 IPM Data Visualizer</footer>
|
| 140 |
+
|
|
|
|
| 141 |
</body>
|
| 142 |
</html>
|