-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
168 lines (152 loc) Β· 7.06 KB
/
Copy pathindex.html
File metadata and controls
168 lines (152 loc) Β· 7.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Hatch - Your Egg Hatching Stats</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<script src="https://unpkg.com/@tonconnect/ui@latest/dist/tonconnect-ui.min.js"></script>
</head>
<body>
<div class="app-container">
<!-- Home Page -->
<div class="page active" id="home-page">
<div class="header-section">
<div class="logo-container">
<div class="logo-emoji">π₯</div>
</div>
<h1 class="main-title">Hatch</h1>
<p class="subtitle">Your egg hatching statistics</p>
</div>
<div class="stats-container">
<div class="stat-card hatched-card">
<div class="stat-header">
<div class="stat-icon">π£</div>
<div class="stat-info">
<div class="stat-label">Hatched</div>
<div class="stat-value" id="hatched-count">0</div>
</div>
</div>
<div class="stat-description">Eggs you've hatched</div>
</div>
<div class="stat-card received-card">
<div class="stat-header">
<div class="stat-icon">π₯</div>
<div class="stat-info">
<div class="stat-label">Your Eggs</div>
<div class="stat-value" id="my-eggs-count">0</div>
</div>
</div>
<div class="stat-description">Your eggs hatched by others</div>
</div>
</div>
<div class="actions-section">
<button class="action-button primary" id="send-egg-btn">
<span class="button-icon">π₯</span>
<span class="button-text">Send Egg</span>
</button>
<!-- TON Connect Button -->
<div id="ton-connect-section" style="display: none;">
<button class="action-button ton-connect" id="ton-connect-btn">
<span class="button-icon">π</span>
<span class="button-text">Connect TON Wallet</span>
</button>
</div>
<!-- Payment Section -->
<div id="payment-section" style="display: none;">
<div class="payment-card">
<h3>π³ Pay for More Eggs</h3>
<p>You've used all free eggs today. Pay <strong id="ton-price">0.1</strong> TON for <strong id="eggs-pack-size">10</strong> more eggs.</p>
<button class="action-button primary" id="pay-ton-btn">
<span class="button-icon">π</span>
<span class="button-text">Pay <span id="pay-amount">0.1</span> TON</span>
</button>
</div>
</div>
</div>
</div>
<!-- Stats Page -->
<div class="page" id="stats-page">
<div class="page-header">
<h2 class="page-title">Statistics</h2>
</div>
<div class="stats-container">
<div class="stat-card hatched-card">
<div class="stat-header">
<div class="stat-icon">π£</div>
<div class="stat-info">
<div class="stat-label">Hatched</div>
<div class="stat-value" id="hatched-count-stats">0</div>
</div>
</div>
<div class="stat-description">Eggs you've hatched</div>
</div>
<div class="stat-card received-card">
<div class="stat-header">
<div class="stat-icon">π₯</div>
<div class="stat-info">
<div class="stat-label">Your Eggs</div>
<div class="stat-value" id="my-eggs-count-stats">0</div>
</div>
</div>
<div class="stat-description">Your eggs hatched by others</div>
</div>
</div>
<div class="info-section">
<div class="info-card">
<h3>π Detailed Stats</h3>
<p>Track your egg hatching activity and see how many eggs you've sent and received!</p>
</div>
</div>
</div>
<!-- Info Page -->
<div class="page" id="info-page">
<div class="page-header">
<h2 class="page-title">How it works</h2>
</div>
<div class="info-section">
<div class="info-card">
<div class="info-icon">π₯</div>
<h3>Send Eggs</h3>
<p>Use @tohatchbot in any Telegram chat to send eggs to your friends via inline mode.</p>
</div>
<div class="info-card">
<div class="info-icon">π£</div>
<h3>Hatch Eggs</h3>
<p>Only recipients can hatch the eggs you send. You cannot hatch your own eggs!</p>
</div>
<div class="info-card">
<div class="info-icon">π</div>
<h3>Track Stats</h3>
<p>View your statistics: how many eggs you've hatched and how many of yours were hatched.</p>
</div>
<div class="info-card">
<div class="info-icon">π</div>
<h3>TON Payments</h3>
<p>Connect your TON wallet to purchase more eggs when you run out of free ones.</p>
</div>
</div>
</div>
<!-- Bottom Navigation -->
<nav class="bottom-nav">
<button class="nav-item active" data-page="home-page">
<span class="nav-icon">π </span>
<span class="nav-label">Home</span>
</button>
<button class="nav-item" data-page="stats-page">
<span class="nav-icon">π</span>
<span class="nav-label">Stats</span>
</button>
<button class="nav-item" data-page="info-page">
<span class="nav-icon">βΉοΈ</span>
<span class="nav-label">Info</span>
</button>
</nav>
</div>
<script src="app.js"></script>
</body>
</html>