forked from anuragverma108/SwapReads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
achievements.html
147 lines (133 loc) · 4.01 KB
/
achievements.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Badge Information - SwapReads</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: pink;
color: #333;
margin: 0;
padding: 20px;
}
.container {
max-width: 1600px;
margin: auto;
padding: 20px;
background-color: #faf7faca;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #d35400; /* Dark orange color */
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
background-color: rgba(255, 192, 203, 0.609);
}
th, td {
padding: 12px;
border: 1px solid #848181;
text-align: center;
font-style: italic;
font-size: 19.5px;
color: black;
}
th {
background-color: #f39c12; /* Orange color */
color: white;
}
.badge-img {
width: 150px;
height: 150px;
}
.prompt {
text-align: center;
margin-top: 20px;
padding: 10px;
background-color: #f9f1e7;
border-radius: 8px;
}
#loginButton {
background-color: #e67e22; /* Orange button color */
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
margin-top: 10px;
}
#loginButton:hover {
background-color: #d35400; /* Darker orange */
}
</style>
</head>
<body>
<div class="container">
<h1>Badge Achievement Information</h1>
<table id="badgeTable">
<thead>
<tr>
<th>Badge Image</th>
<th>How to Earn</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="assets/images/website-login.png" alt="Badge 1" class="badge-img"></td>
<td>Signup to SwapReads</td>
<td>10 points</td>
</tr>
<tr>
<td><img src="assets/images/your-first-read.png" alt="Badge 2" class="badge-img"></td>
<td>Complete your First Book</td>
<td>30 points</td>
</tr>
<tr>
<td><img src="assets/images/first-5-read.png" alt="Badge 3" class="badge-img"></td>
<td>Complete five books in a Row</td>
<td>60 points</td>
</tr>
<tr>
<td><img src="assets/images/part-of-our-community.png" alt="Badge 4" class="badge-img"></td>
<td>Signup to our NewsLetter</td>
<td>20 points</td>
</tr>
<tr>
<td><img src="assets/images/share-books.png" alt="Badge 5" class="badge-img"></td>
<td>Share a SwapRead Book</td>
<td>40 points</td>
</tr>
<tr>
<td><img src="assets/images/10-books-30-days.png" alt="Badge 6" class="badge-img"></td>
<td>Complete Reading 10 Books in 30 Days</td>
<td>90 points</td>
</tr>
<tr>
<td><img src="assets/images/swap-read-mega-1.png" alt="Badge 7" class="badge-img"></td>
<td>Earn all the badges to Win this Mega Badge</td>
<td>300 points</td>
</tr>
<!-- Add more badges as needed -->
</tbody>
</table>
<div class="prompt">
<p style="font-weight: bold; font-size: 21px;">Want to see which badges you've earned? Log in to find out!</p>
<button id="loginButton">Login to your Profile</button>
</div>
</div>
<script>
// JavaScript for navigation to login page
document.getElementById("loginButton").onclick = function() {
window.location.href = "assets/html/login.html"; // Replace with the actual login page URL
};
</script>
</body>
</html>