-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
583 lines (523 loc) · 30.1 KB
/
index.html
File metadata and controls
583 lines (523 loc) · 30.1 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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XerahS - Free and open source screen capture, file sharing and productivity tool</title>
<meta name="description"
content="XerahS is ShareX reimagined with modern UI technologies, built from the ground up for cross-platform performance. Free and open source.">
<!-- Fonts -->
<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">
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<!-- Styles -->
<link rel="stylesheet" href="css/tokens.css">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="icon" href="../favicon.ico">
</head>
<body>
<!-- ═══════════════════════════════════════
BACKGROUND SYSTEM (Signature Element)
═══════════════════════════════════════ -->
<div class="background-system">
<div class="gradient-base"></div>
<div class="noise-overlay"></div>
<div class="blob blob-primary"></div>
<div class="blob blob-secondary"></div>
<div class="blob blob-tertiary"></div>
<div class="blob blob-bottom"></div>
<div class="grid-overlay"></div>
</div>
<!-- ═══════════════════════════════════════
NAVIGATION
═══════════════════════════════════════ -->
{% include navbar.html %}
<!-- ═══════════════════════════════════════
EARLY DEVELOPMENT BANNER
═══════════════════════════════════════ -->
<div style="background-color: #FFF3CD; padding: 16px 20px; text-align: center; border-bottom: 2px solid #FFE69C; margin-top: 64px;">
<p style="margin: 0; color: #8B0000; font-size: 16px; font-weight: 600;">
<i class="fa-solid fa-warning" style="margin-right: 8px;"></i>
<strong>Early Development Notice:</strong> XerahS is currently in early development and preview stages. Most functions are still being worked on.
</p>
</div>
<main>
<!-- ═══════════════════════════════════════
HERO SECTION
═══════════════════════════════════════ -->
<section class="hero" id="hero">
<div class="hero-content animate-on-scroll">
<span class="badge hero-badge">
<i class="fa-solid fa-code"></i>
Free & Open Source
</span>
<h1 class="hero-title gradient-text">
Capture.<br>Reimagined.
</h1>
<p class="hero-subtitle">
The most advanced screen capture tool for Windows, macOS, and Linux.
ShareX reimagined with modern UI technologies, built from the ground up
for cross-platform performance.
</p>
<div class="hero-cta">
<a href="#downloads" class="btn btn-primary">
<i class="fa-solid fa-download"></i>
Download Free
</a>
<a href="https://github.com/ShareX/XerahS" class="btn btn-secondary" target="_blank" rel="noopener">
<i class="fa-brands fa-github"></i>
View Source
</a>
</div>
</div>
<div class="hero-visual animate-on-scroll delay-1">
<div class="hero-glow"></div>
<img src="assets/linux/editor-main.png" alt="XerahS Application Interface" class="hero-screenshot">
<a href="{{ site.baseurl }}/screenshots/" class="hero-screenshots-link">
<i class="fa-solid fa-images"></i>
See more screenshots
</a>
</div>
</section>
<!-- ═══════════════════════════════════════
FEATURES SECTION (Bento Grid)
═══════════════════════════════════════ -->
<section class="section-padding" id="features">
<div class="container">
<div class="section-header animate-on-scroll">
<h2 class="section-title gradient-text">Power at your fingertips.</h2>
<p class="section-subtitle">Everything you need to capture, edit, and share.</p>
</div>
<div class="bento-grid">
<!-- Hero Card: Cross-Platform -->
<a href="features/cross-platform.html" class="card card-span-2 animate-on-scroll" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-desktop"></i>
</div>
<h3 class="card-title">Cross-Platform</h3>
<p class="card-description">
Built with Avalonia UI for true cross-platform support.
Works seamlessly on Windows, macOS, and Linux with a native look and feel
on each platform.
</p>
</div>
</a>
<!-- Workflow Automation -->
<a href="features/workflows.html" class="card card-span-2 animate-on-scroll delay-1" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-wand-magic-sparkles"></i>
</div>
<h3 class="card-title">Dedicated Workflows</h3>
<p class="card-description">
Optimize your productivity with highly customizable, hotkey-driven workflows.
</p>
</div>
</a>
<!-- Pixel Perfect -->
<a href="features/modern-capture.html" class="card card-span-2 animate-on-scroll delay-2" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-crosshairs"></i>
</div>
<h3 class="card-title">Modern Screen Capture</h3>
<p class="card-description">
Region capture with magnifier precision. Pixel perfect results every time.
</p>
</div>
</a>
<!-- Powerful Editor -->
<a href="features/annotation-tools.html" class="card card-span-2 animate-on-scroll delay-1" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-pen-ruler"></i>
</div>
<h3 class="card-title">Annotation Tools</h3>
<p class="card-description">
Annotate screenshots with arrows, text, blurs, and more.
Express your ideas clearly and concisely.
</p>
</div>
</a>
<!-- Plugin System -->
<a href="features/plugins.html" class="card card-span-2 animate-on-scroll delay-2" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-plug"></i>
</div>
<h3 class="card-title">Plugin-based Destinations</h3>
<p class="card-description">
Modular architecture. Upload to S3, Google Drive, Dropbox, and more.
</p>
</div>
</a>
<!-- CLI -->
<a href="features/cli.html" class="card card-span-2 animate-on-scroll delay-3" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-terminal"></i>
</div>
<h3 class="card-title">Command Line Interface</h3>
<p class="card-description">
Automate screen capture and recording directly from your terminal.
</p>
</div>
</a>
<!-- MCP Server -->
<a href="features/mcp-server.html" class="card card-span-2 animate-on-scroll delay-4" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-robot"></i>
</div>
<h3 class="card-title">MCP Server</h3>
<p class="card-description">
Give AI tools direct access to capture, annotation, upload, history, and workflows through MCP.
</p>
</div>
</a>
<!-- Multi-layer Support -->
<a href="features/layers.html" class="card card-span-2 animate-on-scroll delay-3" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-layer-group"></i>
</div>
<h3 class="card-title">Multi-layer Support</h3>
<p class="card-description">
Non-destructive editing. Move, resize, and edit objects at any time.
</p>
</div>
</a>
<!-- Image Effects -->
<a href="features/image-effects.html" class="card card-span-2 animate-on-scroll delay-4" style="text-decoration: none; color: inherit;">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-solid fa-magic"></i>
</div>
<h3 class="card-title">Image Effects</h3>
<p class="card-description">
Apply effects like shadows, borders, and watermarks.
</p>
</div>
</a>
<!-- Open Source -->
<div class="card card-span-2 animate-on-scroll delay-5">
<div class="spotlight"></div>
<div class="card-content">
<div class="card-icon">
<i class="fa-brands fa-github"></i>
</div>
<h3 class="card-title">Open Source</h3>
<p class="card-description">
Free forever with no ads. Contribute on GitHub.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════
DOWNLOAD SECTION
═══════════════════════════════════════ -->
<section class="download-section section-padding" id="downloads">
<div class="container">
<div class="section-header animate-on-scroll">
<h2 class="section-title gradient-text">Get XerahS</h2>
<p class="section-subtitle">Available on all major platforms</p>
</div>
<div class="download-grid">
<!-- Windows -->
<div class="platform-card animate-on-scroll delay-1">
<i class="fa-brands fa-windows platform-card-icon"></i>
<span class="platform-card-name">Windows</span>
<div class="platform-card-versions">
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="win-x64-exe">x64 EXE</a>
<a href="https://github.com/ShareX/XerahS/releases/latest"
data-download-target="win-x64-msi"
class="platform-card-version">x64 MSI</a>
<a href="https://github.com/ShareX/XerahS/releases/latest"
data-download-target="win-arm64-exe"
class="platform-card-version">ARM64 EXE</a>
<a href="https://github.com/ShareX/XerahS/releases/latest"
data-download-target="win-arm64-msi"
class="platform-card-version">ARM64 MSI</a>
</div>
</div>
<!-- macOS -->
<div class="platform-card animate-on-scroll delay-2">
<i class="fa-brands fa-apple platform-card-icon"></i>
<span class="platform-card-name">macOS</span>
<div class="platform-card-versions">
<a href="https://github.com/ShareX/XerahS/releases/latest"
data-download-target="mac-x64"
class="platform-card-version">Intel (x64)</a>
<a href="https://github.com/ShareX/XerahS/releases/latest"
data-download-target="mac-arm64"
class="platform-card-version">Apple Silicon</a>
</div>
</div>
<!-- Linux -->
<div class="platform-card animate-on-scroll delay-3">
<i class="fa-brands fa-linux platform-card-icon"></i>
<span class="platform-card-name">Linux</span>
<div class="platform-card-versions">
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-x64-deb">x64 .deb</a>
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-x64-rpm">x64 .rpm</a>
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-x64-tar">x64 .tar.gz</a>
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-arm64-deb">ARM64 .deb</a>
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-arm64-rpm">ARM64 .rpm</a>
<a href="https://github.com/ShareX/XerahS/releases/latest" class="platform-card-version"
data-download-target="linux-arm64-tar">ARM64 .tar.gz</a>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- ═══════════════════════════════════════
FOOTER
═══════════════════════════════════════ -->
{% include footer.html %}
<!-- ═══════════════════════════════════════
SCRIPTS
═══════════════════════════════════════ -->
<script>
// ─────────────────────────────────────────
// Scroll-triggered animations
// ─────────────────────────────────────────
const observerOptions = {
threshold: 0.15,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, observerOptions);
document.querySelectorAll('.animate-on-scroll').forEach(el => {
observer.observe(el);
});
// ─────────────────────────────────────────
// Mobile menu toggle
// ─────────────────────────────────────────
const navToggle = document.querySelector('.nav-toggle');
const navMobile = document.querySelector('.nav-mobile');
navToggle.addEventListener('click', () => {
const isActive = navToggle.classList.toggle('active');
navMobile.classList.toggle('active');
navToggle.setAttribute('aria-expanded', isActive);
});
// Close mobile menu when clicking a link
document.querySelectorAll('.nav-mobile-link, .nav-mobile-cta').forEach(link => {
link.addEventListener('click', () => {
navToggle.classList.remove('active');
navMobile.classList.remove('active');
navToggle.setAttribute('aria-expanded', 'false');
});
});
// ─────────────────────────────────────────
// Card spotlight effect (mouse tracking)
// ─────────────────────────────────────────
document.querySelectorAll('.card').forEach(card => {
const spotlight = card.querySelector('.spotlight');
if (!spotlight) return;
card.addEventListener('mousemove', (e) => {
const rect = card.getBoundingClientRect();
const x = ((e.clientX - rect.left) / rect.width) * 100;
const y = ((e.clientY - rect.top) / rect.height) * 100;
spotlight.style.setProperty('--mouse-x', x + '%');
spotlight.style.setProperty('--mouse-y', y + '%');
});
});
// ─────────────────────────────────────────
// Hero parallax effect on scroll
// ─────────────────────────────────────────
const hero = document.querySelector('.hero');
const heroContent = document.querySelector('.hero-content');
if (hero && heroContent) {
let ticking = false;
window.addEventListener('scroll', () => {
if (!ticking) {
window.requestAnimationFrame(() => {
const scrollY = window.scrollY;
const heroHeight = hero.offsetHeight;
const scrollPercent = Math.min(scrollY / (heroHeight * 0.5), 1);
// Apply parallax transforms
const opacity = 1 - scrollPercent;
const scale = 1 - (scrollPercent * 0.05);
const translateY = scrollPercent * 50;
heroContent.style.opacity = opacity;
heroContent.style.transform = `translateY(${translateY}px) scale(${scale})`;
ticking = false;
});
ticking = true;
}
});
}
// ─────────────────────────────────────────
// Smooth scroll for anchor links
// ─────────────────────────────────────────
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// ─────────────────────────────────────────
// Theme toggle functionality
// ─────────────────────────────────────────
// Resolve installer links to the latest release assets
async function hydrateLatestInstallerLinks() {
const releaseApiUrl = 'https://api.github.com/repos/ShareX/XerahS/releases/latest';
const downloadConfigs = [
{
selector: '[data-download-target="win-x64-exe"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('win-x64') && name.endsWith('.exe')
},
{
selector: '[data-download-target="win-x64-msi"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('win-x64') && name.endsWith('.msi')
},
{
selector: '[data-download-target="win-arm64-exe"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('win-arm64') && name.endsWith('.exe')
},
{
selector: '[data-download-target="win-arm64-msi"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('win-arm64') && name.endsWith('.msi')
},
{
selector: '[data-download-target="mac-x64"]',
matcher: (name) => name.startsWith('xerahs') && (name.includes('mac-x64') || name.includes('osx-x64')) && name.endsWith('.tar.gz')
},
{
selector: '[data-download-target="mac-arm64"]',
matcher: (name) => name.startsWith('xerahs') && (name.includes('mac-arm64') || name.includes('osx-arm64')) && name.endsWith('.tar.gz')
},
{
selector: '[data-download-target="linux-x64-deb"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-x64') && name.endsWith('.deb'),
hideIfMissing: true
},
{
selector: '[data-download-target="linux-x64-rpm"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-x64') && name.endsWith('.rpm'),
hideIfMissing: true
},
{
selector: '[data-download-target="linux-x64-tar"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-x64') && name.endsWith('.tar.gz'),
hideIfMissing: true
},
{
selector: '[data-download-target="linux-arm64-deb"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-arm64') && name.endsWith('.deb'),
hideIfMissing: true
},
{
selector: '[data-download-target="linux-arm64-rpm"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-arm64') && name.endsWith('.rpm'),
hideIfMissing: true
},
{
selector: '[data-download-target="linux-arm64-tar"]',
matcher: (name) => name.startsWith('xerahs') && name.includes('linux-arm64') && name.endsWith('.tar.gz'),
hideIfMissing: true
}
];
const response = await fetch(releaseApiUrl, {
headers: {
Accept: 'application/vnd.github+json'
}
});
if (!response.ok) {
throw new Error(`Failed to load release metadata: ${response.status}`);
}
const release = await response.json();
const assets = Array.isArray(release.assets) ? release.assets : [];
downloadConfigs.forEach(config => {
const linkElement = document.querySelector(config.selector);
if (!linkElement) return;
const asset = assets.find(a => config.matcher((a.name || '').toLowerCase()));
if (!asset) {
if (config.hideIfMissing) {
linkElement.style.display = 'none';
}
return;
}
const releaseInfo = `Version: ${release.tag_name}\nFile size: ${(asset.size / 1024 / 1024).toFixed(2)} MiB\nRelease date: ${new Date(asset.updated_at).toLocaleDateString('en-CA')}\nDownload count: ${asset.download_count.toLocaleString()}`;
linkElement.setAttribute('href', asset.browser_download_url);
linkElement.setAttribute('title', releaseInfo);
linkElement.style.display = '';
});
}
hydrateLatestInstallerLinks().catch(() => {
console.log('Failed to resolve latest installer asset links. Using fallback release URLs.');
});
const themeToggles = document.querySelectorAll('.theme-toggle');
const html = document.documentElement;
// Check for saved theme preference
function getPreferredTheme() {
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
return savedTheme;
}
return 'light'; // Default to light mode
}
// Apply theme
function setTheme(theme) {
if (theme === 'light') {
html.setAttribute('data-theme', 'light');
} else {
html.removeAttribute('data-theme');
}
localStorage.setItem('theme', theme);
}
// Initialize theme
setTheme(getPreferredTheme());
// Toggle theme on button click
themeToggles.forEach(toggle => {
toggle.addEventListener('click', () => {
const currentTheme = html.getAttribute('data-theme');
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
setTheme(newTheme);
});
});
// Listen for system theme changes
window.matchMedia('(prefers-color-scheme: light)').addEventListener('change', (e) => {
if (!localStorage.getItem('theme')) {
setTheme(e.matches ? 'light' : 'dark');
}
});
</script>
</body>
</html>