nagasurendra's picture
Update templates/reward_status.html
96338bc verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reward Status</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: auto;
padding-top: 20px;
}
.order-confirmed {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
.order-confirmed h1 {
font-size: 2em;
color: #ff6f00;
}
.order-confirmed .delivery-time {
margin-top: 10px;
font-size: 1.2em;
color: #666;
}
.reward-status {
margin-top: 30px;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.badge {
font-size: 1.2em;
font-weight: bold;
color: #ff6f00;
background-color: #fff3e0;
padding: 8px 15px;
border-radius: 5px;
margin: 10px 0;
display: inline-block;
}
.valid-through {
font-size: 1em;
color: #888;
margin-bottom: 20px;
}
.points-bar {
width: 100%;
height: 20px;
background-color: #e0e0e0;
border-radius: 10px;
margin: 20px 0;
}
.progress {
height: 100%;
background-color: #ffd700;
width: {{ progress_percentage }}%;
border-radius: 10px;
}
.points-info {
display: flex;
justify-content: space-between;
font-size: 0.9em;
color: #333;
}
.points {
font-size: 1.1em;
font-weight: bold;
}
.next-tier {
font-size: 1.1em;
font-weight: bold;
}
.points-bar-info {
display: flex;
justify-content: space-between;
font-size: 0.9em;
color: #333;
}
</style>
</head>
<body>
<div class="container">
<div class="order-confirmed">
<h1>Order Confirmed!</h1>
<p class="delivery-time">Estimated delivery time: 35 minutes</p>
</div>
<div class="reward-status">
<div class="badge">{{ current_tier }} Status</div>
<div class="valid-through">Valid through December 2024</div>
<div class="points-info">
<div class="points">You have <strong>{{ user_points }}</strong> points</div>
</div>
<div class="points-bar-info">
<div>{{ start_point }}</div> <!-- Start of the range -->
<div>{{ end_point }}</div> <!-- End of the range -->
</div>
<div class="points-bar">
<div class="progress"></div>
</div>
<div class="points-info">
<div class="points">You need <strong>{{ points_needed_for_next_tier }}</strong> more points</div>
<div class="next-tier">Next tier: {{ next_tier }}</div>
</div>
</div>
</div>
</body>
</html>