Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@
<meta name="color-scheme" content="only dark">
<title>Retrolemetry — A retro console for your Mac</title>
<link rel="icon" href="assets/app-icon.png">
<link rel="stylesheet" href="styles.css">
<script src="site.js" defer></script>
<script>
try {
if (localStorage.getItem("retrolemetry.siteTheme") === "phosphor") document.documentElement.dataset.theme = "phosphor";
} catch (_) {}
</script>
<link rel="stylesheet" href="styles.css?v=phosphor-1">
<script src="site.js?v=phosphor-1" defer></script>
</head>
<body>
<svg class="theme-filters" aria-hidden="true" width="0" height="0" xmlns="http://www.w3.org/2000/svg"><defs><filter id="phosphor-preview" color-interpolation-filters="sRGB"><feColorMatrix type="matrix" values=".17 .221 .068 0 0 .5 .65 .2 0 0 .215 .2795 .086 0 0 0 0 0 1 0"/></filter></defs></svg>
<a class="skip-link" href="#main">Skip to content</a>
<div class="page">
<header>
<a class="brand" href="./" aria-label="Retrolemetry home"><img src="assets/app-icon.png" alt="" width="52" height="52"><span>Retrolemetry</span></a>
<nav aria-label="Main navigation"><a href="https://ko-fi.com/samspring" target="_blank" rel="noopener noreferrer">Support on Ko-fi</a></nav>
<nav aria-label="Main navigation"><button class="theme-toggle" id="theme-toggle" type="button" hidden><span class="theme-dot" aria-hidden="true"></span><span id="theme-label">Phosphor Green</span></button><a href="https://ko-fi.com/samspring" target="_blank" rel="noopener noreferrer">Support on Ko-fi</a></nav>
</header>
<main id="main">
<section class="hero" aria-labelledby="headline">
Expand All @@ -27,11 +33,11 @@ <h1 id="headline">Your tiny screen,<br>alive.</h1>
<p class="requirements">macOS 14+ · Apple silicon &amp; Intel · Free &amp; open source</p>
<p id="release-status" class="release-status" tabindex="-1" role="status">The first public download is in preparation. Source builds are available on GitHub.</p>
</div>
<figure class="hero-screen"><img src="assets/live-system-metrics.png" alt="Retrolemetry showing CPU, memory, disk, uptime, load and network readings in cyan and magenta." width="960" height="540"><figcaption>Live System Metrics</figcaption></figure>
<figure class="hero-screen"><img class="app-preview" src="assets/live-system-metrics.png" data-alt="Retrolemetry showing CPU, memory, disk, uptime, load and network readings" alt="Retrolemetry showing CPU, memory, disk, uptime, load and network readings in cyan and magenta." width="960" height="540"><figcaption>Live System Metrics</figcaption></figure>
</section>
<section class="gallery" aria-label="Retrolemetry views">
<figure><img src="assets/weather-radar.png" alt="Regional weather forecast map with radar rings and weather readings." width="960" height="540"><figcaption>Regional weather and forecast maps</figcaption></figure>
<figure><img src="assets/signal-analysis.png" alt="Signal analysis view with animated vector grid and live telemetry traces." width="960" height="540"><figcaption>GPU-driven signal analysis</figcaption></figure>
<figure><img class="app-preview" src="assets/weather-radar.png" data-alt="Regional weather forecast map with radar rings and weather readings" alt="Regional weather forecast map with radar rings and weather readings in cyan and magenta." width="960" height="540"><figcaption>Regional weather and forecast maps</figcaption></figure>
<figure><img class="app-preview" src="assets/signal-analysis.png" data-alt="Signal analysis view with animated vector grid and live telemetry traces" alt="Signal analysis view with animated vector grid and live telemetry traces in cyan and magenta." width="960" height="540"><figcaption>GPU-driven signal analysis</figcaption></figure>
</section>
<section class="features" aria-label="Retrolemetry features">
<div><h2>Real readings</h2><p>CPU, memory, disk, network, GPU counters, uptime and optional battery flow—shown locally without analytics.</p></div>
Expand Down
22 changes: 22 additions & 0 deletions site/site.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
"use strict";
const themeToggle = document.querySelector("#theme-toggle");
const themeLabel = document.querySelector("#theme-label");
function applyTheme(theme) {
const isPhosphor = theme === "phosphor";
document.documentElement.dataset.theme = isPhosphor ? "phosphor" : "synthwave";
themeLabel.textContent = isPhosphor ? "Synthwave" : "Phosphor Green";
themeToggle.setAttribute("aria-label", `Switch to ${themeLabel.textContent} theme`);
document.querySelector('meta[name="theme-color"]').content = isPhosphor ? "#020a04" : "#020707";
for (const image of document.querySelectorAll(".app-preview")) {
image.alt = `${image.dataset.alt} in ${isPhosphor ? "phosphor green" : "cyan and magenta"}.`;
}
}
if (themeToggle && themeLabel) {
applyTheme(document.documentElement.dataset.theme);
themeToggle.hidden = false;
themeToggle.addEventListener("click", () => {
const theme = document.documentElement.dataset.theme === "phosphor" ? "synthwave" : "phosphor";
applyTheme(theme);
try { localStorage.setItem("retrolemetry.siteTheme", theme); } catch (_) {}
});
}

const statusLine = document.querySelector("#release-status");
const download = document.querySelector("#download");
fetch("release.json").then(response => {
Expand Down
17 changes: 17 additions & 0 deletions site/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading