new file: templates/navigation.html
modified: templates/redeem_giveaway.html modified: templates/user_dashboard.html modified: templates/user_giveaways.html
This commit is contained in:
19
templates/navigation.html
Normal file
19
templates/navigation.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#">Multus Bot</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<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') }}">Dashboard</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('user_giveaways') }}">Giveaways</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -1,63 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Redeem Giveaway</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
.redeem-card {
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
|
||||
.claim-btn {
|
||||
background-color: #28a745;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.claim-btn:hover {
|
||||
background-color: #218838;
|
||||
}
|
||||
|
||||
.key-display {
|
||||
font-size: 1.5rem;
|
||||
color: #007bff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include 'navigation.html' %}
|
||||
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Giveaway Prize</h1>
|
||||
<p class="text-center text-muted">Congratulations! You've won <strong>{{ giveaway.name }}</strong> on <strong>{{ giveaway.platform }}</strong>.</p>
|
||||
<p class="text-center">Congratulations! You have won the giveaway for <strong>{{ giveaway.name }}</strong> on
|
||||
<strong>{{ giveaway.platform }}</strong>.</p>
|
||||
|
||||
<div class="redeem-card mx-auto">
|
||||
{% if key %}
|
||||
<!-- Wenn der Key aufgedeckt wurde -->
|
||||
<h5 class="text-center">Your Game Key</h5>
|
||||
<p class="text-center key-display">{{ key }}</p>
|
||||
<div class="text-center">
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary mt-4">Back to Giveaways</a>
|
||||
{% if key %}
|
||||
<!-- Wenn der Key aufgedeckt wurde -->
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Your Key</h5>
|
||||
<p class="card-text">{{ key }}</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- Wenn der Key noch nicht aufgedeckt wurde -->
|
||||
<h5 class="text-center">Claim Your Key</h5>
|
||||
<p class="text-center">Do you want to reveal your game key? Once revealed, it will be marked as claimed and cannot be undone.</p>
|
||||
<div class="text-center">
|
||||
</div>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary mt-4">Back to Giveaways</a>
|
||||
{% else %}
|
||||
<!-- Wenn der Key noch nicht aufgedeckt wurde -->
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Claim Your Key</h5>
|
||||
<p class="card-text">Do you want to reveal your game key? Once revealed, it will be marked as claimed and cannot be undone.</p>
|
||||
|
||||
<form method="POST">
|
||||
<button type="submit" class="btn claim-btn">Reveal Key</button>
|
||||
<button type="submit" class="btn btn-success">Reveal Key</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="text-center mt-3">
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-secondary">Back to Giveaways</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-secondary mt-4">Back to Giveaways</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<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>
|
||||
</html>
|
||||
|
||||
@@ -1,48 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>User Dashboard</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#">Multus Bot - User Dashboard</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('admin_dashboard') }}">Switch to Admin View</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% include 'navigation.html' %}
|
||||
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Welcome, {{ user_info.username }}</h1>
|
||||
<p class="text-center">Here you can view your points, status, and more.</p>
|
||||
<p class="text-center">Here you can view your points and other information.</p>
|
||||
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Your Points</h5>
|
||||
<p class="card-text">You currently have: <strong>{{ points }}</strong> points.</p>
|
||||
<div class="row mt-4">
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body text-center">
|
||||
<h5 class="card-title">Your Points</h5>
|
||||
<p class="card-text">{{ user_points }} Points</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Your Giveaways</h5>
|
||||
<p class="card-text">Check if you have won any giveaways and redeem your prizes.</p>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-info btn-block">View Your Giveaways</a>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body text-center">
|
||||
<h5 class="card-title">Giveaways</h5>
|
||||
<p class="card-text">Check out the giveaways you've won!</p>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary">View Giveaways</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body text-center">
|
||||
<h5 class="card-title">Your Rank</h5>
|
||||
<p class="card-text">Rank: {{ user_rank }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,41 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Your Giveaways</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
.giveaway-card {
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.giveaway-card:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.no-giveaway {
|
||||
background-color: #f8f9fa;
|
||||
padding: 40px;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include 'navigation.html' %}
|
||||
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Your Giveaways</h1>
|
||||
<p class="text-center text-muted">Here are the giveaways you've won. Click "Claim Your Key" to receive your prize.</p>
|
||||
<p class="text-center">Here you can view the giveaways you've won.</p>
|
||||
|
||||
<div class="row mt-4">
|
||||
{% if giveaways %}
|
||||
{% for giveaway in giveaways %}
|
||||
<div class="col-md-4">
|
||||
<div class="card giveaway-card mb-4">
|
||||
<div class="card-body text-center">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{ giveaway.name }}</h5>
|
||||
<p class="card-text">Platform: {{ giveaway.platform }}</p>
|
||||
<a href="{{ url_for('redeem_giveaway', uuid=giveaway.uuid) }}" class="btn btn-primary">Claim Your Key</a>
|
||||
@@ -44,15 +27,12 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="col-12">
|
||||
<div class="no-giveaway">
|
||||
<h3>No Giveaways Won</h3>
|
||||
<p>It looks like you haven't won any giveaways yet. Keep participating and good luck!</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-center">You haven't won any giveaways yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<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>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user