Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
397 lines (374 loc) · 14.3 KB
/
Copy pathindex.html
File metadata and controls
397 lines (374 loc) · 14.3 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!doctype html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8" />
<title>Mirava — آینههای نرمافزاری</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="images/logo.svg" />
<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&family=Vazirmatn:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Background -->
<div class="bg"></div>
<!-- Hero -->
<header class="hero">
<nav class="topbar" aria-label="ناوبری">
<a class="brand-mark" href="#" aria-label="Mirava">
<img src="images/logo.svg" alt="" />
<span>Mirava</span>
</a>
<div class="site-nav">
<a href="index.html" aria-current="page" data-i18n="navHome">خانه</a>
<a href="about.html" data-i18n="navAbout">درباره</a>
<a href="#support" data-i18n="navDonate">حمایت</a>
</div>
<button id="langToggle" class="lang-toggle" type="button">EN</button>
</nav>
<div class="hero-content">
<img src="images/logo.svg" alt="Mirava Logo" class="logo" />
<div class="hero-text">
<h1>Mirava</h1>
<p data-i18n="heroText">
فهرست زندهای از میرورهای نرمافزاری ایران برای دسترسی سریعتر و
قابل اتکاتر به پکیجها، مخازن و ابزارهای توسعه.
</p>
<div class="hero-actions">
<a
href="#support"
class="hero-btn support-link"
aria-label="Support Mirava"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M12 21s-7-4.4-9.4-9.1C.9 8.4 2.7 4 6.7 4c2.1 0 3.8 1.2 5.3 3 1.5-1.8 3.2-3 5.3-3 4 0 5.8 4.4 4.1 7.9C19 16.6 12 21 12 21Z"
/>
</svg>
<span data-i18n="supportMirava">حمایت از میراوا</span>
</a>
</div>
</div>
</div>
</header>
<!-- Suggestion Button -->
<div class="suggestion-fab">
<button id="suggestBtn" class="suggest-btn glass">
<span data-i18n="suggestMirror">پیشنهاد میرور</span>
</button>
</div>
<!-- Suggestion Modal -->
<div id="suggestionModal" class="modal">
<div class="modal-content glass">
<span class="close-modal">×</span>
<h2 data-i18n="suggestTitle">پیشنهاد میرور جدید</h2>
<form id="suggestionForm">
<div class="form-group">
<label for="mirrorName" data-i18n="mirrorName">نام میرور *</label>
<input
type="text"
id="mirrorName"
name="name"
required
placeholder="مثلا: University of Tehran Mirror"
/>
</div>
<div class="form-group">
<label for="mirrorUrl" data-i18n="mirrorUrl">آدرس میرور *</label>
<input
type="url"
id="mirrorUrl"
name="url"
required
placeholder="https://example.com/mirror"
/>
</div>
<div class="form-group">
<label for="mirrorDesc" data-i18n="mirrorDesc">توضیح *</label>
<textarea
id="mirrorDesc"
name="description"
required
placeholder="این میرور چه پکیجها یا سرویسهایی را پوشش میدهد؟"
rows="3"
></textarea>
</div>
<div class="form-group">
<label for="mirrorPackages" data-i18n="mirrorPackages"
>پکیجها / مخازن، جدا شده با کاما *</label
>
<input
type="text"
id="mirrorPackages"
name="packages"
required
placeholder="e.g., apt, pypi, npm, docker"
/>
</div>
<div class="form-group">
<label for="submitterName" data-i18n="yourName"
>نام شما (اختیاری)</label
>
<input
type="text"
id="submitterName"
name="submitter"
placeholder="How should we credit you?"
/>
</div>
<div class="form-group">
<label for="submitterEmail" data-i18n="yourEmail"
>ایمیل شما (اختیاری)</label
>
<input
type="email"
id="submitterEmail"
name="email"
placeholder="we won't spam you"
/>
</div>
<button type="submit" class="submit-suggestion">
<span data-i18n="submitSuggestion">ثبت پیشنهاد</span>
</button>
</form>
</div>
</div>
<!-- Success/Error Toast for Suggestion -->
<div id="suggestionToast" class="copy-toast glass">
<span data-i18n="suggestionDone">پیشنهاد با موفقیت ثبت شد.</span>
</div>
<section class="section controls-section">
<div class="category-tabs" aria-label="دستهبندی میرورها">
<button
class="category-tab active"
type="button"
data-category="all"
data-i18n="categoryAll"
>
همه
</button>
<button
class="category-tab"
type="button"
data-category="operating-systems"
data-i18n="categoryOperatingSystems"
>
سیستمعاملها
</button>
<button
class="category-tab"
type="button"
data-category="containers"
data-i18n="categoryContainers"
>
کانتینرها
</button>
<button
class="category-tab"
type="button"
data-category="packages"
data-i18n="categoryPackages"
>
پکیجها
</button>
</div>
<input
type="text"
id="mirrorSearchInput"
class="search-input"
placeholder="جستوجوی میرور..."
/>
<div class="filters" aria-label="فیلترها">
<select
id="statusFilter"
class="filter-select"
aria-label="فیلتر وضعیت"
>
<option value="all" data-i18n="allStatuses">همه وضعیتها</option>
<option value="iranian" data-i18n="iranianMirrors">ایرانی</option>
<option value="international" data-i18n="internationalMirrors">
بینالمللی
</option>
<option value="up" data-i18n="onlineOnly">فقط آنلاین</option>
<option value="down" data-i18n="offlineOnly">فقط آفلاین</option>
<option value="checking" data-i18n="checkingOnly">
در حال بررسی
</option>
</select>
<select
id="packageFilter"
class="filter-select"
aria-label="فیلتر پکیج"
>
<option value="all" data-i18n="allPackages">همه پکیجها</option>
</select>
</div>
</section>
<!-- Mirrors -->
<section class="section">
<div class="section-title">
<span class="eyebrow" data-i18n="mirrorListEyebrow">فهرست میرورها</span>
<h2 data-i18n="mirrors">میرورها</h2>
</div>
<div id="mirrorCards" class="mirror-grid"></div>
<!-- Copy feedback -->
<div id="copyToast" class="copy-toast glass">
<span data-i18n="copied">لینک کپی شد.</span>
</div>
</section>
<!-- Live Radar (Uptime Kuma) -->
<section class="section">
<div class="section-title center-title">
<span class="eyebrow" data-i18n="gridEyebrow">وضعیت اتصال</span>
<h2 data-i18n="radarTitle">رادار زنده میرورها</h2>
<p class="section-subtitle" data-i18n="radarSubtitle">
پایش مستمر توسط Uptime Kuma — دادههای واقعی سمت سرور
</p>
</div>
<div class="radar-frame-wrap glass" id="radarIframeWrap">
<iframe
id="radarFrame"
src="https://status.miravaorg.ir/status/default"
class="radar-frame"
title="Mirava Live Mirror Radar"
loading="lazy"
referrerpolicy="no-referrer"
sandbox="allow-scripts allow-same-origin allow-popups"
></iframe>
</div>
<a
class="radar-external-link"
href="https://status.miravaorg.ir/status/default"
target="_blank"
rel="noopener noreferrer"
aria-label="مشاهده رادار کامل در پنجره جدید"
>
<span class="radar-button-icon" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path
d="M12 3a9 9 0 1 0 9 9 1 1 0 1 0-2 0 7 7 0 1 1-7-7 1 1 0 1 0 0-2Zm1 4a1 1 0 0 0 0 2 2 2 0 1 1-2 2 1 1 0 1 0-2 0 4 4 0 1 0 4-4Zm0 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
/>
</svg>
</span>
<span data-i18n="openFullRadar">مشاهده رادار کامل</span>
<span class="radar-button-arrow" aria-hidden="true">↗</span>
</a>
<div id="statusGrid" class="status-grid glass" hidden></div>
</section>
<!-- Support -->
<section id="support" class="section support-section" dir="rtl">
<div class="support-card glass">
<div>
<span class="eyebrow" data-i18n="support">حمایت</span>
<h2 data-i18n="paymentGateway">راههای حمایت مالی</h2>
<p data-i18n="supportText">
اگر میراوا برای شما مفید بوده، میتوانید در نگهداری و توسعه آن حمایت
کنید.
</p>
</div>
<div class="donation-panel">
<a
class="payment-btn"
href="https://daramet.com/mirava"
target="_blank"
rel="noopener"
aria-label="Open Mirava rial payment gateway"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M3 7.5A2.5 2.5 0 0 1 5.5 5h13A2.5 2.5 0 0 1 21 7.5v9A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5v-9Zm2 1.2h14V7.5a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v1.2Zm0 3v4.8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-4.8H5Zm2.2 3.1h4.2v1.4H7.2v-1.4Z"
/>
</svg>
<span data-i18n="payBtn">پرداخت ریالی</span>
</a>
<div class="crypto-list" dir="ltr" aria-label="Crypto donation addresses">
<div><strong>BTC</strong><code>bc1qlyvjpynewlhhhks4ggrvre2p9sceap93rrkff4</code></div>
<div><strong>ETH</strong><code>0x68fd4b097f0b17FC2Ad152a6D1f841413cb815DD</code></div>
<div><strong>TRX</strong><code>TQwXwPJQ8kAUTBYb4LhmDVwcifvsz8NbMz</code></div>
<div><strong>USDT BEP20</strong><code>0x68fd4b097f0b17FC2Ad152a6D1f841413cb815DD</code></div>
<div><strong>USD Polygon</strong><code>0x68fd4b097f0b17FC2Ad152a6D1f841413cb815DD</code></div>
</div>
</div>
</div>
</section>
<!-- Contributors -->
<section class="section">
<div class="section-title">
<span class="eyebrow" data-i18n="community">جامعه</span>
<h2 data-i18n="contributors">مشارکتکنندهها</h2>
</div>
<div class="contributors glass" id="contributors"></div>
<p class="thanks">
<span data-i18n="thanks"
>ساخته شده توسط کسانی که به اینترنت آزاد و باز باور دارند.</span
>
</p>
</section>
<!-- Footer -->
<footer class="footer glass">
<div class="social-links" aria-label="Mirava social links">
<a
href="https://t.me/miravaorg"
target="_blank"
rel="noopener"
aria-label="Mirava Telegram"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21.8 4.2 18.6 20c-.2 1.1-.9 1.4-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.3L6 13.4 1.1 11.9c-1.1-.3-1.1-1.1.2-1.6L20.4 3c.9-.3 1.6.2 1.4 1.2Z"
/>
</svg>
</a>
<a
href="https://github.com/MiravaOrg"
target="_blank"
rel="noopener"
aria-label="Mirava GitHub"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.9c-2.9.6-3.5-1.2-3.5-1.2-.5-1.1-1.1-1.4-1.1-1.4-.9-.6.1-.6.1-.6 1 0 1.6 1.1 1.6 1.1.9 1.6 2.4 1.1 3 .8.1-.7.4-1.1.7-1.3-2.3-.3-4.7-1.2-4.7-5A3.9 3.9 0 0 1 6.6 8.8c-.1-.3-.5-1.3.1-2.7 0 0 .9-.3 2.8 1a9.5 9.5 0 0 1 5.1 0c1.9-1.3 2.8-1 2.8-1 .6 1.4.2 2.4.1 2.7a3.9 3.9 0 0 1 1.1 2.7c0 3.9-2.4 4.7-4.7 5 .4.3.7 1 .7 2V21c0 .3.2.6.7.5A10 10 0 0 0 12 2Z"
/>
</svg>
</a>
<a
href="https://x.com/Miravaorg"
target="_blank"
rel="noopener"
aria-label="Mirava on X"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M14.5 10.3 22 2h-1.8l-6.5 7.2L8.5 2H2.5l7.9 10.9L2.5 22h1.8l6.9-7.7 5.5 7.7h6L14.5 10.3Zm-2.4 2.6-.8-1.1L5 3.4h2.7l5.1 6.9.8 1.1 6.6 9.1h-2.7l-5.4-7.6Z"
/>
</svg>
</a>
</div>
<div class="footer-text">
<span data-i18n="footerText">
© Mirava • متنباز • آزادی از مسیر دسترسی • قدرت گرفته شده از
</span>
<a
href="https://paasta.cloud/"
target="_blank"
rel="noopener noreferrer"
aria-label="Paasta Cloud"
>
<img
src="images/pastacloud-logo.png"
alt="Paasta Cloud"
width="20"
height="20"
/>
<span>پاستاکلود</span>
</a>
</div>
</footer>
<script src="script.js"></script>
<script src="suggestion.js"></script>
</body>
</html>