modified: templates/admin_dashboard.html
modified: templates/admin_giveaways.html modified: templates/user_dashboard.html modified: templates/user_giveaways.html
This commit is contained in:
@@ -4,38 +4,24 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>User Dashboard</title>
|
||||
<title>My Giveaways</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
.container {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.dashboard-card {
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.dashboard-card:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
font-size: 2rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.bg-custom {
|
||||
background-color: #6c757d;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#">Multus Bot - User Dashboard</a>
|
||||
<a class="navbar-brand" href="#">Multus Bot - My Giveaways</a>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('user_dashboard') }}">User Dashboard</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
||||
</li>
|
||||
@@ -43,58 +29,45 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- User Dashboard Content -->
|
||||
<!-- Giveaways List -->
|
||||
<div class="container">
|
||||
<h1 class="text-center mb-4">Welcome, {{ user_info.username }}</h1>
|
||||
|
||||
<!-- Row for Points and Status -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="card bg-success text-white dashboard-card">
|
||||
<div class="card-body text-center">
|
||||
<i class="fas fa-coins card-icon"></i>
|
||||
<h5 class="card-title mt-2">Your Points</h5>
|
||||
<p class="card-text">{{ points }} Points</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="card bg-info text-white dashboard-card">
|
||||
<div class="card-body text-center">
|
||||
<i class="fas fa-trophy card-icon"></i>
|
||||
<h5 class="card-title mt-2">Active Giveaways</h5>
|
||||
<p class="card-text">{{ active_giveaways }} Giveaways</p>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-light">View Your Giveaways</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="card bg-custom text-white dashboard-card">
|
||||
<div class="card-body text-center">
|
||||
<i class="fas fa-user-alt card-icon"></i>
|
||||
<h5 class="card-title mt-2">Account Status</h5>
|
||||
<p class="card-text">{{ account_status }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- User Activity -->
|
||||
<h1 class="text-center">Giveaways You've Won</h1>
|
||||
<div class="row mt-5">
|
||||
<div class="col-md-12">
|
||||
<h4>Recent Activity</h4>
|
||||
<ul class="list-group">
|
||||
{% for activity in recent_activity %}
|
||||
<li class="list-group-item">{{ activity }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if giveaways %}
|
||||
<table class="table table-bordered">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Platform</th>
|
||||
<th>Name</th>
|
||||
<th>Game Key</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for giveaway in giveaways %}
|
||||
<tr>
|
||||
<td>{{ giveaway.id }}</td>
|
||||
<td>{{ giveaway.platform }}</td>
|
||||
<td>{{ giveaway.name }}</td>
|
||||
<td>{{ giveaway.game_key }}</td>
|
||||
<td>
|
||||
<form method="POST" action="{{ url_for('redeem_giveaway', giveaway_id=giveaway.id) }}">
|
||||
<button type="submit" class="btn btn-success">Redeem Prize</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p class="text-center">You have not won any giveaways yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user