forked from CoderPEPE/lib-lp-staking-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
186 lines (163 loc) · 9.29 KB
/
index.html
File metadata and controls
186 lines (163 loc) · 9.29 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Liberdus LP Staking - Earn Rewards by Staking LP Tokens</title>
<meta name="description" content="Stake your liquidity provider tokens and earn rewards on our secure DeFi platform">
<!-- Favicon -->
<link rel="icon" type="image/png" href="assets/logo.png">
<!-- Fonts -->
<link rel="stylesheet" href="css/fonts.css">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/notifications.css">
<link rel="stylesheet" href="css/shared-header.css">
<link rel="stylesheet" href="css/wallet-popup.css">
<link rel="stylesheet" href="css/network-indicator-selector.css">
<link rel="stylesheet" href="css/theme-toggle.css">
<link rel="stylesheet" href="css/home.css">
<link rel="stylesheet" href="css/staking-modal.css">
</head>
<body>
<header class="header" role="banner">
<div class="container-lg">
<div class="header-toolbar">
<a href="./" class="logo-section" aria-label="Liberdus LP Staking - Home">
<img src="assets/logo.png" alt="Liberdus LP Staking" class="logo">
<span class="logo-text">Liberdus LP Staking</span>
<span class="version-badge" id="app-version">v0.0.0</span>
</a>
<nav class="nav-section" role="navigation" aria-label="Main navigation">
<a href="admin/" id="admin-panel-link" class="nav-button" style="display: none;">
<span class="material-icons" aria-hidden="true">admin_panel_settings</span>
<span>Admin Panel</span>
</a>
<!-- Network indicator -->
<div id="network-indicator-home" class="network-indicator-home" style="display:none;">
<!-- Populated by JavaScript -->
</div>
<button id="connect-wallet-btn"
class="connect-wallet-btn"
aria-describedby="wallet-status"
aria-live="polite"
aria-busy="true"
disabled>
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path>
</svg>
<span class="wallet-status-text">Checking wallet status...</span>
</button>
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle dark/light theme">
<span class="material-icons-outlined" aria-hidden="true">light_mode</span>
</button>
</nav>
</div>
</div>
</header>
<main class="main-content" role="main" id="main-content">
<div class="container-xl">
<div class="page-title">
<div class="page-title-header">
<h1>LP Staking</h1>
<button id="refresh-button" class="refresh-button" aria-label="Refresh data">
<span class="material-icons" aria-hidden="true">refresh</span>
</button>
</div>
</div>
<div id="content-container" class="animate-fade-in">
<!-- Skeleton table shown immediately on page load -->
<div class="table-container">
<table class="table">
<thead>
<tr>
<th><span class="material-icons">swap_horiz</span> Pair</th>
<th><span class="material-icons">trending_up</span> APR</th>
<th><span class="material-icons">fitness_center</span> Weight</th>
<th><span class="material-icons">account_balance</span> TVL</th>
<th><span class="material-icons">pie_chart</span> My Share</th>
<th><span class="material-icons">monetization_on</span> My Reward</th>
</tr>
</thead>
<tbody>
<tr>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 60px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 100px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
</tr>
<tr>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 60px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 100px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
</tr>
<tr>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 60px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 100px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 80px;"></div></td>
<td><div class="skeleton" style="height: 20px; width: 120px;"></div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="container-lg">
<div class="footer-content">
<span class="footer-text">© <a href="https://liberdus.com" target="_blank" rel="noopener noreferrer" class="footer-brand-link">Liberdus</a> <span id="footer-year">2026</span></span>
<div class="footer-actions">
<a id="add-token-link" href="#" class="footer-link-anchor footer-link-action" hidden>
<img src="assets/metamask-fox.svg" alt="" class="footer-link-icon" aria-hidden="true">
<span>Add to MetaMask</span>
</a>
<a id="staking-contract-link" href="#" target="_blank" rel="noopener noreferrer" class="footer-link-anchor" hidden>
Contract
</a>
</div>
<div class="social-links">
<a href="https://github.com/Liberdus/lib-lp-staking-frontend" target="_blank" rel="noopener" class="social-link" title="Visit our GitHub">
<span class="material-icons">code</span>
</a>
<a href="https://x.com/liberdus" target="_blank" rel="noopener" class="social-link" title="Follow us on X">
<span class="material-icons">alternate_email</span>
</a>
<a href="https://telegram.me/liberdus" target="_blank" rel="noopener" class="social-link" title="Join our Telegram">
<span class="material-icons">send</span>
</a>
</div>
</div>
</div>
</footer>
<div id="modal-container"></div>
<div id="notification-container" class="notification-container"></div>
<!-- Version Check System (runs first to ensure fresh cache) -->
<script src="js/utils/version-check.js"></script>
<script src="js/master-initializer.js"></script>
<script>
// Display version in header
document.addEventListener('DOMContentLoaded', function() {
const footerYearElement = document.getElementById('footer-year');
if (footerYearElement) {
footerYearElement.textContent = String(new Date().getFullYear());
}
if (window.getCurrentVersion) {
window.getCurrentVersion().then(function(version) {
const versionElement = document.getElementById('app-version');
if (versionElement) {
versionElement.textContent = 'v' + version;
}
});
}
});
</script>
</body>
</html>