Create reward_status.html
Browse files- templates/reward_status.html +81 -0
templates/reward_status.html
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Reward Status</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f9f9f9;
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
}
|
14 |
+
.container {
|
15 |
+
width: 80%;
|
16 |
+
margin: auto;
|
17 |
+
padding-top: 20px;
|
18 |
+
}
|
19 |
+
.status-bar {
|
20 |
+
width: 100%;
|
21 |
+
height: 20px;
|
22 |
+
background-color: #e0e0e0;
|
23 |
+
border-radius: 10px;
|
24 |
+
margin-bottom: 20px;
|
25 |
+
}
|
26 |
+
.progress {
|
27 |
+
height: 100%;
|
28 |
+
background-color: #ffd700;
|
29 |
+
width: {{ progress_percentage }}%;
|
30 |
+
border-radius: 10px;
|
31 |
+
}
|
32 |
+
.reward-info {
|
33 |
+
background-color: #fff;
|
34 |
+
padding: 20px;
|
35 |
+
border-radius: 10px;
|
36 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
37 |
+
}
|
38 |
+
.reward-info h2 {
|
39 |
+
text-align: center;
|
40 |
+
}
|
41 |
+
.points {
|
42 |
+
font-size: 24px;
|
43 |
+
text-align: center;
|
44 |
+
margin: 10px 0;
|
45 |
+
}
|
46 |
+
.tier {
|
47 |
+
text-align: center;
|
48 |
+
font-weight: bold;
|
49 |
+
}
|
50 |
+
.next-tier {
|
51 |
+
text-align: center;
|
52 |
+
margin-top: 20px;
|
53 |
+
}
|
54 |
+
</style>
|
55 |
+
</head>
|
56 |
+
<body>
|
57 |
+
|
58 |
+
<div class="container">
|
59 |
+
<div class="reward-info">
|
60 |
+
<h2>Reward Status</h2>
|
61 |
+
<p class="points">You currently have {{ user_points }} points.</p>
|
62 |
+
<div class="tier">
|
63 |
+
<p>Your current tier: <strong>{{ current_tier }}</strong></p>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<div class="status-bar">
|
67 |
+
<div class="progress"></div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div class="next-tier">
|
71 |
+
{% if points_needed_for_next_tier > 0 %}
|
72 |
+
<p>You need <strong>{{ points_needed_for_next_tier }}</strong> more points to reach the next tier!</p>
|
73 |
+
{% else %}
|
74 |
+
<p>Congratulations! You've reached Platinum!</p>
|
75 |
+
{% endif %}
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
</body>
|
81 |
+
</html>
|