Files
MP-Server/macropad-relay/public/index.html
jknapp 6f3823eccf Add PWA, wake lock, and fullscreen to relay app
- Add wake lock (keep screen awake) functionality
- Add fullscreen toggle button
- Add dynamic PWA manifest generation
- Add favicon and icons for all relay pages
- Copy icons from main web folder

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 21:04:03 -08:00

176 lines
4.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MacroPad Relay</title>
<link rel="icon" type="image/png" href="/static/icons/favicon.png">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #e0e0e0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
}
.container {
max-width: 600px;
text-align: center;
}
.logo {
font-size: 64px;
margin-bottom: 20px;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
color: #fff;
}
.tagline {
font-size: 1.2rem;
color: #888;
margin-bottom: 40px;
}
.card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
}
.card h2 {
font-size: 1.3rem;
margin-bottom: 15px;
color: #4a9eff;
}
.card p {
line-height: 1.6;
color: #b0b0b0;
}
.features {
display: grid;
gap: 20px;
text-align: left;
}
.feature {
display: flex;
align-items: flex-start;
gap: 15px;
}
.feature-icon {
font-size: 24px;
flex-shrink: 0;
}
.feature-text h3 {
font-size: 1rem;
margin-bottom: 5px;
color: #fff;
}
.feature-text p {
font-size: 0.9rem;
color: #888;
}
.cta {
margin-top: 30px;
}
.cta a {
display: inline-block;
background: #4a9eff;
color: #fff;
text-decoration: none;
padding: 12px 30px;
border-radius: 8px;
font-weight: 500;
transition: background 0.2s;
}
.cta a:hover {
background: #3a8eef;
}
.footer {
margin-top: 40px;
font-size: 0.85rem;
color: #666;
}
.footer a {
color: #4a9eff;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">&#9000;</div>
<h1>MacroPad Relay</h1>
<p class="tagline">Secure remote access to your MacroPad</p>
<div class="card">
<h2>What is this?</h2>
<p>
MacroPad Relay enables secure remote access to your MacroPad desktop application
from anywhere. Control your macros from your phone or tablet over HTTPS,
even when you're away from your local network.
</p>
</div>
<div class="card features">
<div class="feature">
<span class="feature-icon">&#128274;</span>
<div class="feature-text">
<h3>Secure Connection</h3>
<p>Password-protected sessions with encrypted WebSocket communication.</p>
</div>
</div>
<div class="feature">
<span class="feature-icon">&#127760;</span>
<div class="feature-text">
<h3>Access Anywhere</h3>
<p>Use your macros from any device with a web browser.</p>
</div>
</div>
<div class="feature">
<span class="feature-icon">&#9889;</span>
<div class="feature-text">
<h3>Real-time Sync</h3>
<p>Changes sync instantly between your desktop and mobile devices.</p>
</div>
</div>
</div>
<div class="cta">
<a href="https://repo.anhonesthost.net/MacroPad/MP-Server" target="_blank">Learn More</a>
</div>
<p class="footer">
Part of the <a href="https://repo.anhonesthost.net/MacroPad/MP-Server" target="_blank">MacroPad</a> project
</p>
</div>
</body>
</html>