Showing
1 changed file
with
98 additions
and
0 deletions
BCAT_front/templates/success.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="zh"> | ||
| 3 | +<head> | ||
| 4 | + <meta charset="UTF-8"> | ||
| 5 | + <title>一切正常!</title> | ||
| 6 | + <style> | ||
| 7 | + body { | ||
| 8 | + font-family: Arial, sans-serif; | ||
| 9 | + background-color: #f4f4f4; | ||
| 10 | + display: flex; | ||
| 11 | + justify-content: center; | ||
| 12 | + align-items: center; | ||
| 13 | + height: 100vh; | ||
| 14 | + margin: 0; | ||
| 15 | + } | ||
| 16 | + .container { | ||
| 17 | + text-align: center; | ||
| 18 | + width: 600px; | ||
| 19 | + background-color: #fff; | ||
| 20 | + padding: 50px; | ||
| 21 | + border-radius: 15px; | ||
| 22 | + box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | ||
| 23 | + } | ||
| 24 | + h1 { | ||
| 25 | + font-size: 28px; /* 和 main 的标题一致 */ | ||
| 26 | + margin-bottom: 20px; | ||
| 27 | + } | ||
| 28 | + .status-box { | ||
| 29 | + margin-top: 20px; | ||
| 30 | + padding: 20px; | ||
| 31 | + font-size: 18px; /* 和 main 的字体大小一致 */ | ||
| 32 | + background-color: #e0f7e9; | ||
| 33 | + color: #2e7d32; | ||
| 34 | + border-radius: 10px; | ||
| 35 | + border: 1px solid #2e7d32; | ||
| 36 | + } | ||
| 37 | + .stats-table { | ||
| 38 | + margin-top: 30px; | ||
| 39 | + width: 100%; | ||
| 40 | + border-collapse: collapse; | ||
| 41 | + } | ||
| 42 | + .stats-table th, .stats-table td { | ||
| 43 | + border: 1px solid #ddd; | ||
| 44 | + padding: 12px; | ||
| 45 | + } | ||
| 46 | + .stats-table th { | ||
| 47 | + background-color: #f2f2f2; | ||
| 48 | + } | ||
| 49 | + a { | ||
| 50 | + display: inline-block; | ||
| 51 | + margin-top: 30px; | ||
| 52 | + padding: 15px 40px; | ||
| 53 | + font-size: 18px; | ||
| 54 | + background-color: #000; | ||
| 55 | + color: white; | ||
| 56 | + text-decoration: none; | ||
| 57 | + border-radius: 30px; | ||
| 58 | + font-weight: bold; | ||
| 59 | + transition: background-color 0.3s ease; | ||
| 60 | + } | ||
| 61 | + a:hover { | ||
| 62 | + background-color: #333; | ||
| 63 | + } | ||
| 64 | + </style> | ||
| 65 | +</head> | ||
| 66 | +<body> | ||
| 67 | + <div class="container"> | ||
| 68 | + <h1>数据分析完毕!</h1> | ||
| 69 | + <div class="status-box"> | ||
| 70 | + 一切正常! | ||
| 71 | + </div> | ||
| 72 | + {% if stats %} | ||
| 73 | + <h3>统计信息:</h3> | ||
| 74 | + <table class="stats-table"> | ||
| 75 | + <thead> | ||
| 76 | + <tr> | ||
| 77 | + <th>标签</th> | ||
| 78 | + <th>个数</th> | ||
| 79 | + <th>占比</th> | ||
| 80 | + </tr> | ||
| 81 | + </thead> | ||
| 82 | + <tbody> | ||
| 83 | + {% for label, info in stats.items() %} | ||
| 84 | + <tr> | ||
| 85 | + <td>{{ label }}</td> | ||
| 86 | + <td>{{ info.count }}</td> | ||
| 87 | + <td>{{ info.percentage }}</td> | ||
| 88 | + </tr> | ||
| 89 | + {% endfor %} | ||
| 90 | + </tbody> | ||
| 91 | + </table> | ||
| 92 | + {% else %} | ||
| 93 | + <p>没有统计信息可显示。</p> | ||
| 94 | + {% endif %} | ||
| 95 | + <a href="/">返回首页</a> | ||
| 96 | + </div> | ||
| 97 | +</body> | ||
| 98 | +</html> |
-
Please register or login to post a comment