Add mobile navigation and release updates

This commit is contained in:
Moepchi committed 2026-08-22 23:35:59 +02:00
1 parent bdfc0bcc10
commit b0eda9a22c
3 files changed
+43 -9

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 379 KiB

+11
View File
@@ -114,3 +114,14 @@ body{overflow-x:hidden}.landing{overflow:visible}.is-visible .community-grid>a:h
/* Keep the floating header clean and fit the expanded section navigation. */
.landing{background-image:linear-gradient(90deg,#ffffff05 1px,transparent 1px)}.nav nav{gap:19px}.nav nav a{font-size:12px;white-space:nowrap}
@media(max-width:1080px){.nav nav{gap:12px}.nav nav a{font-size:11px}.nav{padding-inline:13px}.nav .brand{font-size:19px}.nav-actions{gap:6px}.nav-github{padding-inline:10px}}
/* Compact mobile navigation */
.menu-toggle,.mobile-nav{display:none}.menu-toggle{position:relative;width:38px;height:38px;padding:0;border:1px solid #ffffff19;border-radius:9px;background:#08141c;color:#dcecf3;cursor:pointer}.menu-toggle i{position:absolute;left:10px;width:16px;height:1px;border-radius:2px;background:currentColor;transition:transform .25s ease,top .25s ease,opacity .2s ease}.menu-toggle i:nth-child(1){top:12px}.menu-toggle i:nth-child(2){top:18px}.menu-toggle i:nth-child(3){top:24px}.menu-toggle.active i:nth-child(1){top:18px;transform:rotate(45deg)}.menu-toggle.active i:nth-child(2){opacity:0}.menu-toggle.active i:nth-child(3){top:18px;transform:rotate(-45deg)}
@media(max-width:900px){.menu-toggle{display:block}.nav{isolation:isolate}.mobile-nav{position:absolute;z-index:-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;left:0;right:0;top:calc(100% - 6px);padding:20px 14px 14px;border:1px solid #ffffff17;border-top:0;border-radius:0 0 14px 14px;background:#07131bf2;box-shadow:0 25px 50px #0008;backdrop-filter:blur(20px);opacity:0;visibility:hidden;transform:translateY(-12px) scale(.985);transform-origin:top;transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .24s}.mobile-nav.open{opacity:1;visibility:visible;transform:none}.mobile-nav a{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 13px;border:1px solid transparent;border-radius:9px;color:#8ba1ac;text-decoration:none;font-size:13px;background:#ffffff03;transition:color .2s ease,border-color .2s ease,background .2s ease}.mobile-nav a span{color:#34cef6;font:700 9px Inter,sans-serif}.mobile-nav a:hover,.mobile-nav a.active{color:#e5f3f8;border-color:#36d1f72c;background:#28c8f50a}.mobile-nav .mobile-client{grid-column:1/-1;justify-content:center;margin-top:3px;color:#04141b;background:#25c7f3;font-weight:800}.mobile-nav .mobile-client:hover{color:#04141b;background:#61d7fa}.mobile-client b{margin-left:auto}}
@media(max-width:600px){.nav-github{display:none}.mobile-nav{grid-template-columns:1fr}.mobile-nav .mobile-client{grid-column:auto}.menu-toggle{width:36px;height:36px}}
/* GitHub release timeline */
.releases{border-bottom:1px solid #ffffff0d}.release-list{display:grid;gap:10px}.release-list>a,.release-empty{display:grid;grid-template-columns:145px minmax(0,1fr) 28px;gap:25px;align-items:center;min-height:126px;padding:22px 25px;color:inherit;text-decoration:none;background:linear-gradient(110deg,#0a161e,#08131b);border:1px solid #ffffff10;border-radius:13px;transition:transform .25s ease,border-color .25s ease,background .25s ease}.release-list>a:hover,.release-empty:hover{transform:translateX(5px);border-color:#38d3f83c;background:linear-gradient(110deg,#0c1d27,#091720)}.release-meta{display:flex;flex-direction:column;gap:13px;padding-right:22px;border-right:1px solid #ffffff0d}.release-meta span{align-self:flex-start;padding:5px 8px;border-radius:99px;color:#42d8fa;background:#27caf312;font:800 9px Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em}.release-meta time{color:#637b87;font-size:10px}.release-list>a>div:nth-child(2){min-width:0}.release-list small{display:block;margin-bottom:7px;color:#36cef5;font:700 10px Inter,sans-serif}.release-list strong{display:block;color:#dceaf0;font-size:16px}.release-list p,.release-empty p{max-width:760px;margin:8px 0 0;color:#738a95;font-size:12px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.release-list>a>b,.release-empty>b{color:#42d5f8;font-size:17px;transition:transform .2s ease}.release-list>a:hover>b,.release-empty:hover>b{transform:translate(3px,-3px)}.release-empty{grid-template-columns:50px 1fr 28px}.release-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:#3bd3f8;background:#25c8f111;border:1px solid #36d1f72b}.release-empty strong{font-size:16px}.release-all{display:inline-block;margin-top:23px;color:#67dcfb}
.release-list>a{opacity:0;transform:translateY(18px)}.is-visible .release-list>a{animation:release-in .55s cubic-bezier(.2,.8,.2,1) both}.is-visible .release-list>a:nth-child(2){animation-delay:90ms}.is-visible .release-list>a:nth-child(3){animation-delay:180ms}@keyframes release-in{to{opacity:1;transform:none}}
@media(max-width:700px){.release-list>a,.release-empty{grid-template-columns:1fr 24px;gap:14px;padding:19px}.release-meta{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:0 0 12px;border-right:0;border-bottom:1px solid #ffffff0d}.release-list p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.release-empty>span{display:none}}
@media(prefers-reduced-motion:reduce){.menu-toggle i,.mobile-nav,.release-list>a,.release-empty,.release-list>a>b,.release-empty>b{animation:none!important;transition:none}.release-list>a{opacity:1;transform:none}}
+32 -9
View File
@@ -25,7 +25,7 @@ const copy = {
architectureKicker: "UNTER DER HAUBE", architectureTitle: "Vom Tab zu jedem Server.", architectureText: "Dein selbst gehostetes Gateway übersetzt WebSocket-Nachrichten in das echte TeamSpeak-Protokoll und verbindet dich mit dem gewünschten Server.",
screenKicker: "FÜR JEDEN BILDSCHIRM", screenTitle: ["Desktop-Komfort.", "Mobile Freiheit."], screenText: "Dark oder Light, großer Monitor oder Smartphone: WebSpeak3 passt sich an, ohne Kernfunktionen zu verstecken.",
statusKicker: "OFFEN ENTWICKELT", statusTitle: "Beta, aber schon ziemlich gesprächig.", statusText: "WebSpeak3 ist ein aktiver Prototyp. Diese Übersicht zeigt transparent, was heute bereits funktioniert und wo noch Feinschliff folgt.", statusLabels: ["Verfügbar", "In Arbeit", "Als Nächstes"], statusCards: [["Voice, Chat & Channel Tree", "Echte TS3/TS6-Verbindungen, Opus-Audio, Whisper, Chats und Live-Status."], ["Browser-Kompatibilität", "Audioausgabe und Mikrofonverhalten werden für weitere Browser und Geräte verfeinert."], ["Mehr Komfort", "Weitere Desktop-Client-Details, stabilere Randfälle und Community-Feedback."]], roadmap: "Roadmap und Issues ansehen",
githubKicker: "LIVE VON GITHUB", githubTitle: "Offen entwickelt. Öffentlich nachvollziehbar.", githubText: "Aktuelle Projektdaten direkt aus dem öffentlichen Repository.", githubLabels: ["GitHub Stars", "Aktueller Release", "Zuletzt aktualisiert"], githubFallback: "Beta",
githubKicker: "LIVE VON GITHUB", githubTitle: "Offen entwickelt. Öffentlich nachvollziehbar.", githubText: "Aktuelle Projektdaten direkt aus dem öffentlichen Repository.", githubLabels: ["GitHub Stars", "Aktueller Release", "Zuletzt aktualisiert"], githubFallback: "Beta", releaseKicker: "WAS NEU IST", releaseTitle: "Die letzten Updates.", releaseText: "Releases und Änderungen direkt aus GitHub – automatisch aktuell.", releaseAction: "Alle Releases", releaseEmpty: "Noch keine veröffentlichten Release-Notizen. Die aktuelle Entwicklung kannst du auf GitHub verfolgen.", releaseFallback: "Aktuelle Entwicklung",
tourKicker: "LIVE ERKUNDEN", tourTitle: "Der Client, erklärt im Kontext.", tourText: "Wähle einen Bereich und sieh direkt, wo die wichtigsten Funktionen im WebSpeak3-Client sitzen.", tourItems: [["tree", "Channel Tree", "Channels, Nutzer und Status wechseln in Echtzeit."], ["chat", "Chat & Events", "Server-, Channel- und Direktnachrichten bleiben übersichtlich getrennt."], ["voice", "Voice Controls", "Mikrofon, Lautsprecher, Aktivierung und Pegel immer griffbereit."], ["whisper", "Whisper", "Gezielt einzelne Nutzer oder komplette Channels ansprechen."]],
installKicker: "IN MINUTEN STARTKLAR", installTitle: "Dein WebSpeak3. Jeder Server.", installText: "Hoste den Browser-Client selbst und verbinde dich anschließend mit jedem erreichbaren TeamSpeak-Server.", installSteps: [["01", "WebSpeak3 starten", "Passende Installationsart auswählen."], ["02", "Browser öffnen", "WebSpeak3 lokal oder über deine Domain aufrufen."], ["03", "Server frei wählen", "Beliebige TS-Adresse und deinen Nickname eingeben – fertig."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Entwicklung"], installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", copied: "Kopiert!",
browserKicker: "BROWSER-CHECK", browserTitle: "Bereit für deinen Browser.", browserText: "WebSpeak3 nutzt moderne Web-Audio-APIs. Die Kernfunktionen laufen browserübergreifend; einzelne Gerätefunktionen können abweichen.", browserRows: [["Edge", "Voll unterstützt", "Empfohlen unter Windows"], ["Chrome / Chromium", "Voll unterstützt", "Desktop und Android"], ["Firefox", "Unterstützt", "Audioausgabe kann je nach System abweichen"], ["Safari", "Experimentell", "Web-Audio-Verhalten wird weiter verfeinert"]],
@@ -43,7 +43,7 @@ const copy = {
architectureKicker: "UNDER THE HOOD", architectureTitle: "From your tab to any server.", architectureText: "Your self-hosted gateway translates WebSocket messages into the real TeamSpeak protocol and connects you to the server you choose.",
screenKicker: "FOR EVERY SCREEN", screenTitle: ["Desktop comfort.", "Mobile freedom."], screenText: "Dark or light, large display or smartphone: WebSpeak3 adapts without hiding core functionality.",
statusKicker: "BUILT IN THE OPEN", statusTitle: "Beta, but already quite talkative.", statusText: "WebSpeak3 is an active prototype. This overview is transparent about what works today and where refinement is still underway.", statusLabels: ["Available", "In progress", "Up next"], statusCards: [["Voice, chat & channel tree", "Real TS3/TS6 connections, Opus audio, whisper, chats and live status."], ["Browser compatibility", "Audio output and microphone behavior are being refined across more browsers and devices."], ["More polish", "More desktop-client details, resilient edge cases and community feedback."]], roadmap: "View roadmap and issues",
githubKicker: "LIVE FROM GITHUB", githubTitle: "Built in the open. Publicly traceable.", githubText: "Current project data directly from the public repository.", githubLabels: ["GitHub stars", "Current release", "Last updated"], githubFallback: "Beta",
githubKicker: "LIVE FROM GITHUB", githubTitle: "Built in the open. Publicly traceable.", githubText: "Current project data directly from the public repository.", githubLabels: ["GitHub stars", "Current release", "Last updated"], githubFallback: "Beta", releaseKicker: "WHAT'S NEW", releaseTitle: "The latest updates.", releaseText: "Releases and changes straight from GitHub — always current.", releaseAction: "All releases", releaseEmpty: "No published release notes yet. Follow the current development on GitHub.", releaseFallback: "Current development",
tourKicker: "EXPLORE IT LIVE", tourTitle: "The client, explained in context.", tourText: "Choose an area to see exactly where WebSpeak3 keeps its most important features.", tourItems: [["tree", "Channel tree", "Channels, users and status update in real time."], ["chat", "Chat & events", "Server, channel and direct messages stay clearly separated."], ["voice", "Voice controls", "Microphone, speakers, activation and levels remain within reach."], ["whisper", "Whisper", "Talk directly to individual users or complete channels."]],
installKicker: "READY IN MINUTES", installTitle: "Your WebSpeak3. Any server.", installText: "Self-host the browser client, then connect to any reachable TeamSpeak server.", installSteps: [["01", "Start WebSpeak3", "Choose the installation method that fits."], ["02", "Open your browser", "Visit WebSpeak3 locally or through your domain."], ["03", "Choose any server", "Enter any TS address and your nickname — done."]], installTabs: ["Docker Run", "Docker Compose", "Reverse Proxy", "Development"], installGuide: "Installation guide", copyCommand: "Copy command", copied: "Copied!",
browserKicker: "BROWSER CHECK", browserTitle: "Ready for your browser.", browserText: "WebSpeak3 uses modern Web Audio APIs. Core features work across browsers; individual device features may vary.", browserRows: [["Edge", "Fully supported", "Recommended on Windows"], ["Chrome / Chromium", "Fully supported", "Desktop and Android"], ["Firefox", "Supported", "Audio output may vary by system"], ["Safari", "Experimental", "Web Audio behavior is still being refined"]],
@@ -74,6 +74,7 @@ const installCommands = [
] as const;
type GitHubStats = { stars: number | null; release: string | null; updated: string | null };
type GitHubRelease = { id: number; tag: string; title: string; body: string; date: string; url: string };
function Landing() {
const [lang, setLang] = useState<Lang>(() => {
@@ -87,7 +88,9 @@ function Landing() {
const [phoneStyle] = useState<PhoneStyle>(detectPhoneStyle);
const [installMethod, setInstallMethod] = useState(0);
const [activeNav, setActiveNav] = useState("");
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [githubStats, setGithubStats] = useState<GitHubStats>({ stars: null, release: null, updated: null });
const [releases, setReleases] = useState<GitHubRelease[]>([]);
const copyInstallCommand = () => {
navigator.clipboard?.writeText(installCommands[installMethod]);
@@ -107,15 +110,32 @@ function Landing() {
const controller = new AbortController();
Promise.all([
fetch("https://api.github.com/repos/Moepchi/webspeak3", { signal: controller.signal }).then(response => response.ok ? response.json() : null),
fetch("https://api.github.com/repos/Moepchi/webspeak3/releases/latest", { signal: controller.signal }).then(response => response.ok ? response.json() : null),
]).then(([repo, release]) => setGithubStats({
stars: typeof repo?.stargazers_count === "number" ? repo.stargazers_count : null,
release: typeof release?.tag_name === "string" ? release.tag_name : null,
updated: typeof repo?.pushed_at === "string" ? repo.pushed_at : null,
})).catch(() => undefined);
fetch("https://api.github.com/repos/Moepchi/webspeak3/releases?per_page=3", { signal: controller.signal }).then(response => response.ok ? response.json() : []),
]).then(([repo, releaseData]) => {
const items = Array.isArray(releaseData) ? releaseData : [];
setGithubStats({
stars: typeof repo?.stargazers_count === "number" ? repo.stargazers_count : null,
release: typeof items[0]?.tag_name === "string" ? items[0].tag_name : null,
updated: typeof repo?.pushed_at === "string" ? repo.pushed_at : null,
});
setReleases(items.map((release: any) => ({
id: Number(release.id),
tag: String(release.tag_name ?? "Beta"),
title: String(release.name || release.tag_name || "WebSpeak3"),
body: String(release.body || "").replace(/[#>*_`[\]]/g, "").replace(/\r?\n+/g, " ").trim(),
date: String(release.published_at || release.created_at || ""),
url: String(release.html_url || `${github}/releases`),
})));
}).catch(() => undefined);
return () => controller.abort();
}, []);
useEffect(() => {
const closeOnEscape = (event: KeyboardEvent) => event.key === "Escape" && setMobileMenuOpen(false);
window.addEventListener("keydown", closeOnEscape);
return () => window.removeEventListener("keydown", closeOnEscape);
}, []);
useEffect(() => {
const elements = document.querySelectorAll<HTMLElement>(".reveal");
const observer = new IntersectionObserver(
@@ -157,7 +177,8 @@ function Landing() {
<header className="nav shell">
<a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a>
<nav aria-label={lang === "de" ? "Hauptnavigation" : "Main navigation"}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => setActiveNav(id)}>{t.nav[index]}</a>)}</nav>
<div className="nav-actions"><div className="language-switch" role="group" aria-label={lang === "de" ? "Sprache wählen" : "Choose language"}><button className={lang === "de" ? "active" : ""} onClick={() => setLang("de")} aria-pressed={lang === "de"}>DE</button><button className={lang === "en" ? "active" : ""} onClick={() => setLang("en")} aria-pressed={lang === "en"}>EN</button></div><a className="nav-github" href={github} target="_blank" rel="noreferrer">GitHub <span>↗</span></a></div>
<div className="nav-actions"><div className="language-switch" role="group" aria-label={lang === "de" ? "Sprache wählen" : "Choose language"}><button className={lang === "de" ? "active" : ""} onClick={() => { setLang("de"); setMobileMenuOpen(false); }} aria-pressed={lang === "de"}>DE</button><button className={lang === "en" ? "active" : ""} onClick={() => { setLang("en"); setMobileMenuOpen(false); }} aria-pressed={lang === "en"}>EN</button></div><a className="nav-github" href={github} target="_blank" rel="noreferrer">GitHub <span>↗</span></a><button className={`menu-toggle ${mobileMenuOpen ? "active" : ""}`} type="button" aria-label={lang === "de" ? "Navigation öffnen" : "Open navigation"} aria-expanded={mobileMenuOpen} aria-controls="mobile-navigation" onClick={() => setMobileMenuOpen(open => !open)}><i></i><i></i><i></i></button></div>
<div className={`mobile-nav ${mobileMenuOpen ? "open" : ""}`} id="mobile-navigation" aria-hidden={!mobileMenuOpen}>{["features", "status", "architecture", "tour", "install", "community"].map((id, index) => <a key={id} className={activeNav === id ? "active" : ""} href={`#${id}`} onClick={() => { setActiveNav(id); setMobileMenuOpen(false); }}><span>0{index + 1}</span>{t.nav[index]}</a>)}<a className="mobile-client" href={client}>{t.client}<b>→</b></a></div>
</header>
<main id="top">
@@ -193,6 +214,8 @@ function Landing() {
<section className="github-live reveal"><div className="shell github-inner"><div className="github-copy"><span className="kicker">{t.githubKicker}</span><h2>{t.githubTitle}</h2><p>{t.githubText}</p><a className="text-link" href={github} target="_blank" rel="noreferrer">github.com/Moepchi/webspeak3 ↗</a></div><div className="github-metrics"><article><span>★</span><strong>{githubStats.stars === null ? "—" : githubStats.stars.toLocaleString(lang === "de" ? "de-DE" : "en-US")}</strong><small>{t.githubLabels[0]}</small></article><article><span>↗</span><strong>{githubStats.release ?? t.githubFallback}</strong><small>{t.githubLabels[1]}</small></article><article><span>↻</span><strong>{githubStats.updated ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(githubStats.updated)) : "—"}</strong><small>{t.githubLabels[2]}</small></article></div></div></section>
<section className="section shell releases reveal"><div className="section-head"><div><span className="kicker">{t.releaseKicker}</span><h2>{t.releaseTitle}</h2></div><p>{t.releaseText}</p></div>{releases.length > 0 ? <div className="release-list">{releases.map((release, index) => <a href={release.url} target="_blank" rel="noreferrer" key={release.id}><div className="release-meta"><span>{index === 0 ? "Latest" : `0${index + 1}`}</span><time dateTime={release.date}>{release.date ? new Intl.DateTimeFormat(lang === "de" ? "de-DE" : "en-US", { day: "2-digit", month: "short", year: "numeric" }).format(new Date(release.date)) : "GitHub"}</time></div><div><small>{release.tag}</small><strong>{release.title}</strong><p>{release.body || t.releaseFallback}</p></div><b>↗</b></a>)}</div> : <a className="release-empty" href={`${github}/commits/main`} target="_blank" rel="noreferrer"><span>↻</span><div><strong>{t.releaseFallback}</strong><p>{t.releaseEmpty}</p></div><b>↗</b></a>}<a className="text-link release-all" href={`${github}/releases`} target="_blank" rel="noreferrer">{t.releaseAction} <span>↗</span></a></section>
<section className="section shell architecture reveal" id="architecture"><div className="section-head centered"><div><span className="kicker">{t.architectureKicker}</span><h2>{t.architectureTitle}</h2></div><p>{t.architectureText}</p></div><div className="flow">{[["Browser","React + Web Audio"],["Gateway","WebSocket · Node.js"],["Rust Connector","tsclientlib + Opus"],["TeamSpeak Server","TS3 / TS6 Protocol"]].map((x,i)=><div className="flow-wrap" style={{"--delay": `${i * 120}ms`} as React.CSSProperties} key={x[0]}><div className="flow-node"><span>0{i+1}</span><strong>{x[0]}</strong><small>{x[1]}</small></div>{i<3&&<div className="flow-arrow" aria-hidden="true"><i></i></div>}</div>)}</div></section>
<section className="section shell showcase reveal"><div className="showcase-copy"><span className="kicker">{t.screenKicker}</span><h2>{t.screenTitle[0]}<br/>{t.screenTitle[1]}</h2><p>{t.screenText}</p><div className="theme-pills"><span>☾ Dark Mode</span><span>☀ Light Mode</span><span>⌁ Responsive</span></div></div><div className="screens"><img className="screen-desktop" src="../screenshots/webspeak_current.png" alt="WebSpeak3 Desktop Client"/><div className={`phone-frame phone-${phoneStyle}`} data-device-frame={phoneStyle}><i className="phone-button phone-button-left" aria-hidden="true"></i><i className="phone-button phone-button-right" aria-hidden="true"></i><div className="phone-sensor" aria-hidden="true"><span></span><b></b></div><img src="../screenshots/webspeak_mobile.png" alt="WebSpeak3 Mobile Client"/><div className="phone-home" aria-hidden="true"></div></div></div></section>