Compare commits

..
Author SHA1 Message Date
MoepchiandClaude Sonnet 5 563bca2a4b feat: add Simplified Chinese (zh-CN) locale, harden runtime image
zh-CN i18n adapted from MIKU-N's fork (github.com/MIKU-N/webspeak3):
new web/src/locales/zh-CN.ts, wired into i18n.tsx's Lang type, system
language detection, language preference persistence, the app.language
option list, and a new document.documentElement.lang sync effect.
App.tsx's language dropdown and the README feature table updated to
match. Missing keys naturally fall back to English via the existing
translations[lang][key] ?? translations.en[key] ?? key chain.

Also adapted from the same fork: the runtime stage's Dockerfile now
strips npm/npx (and npm's cache/package tree) after installing the
gateway's production deps, since nothing in the running container
invokes either afterwards - shrinks the image and drops npm's own CVEs
from the final attack surface. Adds a HEALTHCHECK that curls the
gateway's own port via Node's fetch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 18:50:01 +02:00
MoepchiandClaude Sonnet 5 b14292a95d ci: build and push Docker image on release
Adds a GitHub Actions workflow (docker-publish.yml) that builds the
webspeak3 image and pushes it to Docker Hub as moepchi/webspeak3:latest
plus a matching version tag whenever a GitHub Release is published (or
manually via workflow_dispatch). Uses GHA layer caching so the Rust
connector build doesn't redo work on every release.

Also hardens the Dockerfile's web-builder stage against a long-standing
npm bug (npm/cli#4828) where `npm ci` intermittently fails to install
Vite 8's platform-specific Rolldown binding without a non-zero exit
code, surfacing later as a confusing vite build MODULE_NOT_FOUND. Now
verified and self-healed (rm + npm install) before the real build runs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 16:55:22 +02:00
MoepchiandClaude Sonnet 5 a6e2130d29 docs: fix broken README preview images
The desktop/mobile screenshots linked to raw.githubusercontent.com on
the private webspeak3-landing repo, which 404s for anyone without
access. Copy both images into docs/screenshots/ in this repo and
reference them with relative paths instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 04:46:19 +02:00
Moepchi f490ca5776 Add auto gain control toggle for echo cancellation tuning (#2)
Exposes autoGainControl as its own Options -> Aufnahme toggle (was
implicitly left to the browser default) and requests the pipeline's own
48kHz sample rate explicitly, so the mic doesn't need an extra internal
resample before the browser's own AEC runs. Both are standard
getUserMedia constraints, honored the same way by Chromium and Firefox
(unlike vendor-prefixed googEchoCancellation-style flags, which only
affect Chromium).

Helps speaker+mic (no headset) setups where AGC re-amplifying the mic
signal after AEC can bring back audible echo residue - see #2.
2026-08-29 04:29:04 +02:00
Moepchi 24f070ce67 Untrack .serena/
Local Serena project config/memory files, not part of the repo's source.
2026-08-29 04:06:42 +02:00
Moepchi 8c954f9540 Add user-created custom design themes
Lets users build their own theme packages from Options > Design: pick a
structural base (Standard or Nova), write free-form CSS, and save/select
it locally. Supports duplicate, export/import (JSON), and delete.

Custom CSS is injected via a dedicated <style> tag while the theme is
active. Fixes the built-in theme variable rules (.ts-app,
.ts-app.ts-theme-dark, .ts-app.ts-design-nova) so a plain .ts-app { ... }
override in custom CSS always wins, by wrapping them in :where() to
strip their specificity - previously the compound selectors always beat
a same-specificity custom rule regardless of injection order.

Standard/Nova behavior is unchanged when no custom theme is selected.
2026-08-29 04:05:18 +02:00
Moepchi 3ad086aedd Add Nova design theme: redesigned menu bar, connect splash screen
- Restyle classic top menu bar into pill-chip items merged into the
  same row as the WebSpeak3 logo/server/status cluster, collapsed
  behind a hamburger button with an outside-click/Escape-aware
  dropdown panel (nested submenus flip to open leftward to avoid
  clipping at the viewport edge).
- Make the Connect dialog the sole visible surface while
  disconnected in Nova: it auto-opens on load and after every
  disconnect, and the app chrome (menu/toolbar/body/log) is hidden
  behind it until a connection succeeds.
- Rebuild the Connect dialog for Nova to match the TS6 Redesign
  mockup's dedicated Connect screen: centered hero (logo/title/
  subtitle) above an elevated card, a chevron-toggle "Erweiterte
  Optionen" moved under the nickname field, reordered ghost/primary
  footer buttons, and a fixed settings-gear shortcut into Options.
  The 11 existing form fields/handlers are shared with the Standard
  dialog via one JSX tree, decorated only through small nova ternaries.
- Nova starts with an empty server-address field instead of the
  Standard theme's "localhost" default.
- All changes scoped under .ts-app.ts-design-nova (or nested
  classes); Standard theme verified pixel- and behavior-identical
  throughout via repeated live comparisons.
2026-08-29 03:15:06 +02:00
MoepchiandClaude Sonnet 5 8e78ae98c9 Remove non-functional myTeamSpeak ID feature
Both checkboxes were disabled stubs; the underlying protocol field is
hardcoded to None in tsclientlib and not exposed as a settable option,
so the feature can't be implemented. Removed from Connect and
Favorites dialogs plus the now-orphaned i18n keys (DE+EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 22:28:51 +02:00
Moepchi e2c67ef23c Remove landing page from client repository 2026-08-23 10:09:28 +02:00
Moepchi 34fdd04c1c Improve project documentation and beta roadmap 2026-08-23 00:35:16 +02:00
24 changed files with 2167 additions and 717 deletions

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
name: Build and publish Docker image
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docker-publish-${{ github.ref }}
cancel-in-progress: false
jobs:
build-and-push:
name: Build and push moepchi/webspeak3
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@v5
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Determine image tags
id: tags
run: |
TAGS="moepchi/webspeak3:latest"
if [ "${{ github.event_name }}" = "release" ]; then
TAGS="$TAGS,moepchi/webspeak3:${{ github.event.release.tag_name }}"
fi
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.tags.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
+1 -1
View File
@@ -17,7 +17,7 @@ permissions:
contents: read
concurrency:
group: safari-landing-${{ github.ref }}
group: safari-client-${{ github.ref }}
cancel-in-progress: true
jobs:
+1
View File
@@ -9,3 +9,4 @@ dist-ssr/
docker-compose.override.yml
.claude/
CLAUDE.md
.serena/
-2
View File
@@ -1,2 +0,0 @@
/cache
/project.local.yml
-170
View File
@@ -1,170 +0,0 @@
# the name by which the project can be referenced within Serena/when chatting with the LLM.
project_name: "ts-web-client"
# list of language servers to start when using the LSP backend; choose from:
# ada al angular ansible bash
# bsl clojure cpp cpp_ccls crystal
# csharp csharp_omnisharp cue dart deno
# elixir elm erlang fortran fsharp
# gdscript gleam go groovy haskell
# haxe hlsl html java json
# julia kotlin latex lean4 lua
# luau markdown matlab msl nextflow
# nix ocaml pascal perl php
# php_phpactor php_phpantom powershell python python_basedpyright
# python_jedi python_pyrefly python_ty qml r
# rego ruby ruby_solargraph rust scala
# scss solidity svelte swift systemverilog
# terraform toml typescript typescript_vts vue
# wolfram yaml zig
# (This list may be outdated; generated with scripts/print_language_list.py;
# For the current list, see values of the LanguageServerId enum here:
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
# Note:
# - For C, use cpp
# - For JavaScript, use typescript
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
# - For Free Pascal/Lazarus, use pascal
# Special requirements:
# Some language servers require additional setup/installations.
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
# When using multiple language servers, the first language server that supports a given file will be used for that file.
# The first language server is the default language and the respective language server will be used as a fallback.
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
language_servers:
- rust
- typescript
# the encoding used by text files in the project
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
encoding: "utf-8"
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
# the command runs in the project root directory and is only executed if the project is trusted
# (see trusted_project_path_patterns in the global configuration).
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
# example: activation_command: "npx nx run-many -t build"
activation_command:
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
# must be a positive number.
activation_command_timeout: 180.0
# line ending convention to use when writing source files.
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
line_ending:
# The language backend to use for this project.
# If not set, the global setting from serena_config.yml is used.
# Valid values: LSP, JetBrains
# Note: the backend is fixed at startup. If a project with a different backend
# is activated post-init, an error will be returned.
language_backend:
# whether to use project's .gitignore files to ignore files
ignore_all_files_in_gitignore: true
# advanced configuration option allowing to configure language server-specific options.
# Maps the language key to the options.
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
ls_specific_settings: {}
# list of workspace folder paths (LSP backend only).
# These folders will be used to build up Serena's symbol index.
# Paths must be within the project root and should thus be relative to the project root.
# Furthermore, the paths should not be filtered by ignore settings.
# Default setting: The entire project root folder (".") is considered.
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
# ls_workspace_folders:
# - "./subproject1"
# - "./subproject2"
ls_workspace_folders:
- "."
# list of additional workspace folder paths for cross-package reference support.
# Paths can be absolute or relative to the project root.
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
# symbols and references across package boundaries, but these folders are not indexed by Serena,
# i.e. the respective symbols will not be found using Serena's symbol search tools.
# Example:
# additional_workspace_folders:
# - ../sibling-package
# - ../shared-lib
ls_additional_workspace_folders: []
# list of additional paths to ignore in this project.
# Same syntax as gitignore, so you can use * and **.
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
# Example:
# ignored_paths:
# - "examples/**"
# - ".worktrees/**"
# - "**/bin/**"
# - "**/obj/**"
# Note: global ignored_paths from serena_config.yml are also applied additively.
ignored_paths: []
# whether the project is in read-only mode
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
# Added on 2025-04-18
read_only: false
# list of tool names to exclude.
# This extends the existing exclusions (e.g. from the global configuration)
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
excluded_tools: []
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
# This extends the existing inclusions (e.g. from the global configuration).
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
included_optional_tools: []
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
fixed_tools: []
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
# for this project.
# This setting can, in turn, be overridden by CLI parameters (--mode).
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
default_modes:
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
added_modes:
# initial prompt for the project. It will always be given to the LLM upon activating the project
# (contrary to the memories, which are loaded on demand).
initial_prompt: ""
# time budget (seconds) per tool call for the retrieval of additional symbol information
# such as docstrings or parameter information.
# This overrides the corresponding setting in the global configuration; see the documentation there.
# If null or missing, use the setting from the global configuration.
symbol_info_budget:
# list of regex patterns which, when matched, mark a memory entry as read‑only.
# Extends the list from the global configuration, merging the two lists.
read_only_memory_patterns: []
# list of regex patterns for memories to completely ignore.
# Matching memories will not appear in list_memories or activate_project output
# and cannot be accessed via read_memory or write_memory.
# To access ignored memory files, use the read_file tool on the raw file path.
# Extends the list from the global configuration, merging the two lists.
# Example: ["_archive/.*", "_episodes/.*"]
ignored_memory_patterns: []
+21 -1
View File
@@ -13,6 +13,15 @@ FROM node:22-bookworm-slim AS web-builder
WORKDIR /src/web
COPY web/package*.json ./
RUN npm ci
# Vite 8 pulls in Rolldown, which ships its bundler as a platform-specific
# optional dependency (@rolldown/binding-linux-x64-gnu here). `npm ci`
# intermittently fails to install it due to a long-standing npm bug
# (https://github.com/npm/cli/issues/4828) without raising a non-zero exit
# code, so `vite build` only fails later with a confusing MODULE_NOT_FOUND.
# Verify the binding actually loaded and self-heal via the workaround from
# npm's own error message before wasting a full build on a broken install.
RUN node -e "require('@rolldown/binding-linux-x64-gnu')" \
|| (rm -rf node_modules package-lock.json && npm install)
COPY web/ ./
# tsc -b currently fails on pre-existing type errors unrelated to this build;
# vite build alone is enough to produce the production bundle.
@@ -32,7 +41,15 @@ LABEL org.opencontainers.image.title="WebSpeak3"
LABEL org.opencontainers.image.description="Self-hosted web client for TeamSpeak 3 servers"
WORKDIR /app
COPY gateway/package*.json ./
RUN npm ci --omit=dev
# npm/npx are only needed to install the gateway's runtime deps; the
# container never runs either afterwards, so strip them (plus npm's own
# cache/package tree) to shrink the image and drop npm's own CVEs from the
# final attack surface. This does mean `docker exec ... npm ...` won't work
# for ad-hoc debugging in a running container anymore.
RUN npm ci --omit=dev \
&& npm cache clean --force \
&& rm -rf /root/.npm /usr/local/lib/node_modules/npm \
&& rm -f /usr/local/bin/npm /usr/local/bin/npx
COPY --from=gateway-builder /src/gateway/dist ./dist
COPY --from=connector-builder /src/connector/target/release/ts-connector /app/connector-bin/ts-connector
COPY --from=web-builder /src/web/dist /app/web/dist
@@ -42,4 +59,7 @@ ENV WEB_DIST=/app/web/dist
ENV CONNECTOR_BIN=/app/connector-bin/ts-connector
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
CMD ["node", "dist/index.js"]
+37 -7
View File
@@ -9,7 +9,8 @@
<a href="Dockerfile"><img src="https://img.shields.io/badge/docker-build%20passing-2496ED?logo=docker&logoColor=white" alt="Docker Build"></a>
<a href="gateway/package.json"><img src="https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white" alt="Node Version"></a>
<a href="connector/Cargo.toml"><img src="https://img.shields.io/badge/rust-2021-000000?logo=rust&logoColor=white" alt="Rust Version"></a>
<img src="https://img.shields.io/badge/status-beta%20%2F%20prototype-yellow" alt="Project Status">
<a href="https://github.com/Moepchi/webspeak3/releases"><img src="https://img.shields.io/github/v/release/Moepchi/webspeak3?include_prereleases&label=release" alt="Latest Release"></a>
<img src="https://img.shields.io/badge/status-public%20beta-f0b429" alt="Project Status">
</p>
<p align="center">
@@ -20,8 +21,9 @@
<a href="https://webspeak3.de">🌐 Website</a> ·
<a href="https://client.webspeak3.de">💬 Open Client</a> ·
<a href="https://demo.webspeak3.de">🕹️ Live Demo</a> ·
<a href="#-installation">🚀 Quick Start</a> ·
<a href="#-quick-start">🚀 Quick Start</a> ·
<a href="#-installation">📖 Installation</a> ·
<a href="ROADMAP.md">🗺️ Roadmap</a> ·
<a href="https://github.com/Moepchi/webspeak3/issues">🐛 Report Bug</a>
</p>
@@ -33,15 +35,30 @@
<table>
<tr>
<th>Dark Mode</th>
<th>Light Mode</th>
<th>Desktop</th>
<th>Mobile</th>
</tr>
<tr>
<td><img src="docs/screenshots/webspeak_dark.png" width="100%" alt="Dark mode screenshot"></td>
<td><img src="docs/screenshots/webspeak_light.png" width="100%" alt="Light mode screenshot"></td>
<td width="72%"><img src="docs/screenshots/webspeak_current.png" width="100%" alt="WebSpeak3 desktop client connected to a TeamSpeak server"></td>
<td width="28%" align="center"><img src="docs/screenshots/webspeak_mobile.png" width="260" alt="WebSpeak3 mobile client connected to a TeamSpeak server"></td>
</tr>
</table>
## 🚀 Quick Start
Run the ready-made container and open **http://localhost:8080**:
```bash
docker run -d --name webspeak3 --restart unless-stopped -p 8080:8080 moepchi/webspeak3:latest
```
Enter the address and port of **any reachable TeamSpeak 3 or TeamSpeak 6
server** in the connection dialog. The TeamSpeak server does not need to be
installed on the same machine, modified, or operated by you.
> Voice requires a secure context. Microphone access works on `localhost`; for
> access from other devices, place WebSpeak3 behind an HTTPS reverse proxy.
## ✨ Features
| | |
@@ -59,7 +76,7 @@
| 👉 **Poke & away status** | Poke clients with an optional message; set yourself away with presets or a custom status |
| ⭐ **Favorites & reconnect** | Remembers your last server/nickname; switch servers without leaving your tab |
| 📱 **Mobile-friendly layout** | Responsive single-column layout for narrow screens, not just a shrunk desktop UI |
| 🌍 **Localized UI** | Interface available in German and English, detected automatically or switchable in Options |
| 🌍 **Localized UI** | Interface available in German, English, and Simplified Chinese, detected automatically or switchable in Options |
| 🌗 **Dark / light theme** | Clean, modern UI that adapts to your preference |
| 🔁 **Seamless reconnect** | Switch connections mid-session — old state tears down cleanly, no leaks or duplicates |
@@ -100,6 +117,19 @@ Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Ru
</details>
## 🌐 Browser Support
| Browser | Status | Notes |
|---|---|---|
| Chrome / Edge / Chromium | ✅ Primary target | Recommended for the most complete audio and device support |
| Firefox | ✅ Supported | Core client and voice functionality are supported |
| Safari | 🧪 Experimental | Audio and microphone behavior still needs broader real-device testing |
| Mobile Chromium | ✅ Supported | Responsive client with microphone support over HTTPS |
| Mobile Safari | 🧪 Experimental | UI is responsive; audio behavior remains under active validation |
WebSpeak3 is a public beta. See the [beta roadmap](ROADMAP.md) for the current
scope, known limitations, and the next milestones.
## 🚀 Installation
### 🐳 Docker (recommended)
+59
View File
@@ -0,0 +1,59 @@
# WebSpeak3 Beta Roadmap
WebSpeak3 is a public beta: it already connects to real TeamSpeak 3 and
TeamSpeak 6 servers, but some browser-specific behavior and less common server
features still need wider testing.
This roadmap is intentionally outcome-focused. It does not promise fixed dates.
## Available today
- Connect to any reachable TS3 or TS6 server through the WebSpeak3 gateway
- Low-latency Opus voice, voice activation, whisper, and audio-device selection
- Live channel/client tree with status updates and context actions
- Server, channel, and private text chat
- Favorites, identities, contacts, pokes, away state, and reconnect
- File transfers, local session recording, sound packs, and administration tools
- Responsive desktop and mobile interfaces in German and English
- Docker image and Compose-based self-hosting
## Experimental or still being validated
- Safari and Mobile Safari audio/microphone behavior
- Uncommon TeamSpeak permission combinations and large permission sets
- Very large servers and long-running browser sessions
- Mobile browser behavior across a wider range of devices
- Reverse-proxy and hosting configurations beyond the documented examples
## Next milestones
### Beta hardening
- Expand real-browser audio testing, especially Safari
- Improve reconnect and recovery behavior under unstable networks
- Continue accessibility, keyboard-navigation, and mobile usability work
- Turn recurring deployment and compatibility reports into documentation
### Deployment experience
- Keep the one-command Docker path reliable
- Add clearer HTTPS and reverse-proxy examples
- Document backup and upgrade expectations for persistent browser identities
- Improve release notes and migration guidance when configuration changes
### Toward a stable release
- Define and complete a repeatable browser compatibility checklist
- Resolve confirmed high-impact beta issues
- Stabilize configuration and deployment contracts
- Publish a support matrix based on verified devices and browsers
## Feedback
Please use [GitHub Issues](https://github.com/Moepchi/webspeak3/issues) for
reproducible bugs and feature requests. Include the browser and version,
operating system, deployment method, and whether the issue affects voice,
microphone access, or only the interface.
WebSpeak3 is independent and is not affiliated with or endorsed by TeamSpeak
Systems GmbH.
-68
View File
@@ -1,68 +0,0 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#071018" />
<meta name="color-scheme" content="dark" />
<link rel="icon" href="../favicon.ico" />
<link rel="canonical" href="https://webspeak3.de/" />
<title>WebSpeak3 – TeamSpeak 3 im Browser | Open Source</title>
<meta name="description" content="WebSpeak3 bringt TeamSpeak 3 mit Voice, Chat, Channel Tree und Whisper in den Browser. Open Source, mobil und vollständig selbst hostbar per Docker." />
<meta name="keywords" content="TeamSpeak 3 Browser, TS3 Web Client, TeamSpeak Web Client, WebSpeak3, self-hosted voice chat, Docker, Open Source" />
<meta name="author" content="Moepchi" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="googlebot" content="index, follow" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="de_DE" />
<meta property="og:site_name" content="WebSpeak3" />
<meta property="og:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta property="og:description" content="Der moderne, quelloffene und selbst gehostete Browser-Client für TeamSpeak 3 – mit Voice, Chat, Whisper und mobiler Oberfläche." />
<meta property="og:url" content="https://webspeak3.de/" />
<meta property="og:image" content="https://webspeak3.de/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="WebSpeak3 – TeamSpeak 3 direkt im Browser" />
<meta name="twitter:description" content="Open Source, mobil und selbst hostbar: Voice, Chat, Channel Tree und Whisper direkt im Browser." />
<meta name="twitter:image" content="https://webspeak3.de/og-image.png" />
<meta name="twitter:image:alt" content="WebSpeak3 – TeamSpeak 3 im Browser" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "WebSpeak3",
"description": "Ein moderner, quelloffener und selbst gehosteter Browser-Client für TeamSpeak 3 Server.",
"url": "https://webspeak3.de/",
"downloadUrl": "https://github.com/Moepchi/webspeak3",
"softwareHelp": "https://github.com/Moepchi/webspeak3#-installation",
"applicationCategory": "CommunicationApplication",
"applicationSubCategory": "VoiceChatApplication",
"operatingSystem": "Any modern web browser",
"isAccessibleForFree": true,
"license": "https://github.com/Moepchi/webspeak3/blob/main/LICENSE",
"codeRepository": "https://github.com/Moepchi/webspeak3",
"image": "https://webspeak3.de/og-image.png",
"author": {
"@type": "Person",
"name": "Moepchi",
"url": "https://github.com/Moepchi"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR"
}
}
</script>
</head>
<body>
<div id="landing-root"></div>
<script type="module" src="../src/landing.tsx"></script>
</body>
</html>
-4
View File
@@ -1,4 +0,0 @@
/landing/ / 301
/landing / 301
/index.html / 301
/ /landing/index.html 200
-4
View File
@@ -1,4 +0,0 @@
User-agent: *
Allow: /
Sitemap: https://webspeak3.de/sitemap.xml
Binary file not shown.

Before

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 811 KiB

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://webspeak3.de/</loc>
<lastmod>2026-08-11</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
+865 -2
View File
@@ -1,4 +1,11 @@
.ts-app {
/* Wrapped in :where() so these three variable-defining rules carry ZERO
specificity. That's deliberate: a user-authored custom theme (injected
later as a plain `.ts-app { --accent: ... }` rule) has real specificity
and must always win here, regardless of which of these three blocks would
otherwise apply. Every other selector in this file is untouched, so the
normal cascade elsewhere (including .ts-app.ts-design-nova's non-variable
rules further down) still works exactly as before. */
:where(.ts-app) {
--bg: #ffffff;
--bg-toolbar-1: #f5f6f8;
--bg-toolbar-2: #dfe2e6;
@@ -40,7 +47,7 @@
0 0 40px rgba(0, 0, 0, 0.5);
}
.ts-app.ts-theme-dark {
:where(.ts-app.ts-theme-dark) {
--bg: #1e1f22;
--bg-toolbar-1: #2b2d31;
--bg-toolbar-2: #232428;
@@ -64,6 +71,731 @@
color-scheme: dark;
}
/* Nova: alternate design, independent of the light/dark toggle (always dark). */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");
:where(.ts-app.ts-design-nova) {
--success: oklch(0.75 0.15 150);
--bg: oklch(0.17 0.014 258);
--bg-toolbar-1: oklch(0.205 0.015 258);
--bg-toolbar-2: oklch(0.245 0.016 258);
--border: oklch(0.32 0.015 258);
--border-soft: oklch(0.27 0.014 258);
--text: oklch(0.94 0.006 258);
--text-muted: oklch(0.62 0.014 258);
--text-faint: oklch(0.46 0.012 258);
--accent: #7fb0e8;
--input-bg: oklch(0.205 0.015 258);
--input-text: oklch(0.94 0.006 258);
--button-bg-1: oklch(0.245 0.016 258);
--button-bg-2: oklch(0.205 0.015 258);
--button-bg-hover-1: oklch(0.28 0.017 258);
--button-bg-hover-2: oklch(0.245 0.016 258);
--row-hover: oklch(0.28 0.017 258);
--client-text: oklch(0.94 0.006 258);
--self-text: #7fb0e8;
--log-bg: oklch(0.17 0.014 258);
--log-text: oklch(0.62 0.014 258);
--log-error: oklch(0.68 0.16 25);
color-scheme: dark;
font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ts-app.ts-design-nova button,
.ts-app.ts-design-nova select,
.ts-app.ts-design-nova input[type="text"],
.ts-app.ts-design-nova input[type="password"],
.ts-app.ts-design-nova input[type="search"],
.ts-app.ts-design-nova .ts-dialog {
border-radius: 8px;
}
/* Nova structural reskin: beyond palette/font, give panels, rows, tabs and
chat their own rounded "card" language instead of the Standard theme's
flush, hard-edged panes. Standard's layout isn't sacred here - Nova also
reorders the top-level app sections (all flex siblings of .ts-app) so the
mic/volume/output controls read as a bottom "voice control bar" like the
redesign, instead of a top toolbar. */
.ts-app.ts-design-nova > .ts-menubar {
order: 0;
padding: 0.5rem 1.1rem;
gap: 1.1rem;
background: var(--bg-toolbar-1);
border-bottom: 1px solid var(--border-soft);
justify-content: space-between;
}
.ts-app.ts-design-nova > .ts-menubar .ts-nova-menu-dropdown {
order: 1;
}
/* Nova-theme-only: collapses Verbindungen/Favoriten/.../Hilfe behind a single
hamburger button, opening them as a dropdown panel instead of a bare row. */
.ts-nova-menu-dropdown {
position: relative;
display: flex;
align-items: center;
}
.ts-nova-menu-toggle {
font-size: 15px;
padding: 0.3rem 0.55rem;
}
.ts-menubar-items.ts-nova-menu-panel {
display: none;
}
.ts-menubar-items.ts-nova-menu-panel.ts-nova-menu-panel-open {
display: flex;
flex-direction: column;
align-items: stretch;
position: absolute;
top: 100%;
right: 0;
margin-top: 6px;
gap: 2px;
padding: 6px;
background: var(--bg-toolbar-1);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
z-index: 30;
}
.ts-menubar-items.ts-nova-menu-panel-open .ts-menubar-dropdown {
width: 100%;
}
/* The panel itself docks flush against the right viewport edge, so its nested
submenus must open leftward instead of the default rightward - opening right
here would run straight off-screen. */
.ts-menubar-items.ts-nova-menu-panel-open .ts-menu {
left: auto;
right: 100%;
top: -6px;
margin-right: 4px;
}
.ts-menubar-items.ts-nova-menu-panel-open .ts-menubar-item,
.ts-menubar-items.ts-nova-menu-panel-open .ts-menubar-item-active {
display: block;
width: 100%;
border-radius: 6px;
}
/* Nova splash: while disconnected, the connect dialog IS the app - the whole
chrome (menu, toolbar, tree/chat/log) stays mounted but hidden behind it,
and reappears the instant a connection exists (see the useEffect forcing
connectDialogOpen and the ts-nova-splash class in App.tsx). */
.ts-app.ts-design-nova.ts-nova-splash > .ts-menubar,
.ts-app.ts-design-nova.ts-nova-splash > .ts-toolbar,
.ts-app.ts-design-nova.ts-nova-splash > .ts-body,
.ts-app.ts-design-nova.ts-nova-splash > .ts-log {
display: none;
}
.ts-app.ts-design-nova.ts-nova-splash .ts-dialog-backdrop {
background: var(--bg);
}
/* Connect screen, ported from the TS6 redesign's Connect.dc.html: a centered
hero (logo/title/subtitle) above an elevated card, instead of a plain
titled dialog box floating on a dim backdrop. */
.ts-connect-nova-wrap {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 22px;
width: min(520px, 92vw);
}
.ts-connect-nova-hero {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
text-align: center;
}
.ts-connect-nova-logo {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 16px;
background: var(--accent);
color: var(--bg-toolbar-1);
font-weight: 800;
font-size: 26px;
flex-shrink: 0;
}
.ts-connect-nova-title {
font-size: 19px;
font-weight: 800;
}
.ts-connect-nova-subtitle {
font-size: 12.5px;
color: var(--text-muted);
margin-top: 4px;
}
.ts-app.ts-design-nova .ts-connect-dialog {
width: auto;
background: var(--button-bg-1);
border-color: var(--border-soft);
border-radius: 18px;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
position: relative;
}
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-body {
padding: 22px;
gap: 16px;
}
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-field {
font-size: 12px;
font-weight: 700;
color: var(--text-muted);
gap: 6px;
/* Flex items default to min-width:auto, i.e. their content's intrinsic width -
for an <input> that's the browser's default control size, which is wider than
the space left in a two-up .ts-dialog-row once padding grows this much. Without
this the password/select field refuses to shrink and overflows the card. */
min-width: 0;
}
/* The password field doesn't grow, so once the row's available width is split
fairly it should still keep a usable minimum instead of shrinking to a sliver -
flex-shrink can still take it below this only if the row itself is too narrow. */
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-row > .ts-dialog-field:not(.ts-dialog-field-grow) {
flex: 0 0 150px;
}
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-field input,
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-field select {
border-radius: 11px;
padding: 11px 14px;
font-size: 13.5px;
border-color: var(--border-soft);
}
.ts-connect-nova-expand {
display: inline-flex;
align-items: center;
gap: 8px;
align-self: flex-start;
border: none;
background: transparent;
color: var(--accent);
font-size: 12.5px;
font-weight: 700;
font-family: inherit;
padding: 2px 0;
cursor: pointer;
}
.ts-connect-nova-chevron {
transition: transform 0.15s ease;
}
.ts-connect-nova-chevron-open {
transform: rotate(90deg);
}
.ts-app.ts-design-nova .ts-connect-dialog .ts-dialog-grid {
gap: 12px;
}
.ts-connect-nova-buttons {
display: flex;
gap: 10px;
padding: 0 22px 22px;
}
.ts-connect-nova-buttons button {
border-radius: 12px;
font-family: inherit;
cursor: pointer;
}
.ts-connect-cancel,
.ts-connect-nova-buttons button[disabled] {
background: transparent;
color: var(--text-muted);
border: 1px solid var(--border-soft);
padding: 12px 18px;
font-size: 13px;
font-weight: 600;
}
.ts-connect-nova-primary {
flex: 1;
background: var(--accent);
color: var(--bg-toolbar-1);
border: none;
padding: 12px 20px;
font-size: 13.5px;
font-weight: 700;
}
.ts-connect-nova-primary:disabled {
opacity: 0.5;
cursor: default;
}
.ts-connect-nova-settings {
position: fixed;
top: 20px;
right: 20px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
background: var(--button-bg-1);
border: 1px solid var(--border-soft);
cursor: pointer;
font-size: 15px;
}
.ts-connect-nova-settings:hover {
background: var(--row-hover);
}
/* Splash mode hides the cancel button specifically - with nothing connected
yet there is no "back" to cancel to. */
.ts-app.ts-design-nova.ts-nova-splash .ts-connect-cancel {
display: none;
}
.ts-app.ts-design-nova > .ts-menubar .ts-menubar-item {
padding: 0.3rem 0.65rem;
border-radius: 999px;
}
.ts-app.ts-design-nova > .ts-menubar .ts-menubar-item-active {
padding: 0.3rem 0.65rem;
border-radius: 999px;
background: var(--bg-toolbar-2);
font-weight: 600;
font-size: 12px;
}
.ts-app.ts-design-nova > .ts-menubar .ts-menubar-item-active:hover {
background: var(--row-hover);
color: var(--text);
}
.ts-app.ts-design-nova > .ts-body {
order: 1;
}
.ts-app.ts-design-nova > .ts-log {
order: 2;
}
.ts-app.ts-design-nova > .ts-toolbar {
order: 3;
flex-direction: row;
align-items: center;
background: var(--bg-toolbar-2);
border-bottom: none;
border-top: 1px solid var(--border-soft);
padding: 0.6rem 1.2rem;
}
.ts-app.ts-design-nova > .ts-toolbar .ts-toolbar-icons {
flex: 1;
justify-content: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.ts-app.ts-design-nova > .ts-toolbar .ts-icon-button {
width: 42px;
height: 42px;
font-size: 17px;
}
.ts-app.ts-design-nova > .ts-toolbar .ts-toolbar-sep {
height: 26px;
align-self: center;
margin: 0 0.3rem;
}
.ts-app.ts-design-nova > .ts-toolbar .ts-app-logo {
border-radius: 8px;
}
/* New Nova-only status strip: server name + connection pill, folded into the
menubar row (right of the menu items) as the app's visual anchor. */
.ts-nova-topbar-server {
display: flex;
align-items: center;
gap: 0.6rem;
}
.ts-nova-topbar-logo {
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 8px;
background: var(--accent);
color: var(--bg-toolbar-1);
font-weight: 800;
font-size: 13px;
flex-shrink: 0;
}
.ts-nova-topbar-name {
font-weight: 700;
font-size: 14px;
}
.ts-nova-topbar-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
background: var(--bg-toolbar-2);
color: var(--text-muted);
font-size: 11px;
font-weight: 700;
}
.ts-nova-topbar-status-on {
background: color-mix(in srgb, var(--success) 18%, transparent);
color: var(--success);
}
.ts-nova-topbar-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
/* Self card in the bottom voice bar: avatar + name + status, mirroring the
mockup's left-hand cluster (Standard's toolbar has no equivalent). */
.ts-nova-toolbar-self {
display: flex;
align-items: center;
gap: 0.6rem;
padding-right: 0.9rem;
margin-right: 0.5rem;
border-right: 1px solid var(--border-soft);
}
.ts-nova-toolbar-avatar {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 11px;
background: var(--accent);
color: var(--bg-toolbar-1);
font-weight: 800;
font-size: 14px;
flex-shrink: 0;
}
.ts-nova-toolbar-self-info {
display: flex;
flex-direction: column;
line-height: 1.25;
}
.ts-nova-toolbar-self-name {
font-weight: 700;
font-size: 13px;
}
.ts-nova-toolbar-self-status {
font-size: 11px;
color: var(--success);
font-weight: 600;
}
.ts-app.ts-design-nova .ts-icon-button,
.ts-app.ts-design-nova .ts-toolbar-fields button,
.ts-app.ts-design-nova .ts-chat-input-row button {
border-radius: 10px;
background: var(--button-bg-1);
padding: 0.35rem 0.6rem;
}
.ts-app.ts-design-nova .ts-icon-button:hover,
.ts-app.ts-design-nova .ts-toolbar-fields button:hover,
.ts-app.ts-design-nova .ts-chat-input-row button:hover {
background: var(--button-bg-hover-1);
}
.ts-app.ts-design-nova .ts-icon-caret {
border-radius: 0 10px 10px 0;
background: var(--button-bg-1);
}
.ts-app.ts-design-nova .ts-toolbar-away .ts-icon-button {
border-radius: 10px 0 0 10px;
}
.ts-app.ts-design-nova .ts-upper {
gap: 0.6rem;
padding: 0.6rem 0.6rem 0;
}
.ts-app.ts-design-nova .ts-tree-panel,
.ts-app.ts-design-nova .ts-info-panel {
background: var(--bg-toolbar-1);
border: 1px solid var(--border-soft);
border-radius: 10px;
}
.ts-app.ts-design-nova .ts-resize-handle-vertical,
.ts-app.ts-design-nova .ts-resize-handle-horizontal {
background: transparent;
}
.ts-app.ts-design-nova .ts-banner-panel {
border-radius: 10px;
border: 1px solid var(--border-soft);
margin: 0 0.6rem;
}
.ts-app.ts-design-nova .ts-chat-panel {
background: var(--bg-toolbar-1);
border: 1px solid var(--border-soft);
border-radius: 10px;
overflow: hidden;
margin: 0.6rem;
}
.ts-app.ts-design-nova .ts-row {
padding: 4px 6px;
border-radius: 8px;
}
.ts-app.ts-design-nova .ts-client-row {
padding-left: 1.1rem;
}
.ts-app.ts-design-nova .ts-row-selected {
border-radius: 8px;
outline-color: var(--accent);
background: var(--bg-toolbar-2);
}
.ts-app.ts-design-nova .ts-chat-tabs {
order: -1;
border-top: none;
border-bottom: 1px solid var(--border-soft);
padding: 0.5rem 0.6rem 0;
gap: 0.2rem;
}
.ts-app.ts-design-nova .ts-chat-tab {
border: none;
border-bottom: 2.5px solid transparent;
border-radius: 8px 8px 0 0;
background: transparent;
color: var(--text-muted);
padding: 0.45rem 0.7rem;
font-weight: 600;
}
.ts-app.ts-design-nova .ts-chat-tab:hover:not(.ts-chat-tab-active) {
background: var(--row-hover);
color: var(--text);
}
.ts-app.ts-design-nova .ts-chat-tab-active {
background: transparent;
color: var(--accent);
border-bottom-color: var(--accent);
font-weight: 700;
}
/* Bubble-style chat messages, matching the TS6 mockup: own messages align
right in an accent-filled bubble, others align left in a muted-surface
bubble; system/log lines render as a centered pill. */
.ts-app.ts-design-nova .ts-chat-messages {
padding: 0.9rem 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.ts-app.ts-design-nova .ts-chat-line {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
max-width: 70%;
padding: 0;
}
.ts-app.ts-design-nova .ts-chat-line-self {
align-self: flex-end;
align-items: flex-end;
}
.ts-app.ts-design-nova .ts-chat-from {
font-size: 11.5px;
font-weight: 700;
color: var(--text-muted);
}
.ts-app.ts-design-nova .ts-chat-line-self .ts-chat-from {
color: var(--accent);
}
.ts-app.ts-design-nova .ts-chat-bubble {
display: inline-block;
background: var(--bg-toolbar-2);
padding: 0.5rem 0.75rem;
border-radius: 4px 14px 14px 14px;
line-height: 1.45;
}
.ts-app.ts-design-nova .ts-chat-line-self .ts-chat-bubble {
background: var(--accent);
color: var(--bg-toolbar-1);
border-radius: 14px 4px 14px 14px;
font-weight: 600;
}
.ts-app.ts-design-nova .ts-chat-line-log {
align-self: center;
align-items: center;
max-width: none;
background: var(--bg-toolbar-2);
color: var(--text-faint);
font-style: italic;
font-size: 11.5px;
padding: 0.25rem 0.75rem;
border-radius: 999px;
}
.ts-app.ts-design-nova .ts-chat-input-row {
border-top: 1px solid var(--border-soft);
padding: 0.6rem 0.8rem;
align-items: center;
}
.ts-app.ts-design-nova .ts-chat-input-row textarea {
border-radius: 14px;
border-color: var(--border-soft);
background: var(--bg-toolbar-2);
padding: 0.55rem 0.8rem;
}
/* Round, icon-only accent send button, matching the mockup's composer. */
.ts-app.ts-design-nova .ts-chat-input-row button {
width: 40px;
height: 40px;
padding: 0;
border: none;
border-radius: 12px;
background: var(--accent);
color: transparent;
font-size: 0;
flex-shrink: 0;
position: relative;
}
.ts-app.ts-design-nova .ts-chat-input-row button:hover {
background: var(--accent);
filter: brightness(1.08);
}
.ts-app.ts-design-nova .ts-chat-input-row button:disabled {
opacity: 0.4;
}
.ts-app.ts-design-nova .ts-chat-input-row button::before {
content: "➤";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
color: var(--bg-toolbar-1);
}
/* Client avatar chips: colored initial squares, Nova-only (Standard theme
keeps its plain icon + name row). */
.ts-client-avatar {
display: none;
}
.ts-app.ts-design-nova .ts-client-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 6px;
flex-shrink: 0;
font-size: 9px;
font-weight: 800;
color: oklch(0.18 0.02 258);
}
.ts-app.ts-design-nova .ts-log {
border-top: 1px solid var(--border-soft);
margin: 0 0.6rem 0.6rem;
border: 1px solid var(--border-soft);
border-radius: 8px;
}
.ts-app.ts-design-nova .ts-dialog {
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ts-app.ts-design-nova .ts-menu {
border-radius: 8px;
overflow: hidden;
}
.ts-app.ts-design-nova .ts-menu-item:hover:not(:disabled) {
border-radius: 6px;
}
.ts-app.ts-design-nova ::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.ts-app.ts-design-nova ::-webkit-scrollbar-track {
background: transparent;
}
.ts-app.ts-design-nova ::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 999px;
border: 2px solid var(--bg);
}
/* Demo mode banner */
.ts-demo-banner {
@@ -102,6 +834,12 @@
/* Toolbar */
.ts-menubar-items {
display: flex;
align-items: center;
gap: 1.1rem;
}
.ts-menubar {
display: flex;
align-items: center;
@@ -1631,6 +2369,131 @@
margin: 0 0 0.75rem;
}
.ts-design-theme-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
}
.ts-design-theme-card {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.4rem;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--input-bg);
color: var(--text);
cursor: pointer;
text-align: left;
font: inherit;
}
.ts-design-theme-card:hover {
border-color: var(--accent);
}
.ts-design-theme-card-active {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent);
}
.ts-design-theme-swatch {
display: block;
width: 100%;
height: 44px;
border-radius: 3px;
border: 1px solid var(--border-soft);
}
.ts-design-theme-swatch-standard {
background: linear-gradient(135deg, #eef1f4 0%, #d7dce2 100%);
}
.ts-design-theme-swatch-nova {
background: linear-gradient(135deg, oklch(0.245 0.016 258) 0%, oklch(0.17 0.014 258) 100%);
box-shadow: inset 0 0 0 1px #7fb0e8;
}
.ts-design-theme-card-name {
font-weight: 600;
font-size: 13px;
}
.ts-design-theme-card-desc {
font-size: 11px;
color: var(--text-muted);
}
/* Custom-theme cards are a <div> (built-ins are a plain <button>) so the select
area and the edit/duplicate/export/delete row can sit side by side without
nesting a button inside a button. */
.ts-design-theme-card-custom {
position: relative;
}
.ts-design-theme-card-select {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.4rem;
width: 100%;
padding: 0;
border: none;
background: transparent;
color: inherit;
cursor: pointer;
text-align: left;
font: inherit;
}
.ts-design-theme-swatch-custom {
background: conic-gradient(from 180deg, #7fb0e8, #ff8fab, #ffd166, #7fb0e8);
}
.ts-design-theme-card-actions {
display: flex;
gap: 0.3rem;
margin-top: 0.5rem;
}
.ts-design-theme-card-actions button {
flex: 1;
padding: 0.25rem 0;
border: 1px solid var(--border-soft);
border-radius: 3px;
background: var(--input-bg);
color: var(--text-muted);
cursor: pointer;
font-size: 12px;
}
.ts-design-theme-card-actions button:hover {
color: var(--text);
border-color: var(--accent);
}
.ts-design-custom-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
}
.ts-custom-theme-css {
width: 100%;
min-height: 220px;
font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
font-size: 12px;
padding: 0.5rem;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--input-bg);
color: var(--input-text);
resize: vertical;
box-sizing: border-box;
}
.ts-options-columns {
display: flex;
gap: 1rem;
+552 -46
View File
@@ -136,7 +136,58 @@ const INPUT_DEVICE_KEY = "webspeak3:input-device";
const PLAYBACK_VOLUME_KEY = "webspeak3:playback-volume";
const NOISE_SUPPRESSION_KEY = "webspeak3:noise-suppression";
const ECHO_CANCELLATION_KEY = "webspeak3:echo-cancellation";
const AUTO_GAIN_CONTROL_KEY = "webspeak3:auto-gain-control";
const VAD_HANGOVER_KEY = "webspeak3:vad-hangover";
const DESIGN_THEME_KEY = "webspeak3:design-theme";
// The user's actual pick - "standard" | "nova" | "custom:<id>". DESIGN_THEME_KEY above
// keeps tracking just the resolved structural base, since a couple of early call sites
// (e.g. the host-field default below) need that cheaply, before customThemes is loaded.
const DESIGN_SELECTION_KEY = "webspeak3:design-selection";
const CUSTOM_THEMES_KEY = "webspeak3:custom-themes";
type DesignTheme = "standard" | "nova";
/** A user-authored theme package: a name, which built-in layout it behaves like
* (Standard's plain chrome vs Nova's collapsed menu/splash behavior), and raw CSS
* that gets injected while it's active - free-form, so it can restyle or even
* reflow the existing markup (e.g. via flex `order`, `display:none`, overlays). */
type CustomTheme = {
id: string;
name: string;
baseTheme: DesignTheme;
css: string;
};
function loadDesignTheme(): DesignTheme {
return localStorage.getItem(DESIGN_THEME_KEY) === "nova" ? "nova" : "standard";
}
function loadCustomThemes(): CustomTheme[] {
try {
const raw = localStorage.getItem(CUSTOM_THEMES_KEY);
if (!raw) return [];
const parsed = JSON.parse(raw);
if (!Array.isArray(parsed)) return [];
return parsed.filter(
(v): v is CustomTheme =>
v &&
typeof v.id === "string" &&
typeof v.name === "string" &&
(v.baseTheme === "standard" || v.baseTheme === "nova") &&
typeof v.css === "string"
);
} catch {
return [];
}
}
function saveCustomThemes(list: CustomTheme[]) {
localStorage.setItem(CUSTOM_THEMES_KEY, JSON.stringify(list));
}
function loadDesignSelection(): string {
return localStorage.getItem(DESIGN_SELECTION_KEY) ?? loadDesignTheme();
}
function loadBoolPref(key: string, fallback: boolean): boolean {
const raw = localStorage.getItem(key);
@@ -567,6 +618,12 @@ function ChannelTree({
title={c.id === ownClientId ? undefined : `${t("tree.privateChatWith")} ${c.name}`}
>
<ClientIcon />
<span
className="ts-client-avatar"
style={{ background: c.id === ownClientId ? "var(--accent)" : clientAvatarColor(c.name) }}
>
{c.name.trim().charAt(0).toUpperCase() || "?"}
</span>
{countryFlag(c.country) && <span title={c.country}>{countryFlag(c.country)}</span>}
<span>{c.name}</span>
{c.away && c.awayMessage && (
@@ -758,6 +815,8 @@ function ConnectDialog({
onToggleExpanded,
onConnect,
onCancel,
nova,
onOpenOptions,
}: {
host: string;
nickname: string;
@@ -777,39 +836,76 @@ function ConnectDialog({
onToggleExpanded: () => void;
onConnect: () => void;
onCancel: () => void;
/** Nova-theme-only: renders the TS6-redesign "connect hero" (logo, title,
* subtitle, settings shortcut) around the same form instead of the
* Standard theme's plain titled dialog box. */
nova: boolean;
onOpenOptions: () => void;
}) {
const t = useT();
const backdrop = useBackdropDismiss(onCancel);
return (
<div className="ts-dialog-backdrop" {...backdrop}>
<div className="ts-dialog ts-connect-dialog" onClick={(e) => e.stopPropagation()}>
// Nova-theme-only: the "Erweiterte Optionen" toggle moves from the footer
// (Standard) to right under the nickname field, with a rotating chevron -
// matching the TS6 redesign's Connect screen instead of a plain button.
const expandToggle = nova ? (
<button className="ts-connect-nova-expand" onClick={onToggleExpanded}>
<svg
className={`ts-connect-nova-chevron${expanded ? " ts-connect-nova-chevron-open" : ""}`}
width="13"
height="13"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2.6"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M9 6l6 6-6 6" />
</svg>
{expanded ? t("connect.less") : t("connect.more")}
</button>
) : (
<button onClick={onToggleExpanded}>{expanded ? t("connect.less") : t("connect.more")}</button>
);
const dialogBody = (
<div className="ts-dialog ts-connect-dialog" onClick={(e) => e.stopPropagation()}>
{nova ? (
<button className="ts-connect-nova-settings" onClick={onOpenOptions} title={t("menu.extras.options")}>
⚙️
</button>
) : (
<div className="ts-dialog-titlebar">
<span>{t("connect.title")}</span>
<button onClick={onCancel} title={t("dialog.close")}>
✕
</button>
</div>
<div className="ts-dialog-body">
<div className="ts-dialog-row">
<label className="ts-dialog-field ts-dialog-field-grow">
{t("connect.serverAddress")}
<input autoFocus value={host} onChange={(e) => onHostChange(e.target.value)} />
</label>
<label className="ts-dialog-field">
{t("connect.serverPassword")}
<input
type="password"
value={serverPassword}
onChange={(e) => onServerPasswordChange(e.target.value)}
/>
</label>
</div>
<label className="ts-dialog-field">
{t("connect.nickname")}
<input value={nickname} onChange={(e) => onNicknameChange(e.target.value)} />
)}
<div className="ts-dialog-body">
<div className="ts-dialog-row">
<label className="ts-dialog-field ts-dialog-field-grow">
{t("connect.serverAddress")}
<input autoFocus value={host} onChange={(e) => onHostChange(e.target.value)} />
</label>
<label className="ts-dialog-field">
{t("connect.serverPassword")}
<input
type="password"
value={serverPassword}
onChange={(e) => onServerPasswordChange(e.target.value)}
/>
</label>
</div>
<label className="ts-dialog-field">
{t("connect.nickname")}
<input value={nickname} onChange={(e) => onNicknameChange(e.target.value)} />
</label>
{expanded && (
{nova && expandToggle}
{expanded && (
<div className="ts-dialog-grid">
<label className="ts-dialog-field">
{t("connect.phoneticNickname")}
@@ -859,10 +955,6 @@ function ConnectDialog({
<option>Standard</option>
</select>
</label>
<label className="ts-dialog-checkbox">
<input type="checkbox" disabled title="Not supported yet" />
{t("connect.sendMyTeamSpeakId")}
</label>
<label className="ts-dialog-field">
{t("connect.soundPack")}
<select disabled defaultValue="Standard">
@@ -872,19 +964,57 @@ function ConnectDialog({
</div>
)}
</div>
<div className="ts-dialog-buttons">
<button onClick={onToggleExpanded}>{expanded ? t("connect.less") : t("connect.more")}</button>
<div className="ts-dialog-buttons-right">
<button onClick={onConnect} disabled={connecting || !host || !nickname}>
{connecting ? t("connect.connecting") : t("connect.connect")}
</button>
<div className={nova ? "ts-connect-nova-buttons" : "ts-dialog-buttons"}>
{!nova && expandToggle}
<div className={nova ? undefined : "ts-dialog-buttons-right"}>
{nova && (
<button className="ts-connect-cancel" onClick={onCancel}>
{t("connect.cancel")}
</button>
)}
{!nova && (
<button onClick={onConnect} disabled={connecting || !host || !nickname}>
{connecting ? t("connect.connecting") : t("connect.connect")}
</button>
)}
<button disabled title="Not supported in the web client">
{t("connect.newTab")}
</button>
<button onClick={onCancel}>{t("connect.cancel")}</button>
{nova ? (
<button
className="ts-connect-nova-primary"
onClick={onConnect}
disabled={connecting || !host || !nickname}
>
{connecting ? t("connect.connecting") : t("connect.connect")}
</button>
) : (
<button onClick={onCancel}>{t("connect.cancel")}</button>
)}
</div>
</div>
</div>
);
if (!nova)
return (
<div className="ts-dialog-backdrop" {...backdrop}>
{dialogBody}
</div>
);
return (
<div className="ts-dialog-backdrop" {...backdrop}>
<div className="ts-connect-nova-wrap">
<div className="ts-connect-nova-hero">
<span className="ts-connect-nova-logo">W</span>
<div className="ts-connect-nova-heading">
<div className="ts-connect-nova-title">{t("connect.title")}</div>
<div className="ts-connect-nova-subtitle">{t("connect.novaSubtitle")}</div>
</div>
</div>
{dialogBody}
</div>
</div>
);
}
@@ -1068,10 +1198,6 @@ function FavoritesDialog({
<input type="checkbox" disabled title="Not supported yet" />
{t("favorites.connectOnStartup")}
</label>
<label className="ts-dialog-checkbox">
<input type="checkbox" disabled title="Not supported yet" />
{t("favorites.enableMyTeamSpeak")}
</label>
</div>
</div>
<div className="ts-dialog-buttons">
@@ -1941,6 +2067,15 @@ function groupBadgeColor(iconId: number): string {
return `hsl(${hue}, 55%, 45%)`;
}
/** Nova-theme-only: a stable per-name color for the client avatar chips,
* hashed from the name so the same person always gets the same color. */
function clientAvatarColor(name: string): string {
let hash = 0;
for (let i = 0; i < name.length; i++) hash = (hash * 31 + name.charCodeAt(i)) >>> 0;
const hue = hash % 360;
return `oklch(0.6 0.13 ${hue})`;
}
/** The icon repository lives under TS3's special "channel 0" - not a real,
* selectable channel, just the server-wide filebase icons are stored in.
* Icon files are always named "icon_<id>", where <id> is what a server/
@@ -3263,6 +3398,8 @@ interface AudioSettings {
onToggleNoiseSuppression: () => void;
echoCancellationEnabled: boolean;
onToggleEchoCancellation: () => void;
autoGainControlEnabled: boolean;
onToggleAutoGainControl: () => void;
}
function MicLevelBar({ levelRef, active }: { levelRef: React.MutableRefObject<number>; active: boolean }) {
@@ -3453,6 +3590,14 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) {
/>
{t("recording.noiseSuppression")}
</label>
<label className="ts-options-checkbox">
<input
type="checkbox"
checked={audio.autoGainControlEnabled}
onChange={audio.onToggleAutoGainControl}
/>
{t("recording.autoGainControl")}
</label>
</div>
</fieldset>
</div>
@@ -3474,12 +3619,197 @@ function AnwendungPanel() {
<option value="auto">{t("app.language.auto")}</option>
<option value="de">{t("app.language.de")}</option>
<option value="en">{t("app.language.en")}</option>
<option value="zh-CN">{t("app.language.zh-CN")}</option>
</select>
</label>
</>
);
}
type CustomThemeDraft = { id: string | null; name: string; baseTheme: DesignTheme; css: string };
function DesignPanel({
designSelection,
onSelectionChange,
customThemes,
onSaveCustomTheme,
onDeleteCustomTheme,
}: {
designSelection: string;
onSelectionChange: (next: string) => void;
customThemes: CustomTheme[];
onSaveCustomTheme: (theme: CustomTheme) => void;
onDeleteCustomTheme: (id: string) => void;
}) {
const t = useT();
const [editing, setEditing] = useState<CustomThemeDraft | null>(null);
const importInputRef = useRef<HTMLInputElement | null>(null);
const builtins: { id: DesignTheme; name: string; desc: string }[] = [
{ id: "standard", name: t("design.theme.standard"), desc: t("design.theme.standard.desc") },
{ id: "nova", name: t("design.theme.nova"), desc: t("design.theme.nova.desc") },
];
const handleSaveEditing = () => {
if (!editing || !editing.name.trim()) return;
const id = editing.id ?? `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
onSaveCustomTheme({ id, name: editing.name.trim(), baseTheme: editing.baseTheme, css: editing.css });
onSelectionChange(`custom:${id}`);
setEditing(null);
};
const handleExport = (theme: CustomTheme) => {
const blob = new Blob(
[JSON.stringify({ name: theme.name, baseTheme: theme.baseTheme, css: theme.css }, null, 2)],
{ type: "application/json" }
);
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = `${theme.name.replace(/[^a-z0-9-_]+/gi, "_") || "theme"}.webspeak3theme.json`;
a.click();
URL.revokeObjectURL(url);
};
const handleImportSelected = async (e: React.ChangeEvent<HTMLInputElement>) => {
const file = e.target.files?.[0];
e.target.value = "";
if (!file) return;
try {
const parsed = JSON.parse(await file.text());
if (
!parsed ||
typeof parsed.name !== "string" ||
(parsed.baseTheme !== "standard" && parsed.baseTheme !== "nova") ||
typeof parsed.css !== "string"
) {
window.alert(t("design.custom.importError"));
return;
}
const id = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
onSaveCustomTheme({ id, name: parsed.name, baseTheme: parsed.baseTheme, css: parsed.css });
onSelectionChange(`custom:${id}`);
} catch {
window.alert(t("design.custom.importError"));
}
};
if (editing) {
return (
<>
<h3>{editing.id ? t("design.custom.editTitle") : t("design.custom.newTitle")}</h3>
<label className="ts-options-field">
{t("design.custom.name")}
<input value={editing.name} onChange={(e) => setEditing({ ...editing, name: e.target.value })} autoFocus />
</label>
<label className="ts-options-field">
{t("design.custom.base")}
<select
value={editing.baseTheme}
onChange={(e) => setEditing({ ...editing, baseTheme: e.target.value as DesignTheme })}
>
<option value="standard">{t("design.theme.standard")}</option>
<option value="nova">{t("design.theme.nova")}</option>
</select>
</label>
<label className="ts-options-field">
{t("design.custom.css")}
<textarea
className="ts-custom-theme-css"
spellCheck={false}
value={editing.css}
onChange={(e) => setEditing({ ...editing, css: e.target.value })}
placeholder={".ts-app {\n --accent: #ff6b6b;\n}"}
/>
</label>
<p className="ts-options-subtitle">{t("design.custom.hint")}</p>
<div className="ts-dialog-buttons-right">
<button onClick={() => setEditing(null)}>{t("connect.cancel")}</button>
<button onClick={handleSaveEditing} disabled={!editing.name.trim()}>
{t("design.custom.save")}
</button>
</div>
</>
);
}
return (
<>
<h3>{t("options.section.design")}</h3>
<p className="ts-options-subtitle">{t("design.subtitle")}</p>
<div className="ts-design-theme-grid">
{builtins.map((th) => (
<button
key={th.id}
className={`ts-design-theme-card${th.id === designSelection ? " ts-design-theme-card-active" : ""}`}
onClick={() => onSelectionChange(th.id)}
>
<span className={`ts-design-theme-swatch ts-design-theme-swatch-${th.id}`} />
<span className="ts-design-theme-card-name">{th.name}</span>
<span className="ts-design-theme-card-desc">{th.desc}</span>
</button>
))}
{customThemes.map((theme) => (
<div
key={theme.id}
className={`ts-design-theme-card ts-design-theme-card-custom${
designSelection === `custom:${theme.id}` ? " ts-design-theme-card-active" : ""
}`}
>
<button className="ts-design-theme-card-select" onClick={() => onSelectionChange(`custom:${theme.id}`)}>
<span className="ts-design-theme-swatch ts-design-theme-swatch-custom" />
<span className="ts-design-theme-card-name">{theme.name}</span>
<span className="ts-design-theme-card-desc">
{theme.baseTheme === "nova" ? t("design.theme.nova") : t("design.theme.standard")}
</span>
</button>
<div className="ts-design-theme-card-actions">
<button
onClick={() => setEditing({ id: theme.id, name: theme.name, baseTheme: theme.baseTheme, css: theme.css })}
title={t("design.custom.edit")}
>
✎
</button>
<button
onClick={() =>
setEditing({ id: null, name: t("design.custom.copyOf", { name: theme.name }), baseTheme: theme.baseTheme, css: theme.css })
}
title={t("design.custom.duplicate")}
>
⧉
</button>
<button onClick={() => handleExport(theme)} title={t("design.custom.export")}>
⭳
</button>
<button
onClick={() => {
if (window.confirm(t("design.custom.deleteConfirm"))) onDeleteCustomTheme(theme.id);
}}
title={t("design.custom.delete")}
>
🗑
</button>
</div>
</div>
))}
</div>
<div className="ts-design-custom-actions">
<button onClick={() => setEditing({ id: null, name: "", baseTheme: "standard", css: "" })}>
{t("design.custom.new")}
</button>
<button onClick={() => importInputRef.current?.click()}>{t("design.custom.import")}</button>
<input
ref={importInputRef}
type="file"
accept="application/json,.json"
style={{ display: "none" }}
onChange={handleImportSelected}
/>
</div>
</>
);
}
function SoundsPanel() {
const t = useT();
const [enabled, setEnabled] = useState(() => loadSoundsEnabled());
@@ -3747,11 +4077,21 @@ function OptionsDialog({
onSectionChange,
onClose,
audio,
designSelection,
onDesignSelectionChange,
customThemes,
onSaveCustomTheme,
onDeleteCustomTheme,
}: {
section: string;
onSectionChange: (id: string) => void;
onClose: () => void;
audio: AudioSettings;
designSelection: string;
onDesignSelectionChange: (next: string) => void;
customThemes: CustomTheme[];
onSaveCustomTheme: (theme: CustomTheme) => void;
onDeleteCustomTheme: (id: string) => void;
}) {
const t = useT();
const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0];
@@ -3787,6 +4127,14 @@ function OptionsDialog({
<AufnahmePanel audio={audio} />
) : active.id === "sounds" ? (
<SoundsPanel />
) : active.id === "design" ? (
<DesignPanel
designSelection={designSelection}
onSelectionChange={onDesignSelectionChange}
customThemes={customThemes}
onSaveCustomTheme={onSaveCustomTheme}
onDeleteCustomTheme={onDeleteCustomTheme}
/>
) : active.id === "nachrichten" ? (
<NachrichtenPanel />
) : (
@@ -4045,7 +4393,11 @@ function ServerEditDialog({
}
function AppInner() {
const [host, setHost] = useState(() => localStorage.getItem(LAST_HOST_KEY) ?? (DEMO_MODE ? DEMO_HOST : "localhost"));
const [host, setHost] = useState(
() =>
localStorage.getItem(LAST_HOST_KEY) ??
(DEMO_MODE ? DEMO_HOST : loadDesignTheme() === "nova" ? "" : "localhost")
);
const [nickname, setNickname] = useState(
() => localStorage.getItem(LAST_NICKNAME_KEY) ?? (DEMO_MODE ? "Guest" : "")
);
@@ -4150,6 +4502,55 @@ function AppInner() {
const [theme, setTheme] = useState<"light" | "dark">(() =>
window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"
);
const [customThemes, setCustomThemes] = useState<CustomTheme[]>(() => loadCustomThemes());
const [designSelection, setDesignSelection] = useState<string>(() => loadDesignSelection());
const activeCustomTheme = designSelection.startsWith("custom:")
? customThemes.find((th) => `custom:${th.id}` === designSelection) ?? null
: null;
// Structural base - everywhere else in the app that branches on "nova" behavior
// (splash, hamburger menu, ...) keeps working unchanged, whether that behavior
// came from picking Nova directly or from a custom theme built on top of it.
const designTheme: DesignTheme = activeCustomTheme ? activeCustomTheme.baseTheme : designSelection === "nova" ? "nova" : "standard";
const handleDesignSelectionChange = (next: string) => {
setDesignSelection(next);
localStorage.setItem(DESIGN_SELECTION_KEY, next);
const base = next.startsWith("custom:")
? customThemes.find((th) => `custom:${th.id}` === next)?.baseTheme ?? "standard"
: next === "nova"
? "nova"
: "standard";
localStorage.setItem(DESIGN_THEME_KEY, base);
};
const handleSaveCustomTheme = (nextTheme: CustomTheme) => {
setCustomThemes((prev) => {
const idx = prev.findIndex((th) => th.id === nextTheme.id);
const next = idx === -1 ? [...prev, nextTheme] : prev.map((th, i) => (i === idx ? nextTheme : th));
saveCustomThemes(next);
return next;
});
};
const handleDeleteCustomTheme = (id: string) => {
setCustomThemes((prev) => {
const next = prev.filter((th) => th.id !== id);
saveCustomThemes(next);
return next;
});
if (designSelection === `custom:${id}`) handleDesignSelectionChange("standard");
};
// Custom themes ship as free-form CSS - inject/replace it in a dedicated <style>
// tag while active, and drop it the moment no custom theme is selected.
useEffect(() => {
const css = activeCustomTheme?.css ?? "";
const existing = document.getElementById("ts-custom-theme-style") as HTMLStyleElement | null;
if (!css) {
existing?.remove();
return;
}
const el = existing ?? document.createElement("style");
el.id = "ts-custom-theme-style";
el.textContent = css;
if (!existing) document.head.appendChild(el);
}, [activeCustomTheme?.id, activeCustomTheme?.css]);
const [micOn, setMicOn] = useState(false);
const [talkers, setTalkers] = useState<Set<number>>(new Set());
const [selfActive, setSelfActive] = useState(false);
@@ -4166,8 +4567,14 @@ function AppInner() {
const [echoCancellationEnabled, setEchoCancellationEnabled] = useState(() =>
loadBoolPref(ECHO_CANCELLATION_KEY, true)
);
const [autoGainControlEnabled, setAutoGainControlEnabled] = useState(() =>
loadBoolPref(AUTO_GAIN_CONTROL_KEY, true)
);
const [micTestOn, setMicTestOn] = useState(false);
const [connectionsMenuOpen, setConnectionsMenuOpen] = useState(false);
// Nova-theme-only: collapses the classic menu items behind a hamburger button.
const [novaMenuOpen, setNovaMenuOpen] = useState(false);
const novaMenuRef = useRef<HTMLDivElement | null>(null);
const [favorites, setFavorites] = useState<Favorite[]>(() => loadFavorites());
const [favoritesMenuOpen, setFavoritesMenuOpen] = useState(false);
const [favoritesDialogMode, setFavoritesDialogMode] = useState<
@@ -4322,6 +4729,10 @@ function AppInner() {
localStorage.setItem(ECHO_CANCELLATION_KEY, echoCancellationEnabled ? "1" : "0");
}, [echoCancellationEnabled]);
useEffect(() => {
localStorage.setItem(AUTO_GAIN_CONTROL_KEY, autoGainControlEnabled ? "1" : "0");
}, [autoGainControlEnabled]);
useEffect(() => {
if (inputDeviceId) localStorage.setItem(INPUT_DEVICE_KEY, inputDeviceId);
}, [inputDeviceId]);
@@ -4844,6 +5255,22 @@ function AppInner() {
setAwayDialogOpen(false);
};
useEffect(() => {
if (!novaMenuOpen) return;
const onPointerDown = (e: MouseEvent) => {
if (!novaMenuRef.current?.contains(e.target as Node)) setNovaMenuOpen(false);
};
const onKeyDown = (e: KeyboardEvent) => {
if (e.key === "Escape") setNovaMenuOpen(false);
};
window.addEventListener("mousedown", onPointerDown);
window.addEventListener("keydown", onKeyDown);
return () => {
window.removeEventListener("mousedown", onPointerDown);
window.removeEventListener("keydown", onKeyDown);
};
}, [novaMenuOpen]);
useEffect(() => {
if (!connectionsMenuOpen) return;
const onPointerDown = (e: MouseEvent) => {
@@ -5105,12 +5532,20 @@ function AppInner() {
return () => window.removeEventListener("keydown", onKeyDown);
}, [connected, connecting, host, nickname, serverPassword, defaultChannel, channelPassword]);
// Nova-theme-only: the connect dialog IS the app until a connection exists -
// it's forced open on load and after every disconnect, and closes itself the
// moment a connection succeeds.
useEffect(() => {
if (designTheme === "nova" && !connected) setConnectDialogOpen(true);
}, [designTheme, connected]);
// Overrides let a device/DSP-setting change take effect immediately, without
// waiting for the next render's (possibly still-stale) state closure.
const startMic = async (overrides?: {
deviceId?: string;
echoCancellation?: boolean;
noiseSuppression?: boolean;
autoGainControl?: boolean;
}) => {
const audioContext = ensureAudioContext();
try {
@@ -5127,6 +5562,7 @@ function AppInner() {
deviceId: overrides?.deviceId ?? (inputDeviceId || undefined),
echoCancellation: overrides?.echoCancellation ?? echoCancellationEnabled,
noiseSuppression: overrides?.noiseSuppression ?? noiseSuppressionEnabled,
autoGainControl: overrides?.autoGainControl ?? autoGainControlEnabled,
});
await mic.start();
micCaptureRef.current = mic;
@@ -5143,6 +5579,7 @@ function AppInner() {
deviceId?: string;
echoCancellation?: boolean;
noiseSuppression?: boolean;
autoGainControl?: boolean;
}) => {
micCaptureRef.current?.stop();
micCaptureRef.current = null;
@@ -5184,6 +5621,12 @@ function AppInner() {
if (micCaptureRef.current) void restartMic({ echoCancellation: next });
};
const handleToggleAutoGainControl = () => {
const next = !autoGainControlEnabled;
setAutoGainControlEnabled(next);
if (micCaptureRef.current) void restartMic({ autoGainControl: next });
};
const handleToggleMicTest = () => {
const next = !micTestOn;
setMicTestOn(next);
@@ -5926,9 +6369,15 @@ function AppInner() {
? new Set(talkers).add(ownClient.id)
: talkers;
const t = useT();
const novaSplash = designTheme === "nova" && !connected;
return (
<div className={`ts-app ts-theme-${theme}${demoForceMobile ? " ts-force-mobile" : ""}`}>
<div
className={`ts-app ts-theme-${theme}${designTheme === "nova" ? " ts-design-nova" : ""}${
activeCustomTheme ? " ts-design-custom" : ""
}${demoForceMobile ? " ts-force-mobile" : ""}${novaSplash ? " ts-nova-splash" : ""}`}
data-custom-theme={activeCustomTheme?.id}
>
{DEMO_MODE && (
<div className="ts-demo-banner">
Demo mode — simulated data only, no real TeamSpeak server involved.{" "}
@@ -5941,6 +6390,21 @@ function AppInner() {
</div>
)}
<div className="ts-menubar">
<div className={designTheme === "nova" ? "ts-nova-menu-dropdown" : undefined} ref={novaMenuRef}>
{designTheme === "nova" && (
<button
className="ts-icon-button ts-nova-menu-toggle"
onClick={() => setNovaMenuOpen((v) => !v)}
aria-label={t("menu.connections")}
>
☰
</button>
)}
<div
className={`ts-menubar-items${designTheme === "nova" ? " ts-nova-menu-panel" : ""}${
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
}`}
>
<div className="ts-menubar-dropdown" ref={connectionsMenuRef}>
<span
className="ts-menubar-item ts-menubar-item-active"
@@ -6384,9 +6848,34 @@ function AppInner() {
)}
</div>
<span className="ts-menubar-item">{t("menu.help")}</span>
</div>
</div>
{designTheme === "nova" && (
<div className="ts-nova-topbar-server">
<span className="ts-nova-topbar-logo">W</span>
<span className="ts-nova-topbar-name">{connected ? serverName || host : "WebSpeak3"}</span>
<span className={`ts-nova-topbar-status${connected ? " ts-nova-topbar-status-on" : ""}`}>
<span className="ts-nova-topbar-dot" />
{connected ? t("design.status.connected") : t("tree.notConnected")}
</span>
</div>
)}
</div>
<div className="ts-toolbar">
{designTheme === "nova" && connected && ownClient && (
<div className="ts-nova-toolbar-self">
<span className="ts-nova-toolbar-avatar">
{ownClient.name.trim().charAt(0).toUpperCase() || "?"}
</span>
<span className="ts-nova-toolbar-self-info">
<span className="ts-nova-toolbar-self-name">{ownClient.name}</span>
<span className="ts-nova-toolbar-self-status">
{isAway ? t("tree.away") : t("design.status.connected")}
</span>
</span>
</div>
)}
<div className="ts-toolbar-icons">
<div className="ts-toolbar-away" ref={awayMenuRef}>
<button
@@ -6588,7 +7077,9 @@ function AppInner() {
onActiveIdentityChange={handleActiveIdentityChange}
onToggleExpanded={() => setConnectDialogExpanded((v) => !v)}
onConnect={handleConnect}
onCancel={() => setConnectDialogOpen(false)}
onCancel={novaSplash ? () => {} : () => setConnectDialogOpen(false)}
nova={designTheme === "nova"}
onOpenOptions={() => setOptionsDialogOpen(true)}
/>
)}
@@ -6817,6 +7308,11 @@ function AppInner() {
section={optionsSection}
onSectionChange={setOptionsSection}
onClose={() => setOptionsDialogOpen(false)}
designSelection={designSelection}
onDesignSelectionChange={handleDesignSelectionChange}
customThemes={customThemes}
onSaveCustomTheme={handleSaveCustomTheme}
onDeleteCustomTheme={handleDeleteCustomTheme}
audio={{
outputDevices,
outputDeviceId,
@@ -6841,6 +7337,8 @@ function AppInner() {
onToggleNoiseSuppression: handleToggleNoiseSuppression,
echoCancellationEnabled,
onToggleEchoCancellation: handleToggleEchoCancellation,
autoGainControlEnabled,
onToggleAutoGainControl: handleToggleAutoGainControl,
}}
/>
)}
@@ -7328,8 +7826,12 @@ function AppInner() {
<div className="ts-chat-messages">
{activeTab === "channel"
? chat.map((entry, i) => (
<div key={i} className="ts-chat-line">
<span className="ts-chat-from">{entry.from}:</span> <span>{entry.message}</span>
<div
key={i}
className={`ts-chat-line${entry.from === ownClient?.name ? " ts-chat-line-self" : ""}`}
>
<span className="ts-chat-from">{entry.from}:</span>{" "}
<span className="ts-chat-bubble">{entry.message}</span>
</div>
))
: activeTab === "server"
@@ -7339,17 +7841,21 @@ function AppInner() {
<span>{entry.message}</span>
</div>
) : (
<div key={i} className="ts-chat-line">
<span className="ts-chat-from">{entry.from}:</span> <span>{entry.message}</span>
<div
key={i}
className={`ts-chat-line${entry.from === ownClient?.name ? " ts-chat-line-self" : ""}`}
>
<span className="ts-chat-from">{entry.from}:</span>{" "}
<span className="ts-chat-bubble">{entry.message}</span>
</div>
)
)
: pmThreads[activeTab]?.messages.map((entry, i) => (
<div key={i} className="ts-chat-line">
<div key={i} className={`ts-chat-line${entry.fromSelf ? " ts-chat-line-self" : ""}`}>
<span className="ts-chat-from">
{entry.fromSelf ? t("chat.you") : pmThreads[activeTab].partnerName}:
</span>{" "}
<span>{entry.message}</span>
<span className="ts-chat-bubble">{entry.message}</span>
</div>
))}
<div ref={chatEndRef} />
+61 -7
View File
@@ -1,6 +1,7 @@
import { createContext, useContext, useEffect, useState, type ReactNode } from "react";
import { zhCN } from "./locales/zh-CN";
export type Lang = "de" | "en";
export type Lang = "de" | "en" | "zh-CN";
export type LangPref = "auto" | Lang;
const LANGUAGE_KEY = "webspeak3:language";
@@ -65,6 +66,7 @@ const translations: Record<Lang, Record<string, string>> = {
"away.setGlobalStatus": "Abwesenheit-Status global setzen",
"connect.title": "Verbinden",
"connect.novaSubtitle": "WebSpeak3 läuft komplett im Browser — kein Download nötig",
"connect.serverAddress": "Server Nickname oder Adresse:",
"connect.serverPassword": "Server Passwort:",
"connect.nickname": "Nickname:",
@@ -76,7 +78,6 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.playbackProfile": "Wiedergabeprofil:",
"connect.onetimeGrant": "Einmalige Berechtigung:",
"connect.hotkeyProfile": "Hotkeyprofil:",
"connect.sendMyTeamSpeakId": "myTeamSpeak ID senden",
"connect.soundPack": "Sound Pack:",
"connect.more": "Mehr",
"connect.less": "Weniger",
@@ -199,7 +200,6 @@ const translations: Record<Lang, Record<string, string>> = {
"favorites.newFavoriteName": "Neuer Favorit",
"favorites.showServerQueryClients": "ServerQuery Clients anzeigen",
"favorites.connectOnStartup": "Beim Start verbinden",
"favorites.enableMyTeamSpeak": "Aktiviere myTeamSpeak Funktionen",
"favorites.new": "Neuer Favorit",
"favorites.newFolder": "Neuer Ordner",
"favorites.remove": "Entfernen",
@@ -223,6 +223,28 @@ const translations: Record<Lang, Record<string, string>> = {
"options.section.wiedergabe": "Wiedergabe",
"options.section.aufnahme": "Aufnahme",
"options.section.design": "Design",
"design.subtitle": "Wähle das Erscheinungsbild der Anwendung.",
"design.theme.standard": "Standard",
"design.theme.standard.desc": "Das originale WebSpeak3-Design.",
"design.theme.nova": "Nova",
"design.theme.nova.desc": "Moderneres, dunkles Design mit abgerundeten Elementen.",
"design.status.connected": "Verbunden",
"design.custom.new": "+ Neues Design",
"design.custom.import": "Design importieren",
"design.custom.edit": "Bearbeiten",
"design.custom.duplicate": "Duplizieren",
"design.custom.export": "Exportieren",
"design.custom.delete": "Löschen",
"design.custom.deleteConfirm": "Dieses Design wirklich löschen?",
"design.custom.newTitle": "Neues Design erstellen",
"design.custom.editTitle": "Design bearbeiten",
"design.custom.name": "Name",
"design.custom.base": "Basis-Layout",
"design.custom.css": "CSS",
"design.custom.hint": "Dieses CSS wird geladen, solange das Design aktiv ist. Nutze .ts-app { ... } und die vorhandenen CSS-Variablen (--accent, --bg, --text, --border, ...), um Farben, Radien und Abstände anzupassen - mit .ts-app .irgendeine-klasse { display: none } oder order lässt sich auch das Layout verändern.",
"design.custom.save": "Speichern",
"design.custom.copyOf": "Kopie von {name}",
"design.custom.importError": "Diese Datei konnte nicht als WebSpeak3-Design gelesen werden.",
"options.section.erweiterungen": "Erweiterungen",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whispern",
@@ -239,6 +261,7 @@ const translations: Record<Lang, Record<string, string>> = {
"app.language.auto": "Systemvorgabe",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"playback.title": "Wiedergabe",
"playback.subtitle": "Ändern der Wiedergabeeinstellungen",
@@ -270,6 +293,7 @@ const translations: Record<Lang, Record<string, string>> = {
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo Dämpfung",
"recording.noiseSuppression": "Hintergrundgeräusche entfernen",
"recording.autoGainControl": "Automatische Verstärkung",
"info.address": "Adresse:",
"info.version": "Version:",
@@ -566,6 +590,7 @@ const translations: Record<Lang, Record<string, string>> = {
"away.setGlobalStatus": "Set global away status",
"connect.title": "Connect",
"connect.novaSubtitle": "WebSpeak3 runs entirely in the browser — no download needed",
"connect.serverAddress": "Server nickname or address:",
"connect.serverPassword": "Server password:",
"connect.nickname": "Nickname:",
@@ -577,7 +602,6 @@ const translations: Record<Lang, Record<string, string>> = {
"connect.playbackProfile": "Playback profile:",
"connect.onetimeGrant": "One-time privilege key:",
"connect.hotkeyProfile": "Hotkey profile:",
"connect.sendMyTeamSpeakId": "Send myTeamSpeak ID",
"connect.soundPack": "Sound pack:",
"connect.more": "More",
"connect.less": "Less",
@@ -700,7 +724,6 @@ const translations: Record<Lang, Record<string, string>> = {
"favorites.newFavoriteName": "New bookmark",
"favorites.showServerQueryClients": "Show ServerQuery clients",
"favorites.connectOnStartup": "Connect on startup",
"favorites.enableMyTeamSpeak": "Enable myTeamSpeak features",
"favorites.new": "New bookmark",
"favorites.newFolder": "New folder",
"favorites.remove": "Remove",
@@ -724,6 +747,28 @@ const translations: Record<Lang, Record<string, string>> = {
"options.section.wiedergabe": "Playback",
"options.section.aufnahme": "Capture",
"options.section.design": "Appearance",
"design.subtitle": "Choose the application's look.",
"design.theme.standard": "Standard",
"design.theme.standard.desc": "The original WebSpeak3 design.",
"design.theme.nova": "Nova",
"design.theme.nova.desc": "A more modern, dark design with rounded elements.",
"design.status.connected": "Connected",
"design.custom.new": "+ New design",
"design.custom.import": "Import design",
"design.custom.edit": "Edit",
"design.custom.duplicate": "Duplicate",
"design.custom.export": "Export",
"design.custom.delete": "Delete",
"design.custom.deleteConfirm": "Really delete this design?",
"design.custom.newTitle": "Create a new design",
"design.custom.editTitle": "Edit design",
"design.custom.name": "Name",
"design.custom.base": "Base layout",
"design.custom.css": "CSS",
"design.custom.hint": "This CSS loads while the design is active. Use .ts-app { ... } and the existing CSS variables (--accent, --bg, --text, --border, ...) to adjust colors, radii and spacing - with .ts-app .some-class { display: none } or order you can even change the layout.",
"design.custom.save": "Save",
"design.custom.copyOf": "Copy of {name}",
"design.custom.importError": "This file couldn't be read as a WebSpeak3 design.",
"options.section.erweiterungen": "Addons",
"options.section.hotkeys": "Hotkeys",
"options.section.whispern": "Whisper",
@@ -740,6 +785,7 @@ const translations: Record<Lang, Record<string, string>> = {
"app.language.auto": "System default",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"playback.title": "Playback",
"playback.subtitle": "Change your playback settings",
@@ -771,6 +817,7 @@ const translations: Record<Lang, Record<string, string>> = {
"recording.typingAttenuation": "Typing attenuation",
"recording.echoCancellation": "Echo cancellation",
"recording.noiseSuppression": "Remove background noise",
"recording.autoGainControl": "Automatic gain control",
"info.address": "Address:",
"info.version": "Version:",
@@ -1012,11 +1059,14 @@ const translations: Record<Lang, Record<string, string>> = {
"nachrichten.add": "Add",
"nachrichten.delete": "Delete",
},
"zh-CN": zhCN,
};
function detectSystemLang(): Lang {
const nav = typeof navigator !== "undefined" ? navigator.language : "en";
return nav?.toLowerCase().startsWith("de") ? "de" : "en";
const normalized = nav?.toLowerCase() ?? "en";
if (normalized.startsWith("zh")) return "zh-CN";
return normalized.startsWith("de") ? "de" : "en";
}
export function resolveLang(pref: LangPref): Lang {
@@ -1025,7 +1075,7 @@ export function resolveLang(pref: LangPref): Lang {
export function loadLangPref(): LangPref {
const raw = localStorage.getItem(LANGUAGE_KEY);
return raw === "de" || raw === "en" || raw === "auto" ? raw : "auto";
return raw === "de" || raw === "en" || raw === "zh-CN" || raw === "auto" ? raw : "auto";
}
export function saveLangPref(pref: LangPref) {
@@ -1054,6 +1104,10 @@ export function LanguageProvider({ children }: { children: ReactNode }) {
saveLangPref(langPref);
}, [langPref]);
useEffect(() => {
document.documentElement.lang = lang;
}, [lang]);
const t: TranslateFn = (key, vars) =>
interpolate(translations[lang][key] ?? translations.en[key] ?? key, vars);
-127
View File
@@ -1,127 +0,0 @@
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eaf3f8;background:#071018;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 3%,#0b2d3c 0,transparent 28%),#071018;color:#eaf3f8}.landing{overflow:hidden}.shell{width:min(1160px,calc(100% - 48px));margin:auto}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;align-items:center;gap:10px;color:#f5fbff;text-decoration:none;font:700 21px Inter,"Segoe UI",sans-serif}.brand img{width:35px;height:35px;border-radius:9px}.brand span span{color:#33c8ff}.nav nav{display:flex;gap:34px}.nav nav a,.nav-github{color:#9fb2bd;text-decoration:none;font-size:14px}.nav a:hover{color:white}.nav-github{padding:9px 14px;border:1px solid #ffffff20;border-radius:9px}.hero{min-height:680px;display:grid;grid-template-columns:48% 52%;align-items:center;padding-top:60px;padding-bottom:70px}.eyebrow,.kicker{font:600 12px Inter,"Segoe UI",sans-serif;letter-spacing:.14em;color:#3bd1ff}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 12px #34d399}.hero h1{font:700 clamp(52px,6vw,78px)/.98 Inter,"Segoe UI",sans-serif;letter-spacing:-.055em;margin:22px 0}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#28c5ff,#79e0ff);background-clip:text;color:transparent}.hero-copy>p{max-width:560px;color:#9eb1bd;font-size:18px;line-height:1.7}.actions{display:flex;gap:12px;align-items:center;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}.primary{background:#20bbed;color:#00141d;box-shadow:0 8px 30px #11b8eb2d}.primary:hover{background:#61d7fa}.secondary{color:#e7f1f6;border:1px solid #ffffff25;background:#ffffff08}.demo-note{font-size:12px!important;color:#708792!important}.demo-note span{color:#35d393}.hero-visual{position:relative;padding-left:34px}.glow{position:absolute;width:440px;height:300px;background:#17bce633;filter:blur(80px);inset:70px 0 0 80px}.app-frame{position:relative;z-index:1;background:#111d26;border:1px solid #5ddcff38;border-radius:14px;padding:8px;box-shadow:0 36px 80px #0008;transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)}.frame-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 7px;color:#68808c;font-size:10px}.frame-bar i{width:7px;height:7px;border-radius:50%;background:#344752}.frame-bar span{margin-left:8px}.app-frame img{width:100%;display:block;border-radius:7px}.signal-card{position:absolute;z-index:2;right:-15px;bottom:-35px;display:flex;align-items:center;gap:11px;padding:13px 15px;background:#101f29e8;border:1px solid #35d49a55;border-radius:12px;box-shadow:0 15px 40px #0007}.signal-card .signal{color:#40dda2;font-size:23px}.signal-card div{display:flex;flex-direction:column}.signal-card strong{font-size:12px}.signal-card small{font-size:9px;color:#78909c}.signal-card b{width:7px;height:7px;border-radius:50%;background:#3bd49e}.trust{height:90px;border-top:1px solid #ffffff10;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;color:#6c808b}.trust span{font-size:11px;text-transform:uppercase;letter-spacing:.15em}.trust strong{font:600 15px Inter,"Segoe UI",sans-serif;color:#8da0aa}.section{padding-top:118px;padding-bottom:118px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:52px}.section-head h2,.privacy h2,.showcase h2,.install h2{font:600 clamp(36px,4vw,52px)/1.08 Inter,"Segoe UI",sans-serif;letter-spacing:-.04em;margin:13px 0 0}.section-head>p{max-width:420px;color:#8398a4;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-grid article{min-height:220px;padding:28px;border:1px solid #ffffff10;background:linear-gradient(145deg,#0d1922,#09141c);border-radius:14px}.icon{display:grid;place-items:center;width:42px;height:42px;background:#16bcea12;border:1px solid #2acaf72e;border-radius:10px}.icon svg{width:22px;fill:none;stroke:#32c9f4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.feature-grid h3{font:600 18px Inter,"Segoe UI",sans-serif;margin:24px 0 10px}.feature-grid p,.privacy p,.showcase p,.install p{color:#8196a2;line-height:1.7}.privacy{padding:105px 0;background:linear-gradient(110deg,#07131b,#0a222c);border-block:1px solid #ffffff0c}.privacy-inner{display:flex;justify-content:space-between;align-items:center}.privacy-copy{max-width:620px}.icon.large{width:50px;height:50px;margin-bottom:25px}.privacy ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;list-style:none;color:#b5c5cd}.privacy li:before{content:"✓";color:#35d4a0;margin-right:9px}.privacy-card{width:300px;height:330px;border:1px solid #32c9f42c;border-radius:50% 50% 16px 16px;display:flex;flex-direction:column;align-items:cenLine truncated
@media(max-width:900px){.nav nav{display:none}.hero{grid-template-columns:1fr;padding-top:85px}.hero-visual{margin-top:60px;padding-left:0}.feature-grid{grid-template-columns:1fr 1fr}.trust{display:grid;grid-template-columns:repeat(3,1fr);height:auto;padding-block:24px;gap:18px}.trust span{grid-column:1/-1}.privacy-inner{gap:40px}.privacy-card{width:240px;height:280px}.flow{display:grid;grid-template-columns:1fr 1fr;gap:14px}.flow-wrap{display:block}.flow-arrow{display:none}.showcase{grid-template-columns:1fr}.screens{margin-top:20px}.footer-inner{flex-wrap:wrap;gap:20px}}
@media(max-width:600px){.shell{width:min(100% - 30px,1160px)}.nav{height:68px}.nav-github{font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.hero{min-height:auto;padding-top:68px}.hero h1{font-size:48px}.hero-copy>p{font-size:16px}.actions{align-items:stretch;flex-direction:column}.hero-visual{margin-top:45px}.signal-card{right:5px;bottom:-40px}.trust{margin-top:80px}.feature-grid{grid-template-columns:1fr}.section{padding-block:85px}.section-head{display:block}.privacy-inner{display:block}.privacy ul{grid-template-columns:1fr}.privacy-card{margin:55px auto 0}.flow{grid-template-columns:1fr}.showcase{gap:25px}.screens{height:270px}.screens img{width:86%}.command code{font-size:11px}.footer-inner{display:block;text-align:center}.footer-inner .brand{justify-content:center}.footer-inner>div{justify-content:center;margin-top:20px}}
/* Visual depth and product personality */
.landing{position:relative;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:72px 72px}.landing:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071018 0,transparent 18%,transparent 82%,#071018 100%);pointer-events:none}.ambient{position:absolute;border-radius:50%;filter:blur(90px);opacity:.24;pointer-events:none;animation:drift 12s ease-in-out infinite alternate}.ambient-one{width:420px;height:420px;background:#04bde7;right:-180px;top:780px}.ambient-two{width:360px;height:360px;background:#4567ff;left:-220px;top:1900px;animation-delay:-5s}@keyframes drift{to{transform:translate3d(0,90px,0) scale(1.15)}}.shell{position:relative;z-index:1}.hero-stats{display:flex;gap:28px;margin-top:30px}.hero-stats span{display:flex;flex-direction:column;color:#5e7783;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.hero-stats strong{color:#cce2eb;font-size:13px;letter-spacing:0;margin-bottom:4px}.signal-card b{box-shadow:0 0 0 0 #3bd49e;animation:pulse 2s infinite}@keyframes pulse{70%{box-shadow:0 0 0 8px #3bd49e00}}.voice-waves{position:absolute;z-index:2;left:4px;bottom:26px;height:54px;display:flex;align-items:center;gap:4px;padding:10px 12px;background:#07131bd9;border:1px solid #36caf52d;border-radius:10px;backdrop-filter:blur(12px)}.voice-waves i,.mini-wave i{display:block;width:3px;border-radius:3px;background:linear-gradient(#4ee3ff,#23c991);animation:wave 1.25s ease-in-out infinite}.voice-waves i:nth-child(3n){animation-delay:-.7s}.voice-waves i:nth-child(2n){animation-delay:-.35s}@keyframes wave{0%,100%{height:8px;opacity:.45}50%{height:34px;opacity:1}}.feature-grid{grid-template-columns:repeat(12,1fr)}.feature-grid article{grid-column:span 4;min-height:235px;position:relative;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.feature-grid article:hover{transform:translateY(-5px);border-color:#35cdf34a;background:linear-gradient(145deg,#10232d,#09141c)}.feature-grid .feature-1,.feature-grid .feature-5{grid-column:span 7}.feature-grid .feature-2,.feature-grid .feature-6{grid-column:span 5}.card-index{position:absolute;right:20px;top:17px;color:#ffffff12;font:700 34px Inter,sans-serif}.feature-1:after,.feature-5:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#21c9ee17;right:-50px;bottom:-90px}.mini-wave{position:absolute;right:38px;bottom:45px;height:56px;display:flex;align-items:center;gap:5px}.mini-wave i{width:4px;animation-duration:1.6s}.mini-wave i:nth-child(odd){animation-delay:-.8s}
@media(max-width:900px){.feature-grid{grid-template-columns:1fr 1fr}.feature-grid article,.feature-grid .feature-1,.feature-grid .feature-2,.feature-grid .feature-5,.feature-grid .feature-6{grid-column:auto}}
@media(max-width:600px){.landing{background-size:48px 48px}.feature-grid{grid-template-columns:1fr}.mini-wave{opacity:.35}.hero-stats{gap:14px;justify-content:space-between}.voice-waves{left:10px;bottom:-25px}}
@media(prefers-reduced-motion:reduce){.ambient,.signal-card b,.voice-waves i,.mini-wave i{animation:none}}
/* Motion system */
.hero-copy{animation:hero-in .85s cubic-bezier(.2,.75,.25,1) both}.hero-visual{animation:visual-in 1s .12s cubic-bezier(.2,.75,.25,1) both}.app-frame{animation:float-frame 6s 1.2s ease-in-out infinite}.nav{animation:nav-in .7s ease-out both}@keyframes hero-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}@keyframes visual-in{from{opacity:0;transform:translateX(50px) scale(.96)}to{opacity:1;transform:none}}@keyframes nav-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}@keyframes float-frame{0%,100%{transform:perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0)}50%{transform:perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-10px)}}.button.primary{position:relative;overflow:hidden}.button.primary:after{content:"";position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 42%,#ffffff7d 50%,transparent 58%);transform:translateX(-90%);animation:cta-shine 4.5s 2s ease-in-out infinite}@keyframes cta-shine{0%,68%{transform:translateX(-90%)}88%,100%{transform:translateX(90%)}}.reveal{opacity:0;transform:translateY(42px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.75,.25,1)}.reveal.is-visible{opacity:1;transform:none}.feature-grid article{transition-delay:calc(var(--card-order,0) * 70ms)}.flow-wrap{opacity:0;transform:translateY(20px);transition:opacity .55s var(--delay) ease,transform .55s var(--delay) ease}.is-visible .flow-wrap{opacity:1;transform:none}.flow-arrow{overflow:visible}.flow-arrow em{position:absolute;width:6px;height:6px;border-radius:50%;background:#62e4ff;box-shadow:0 0 12px #36d8ff;left:0;top:calc(50% - 3px);animation:data-packet 1.8s linear infinite}@keyframes data-packet{to{transform:translateX(38px)}}.privacy-card:before{content:"";position:absolute;inset:8%;border-radius:50%;border:1px dashed #45d8fa24;animation:orbit 16s linear infinite}.privacy-card:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#45d8fa;top:15%;left:26%;box-shadow:0 0 16px #45d8fa}@keyframes orbit{to{transform:rotate(360deg)}}.screens img:first-child{animation:screen-dark 6s ease-in-out infinite}.screens img:last-child{animation:screen-light 6s ease-in-out infinite}@keyframes screen-dark{0%,100%{transform:translateY(0) rotate(.2deg)}50%{transform:translateY(-8px) rotate(-.5deg)}}@keyframes screen-light{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(7px) rotate(.3deg)}}
@media(prefers-reduced-motion:reduce){.hero-copy,.hero-visual,.app-frame,.nav,.button.primary:after,.flow-arrow em,.privacy-card:before,.screens img{animation:none}.reveal,.flow-wrap{opacity:1;transform:none;transition:none}}
/* Refined architecture stream and self-hosting orbit */
.flow-arrow{height:26px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flow-arrow i{height:2px;top:12px;background:linear-gradient(90deg,#173a47 0%,#2acafa 35%,#9cecff 50%,#2acafa 65%,#173a47 100%);background-size:220% 100%;animation:stream-line 2.2s linear infinite}.flow-arrow b{font-size:22px;line-height:1;color:#7de5ff;background:#071018;padding:0 2px;transform:translateX(13px)}.flow-arrow em{display:none}@keyframes stream-line{to{background-position:-220% 0}}.privacy-card{border-radius:50%;width:330px;height:330px;border-color:#39d4f050;background:radial-gradient(circle,#16c8f51d 0,#0a1d2766 50%,transparent 72%);box-shadow:inset 0 0 50px #22c6ed12,0 0 60px #16c8f50d}.privacy-card:before,.privacy-card:after{display:none}.orbit{position:absolute;border-radius:50%;border:1px solid #55dcf85c;pointer-events:none}.orbit i{position:absolute;width:9px;height:9px;border-radius:50%;background:#70e5ff;box-shadow:0 0 14px #42dafa}.orbit-outer{inset:-18px;border-style:dashed;animation:orbit 18s linear infinite}.orbit-outer i{top:18%;right:5%}.orbit-inner{inset:24px;border-color:#45d2ed27;animation:orbit 11s linear infinite reverse}.orbit-inner i{width:6px;height:6px;bottom:10%;left:16%;background:#45dda6;box-shadow:0 0 12px #45dda6}.privacy-card>span,.privacy-card>strong,.privacy-card>small{position:relative;z-index:2}
@media(max-width:900px){.privacy-card{width:260px;height:260px}.orbit-outer{inset:-12px}}
@media(prefers-reduced-motion:reduce){.flow-arrow i,.orbit{animation:none}}
/* Clean architecture connectors */
.flow-wrap:not(:last-child){flex:1.08}.flow-wrap:last-child{flex:.92}.flow-arrow{position:relative;width:54px;min-width:54px;height:22px;margin:0 8px;overflow:visible;background:none}.flow-arrow i{position:absolute;left:0;right:5px;top:10px;width:auto;height:1px;background:#2ecdf65c;animation:none}.flow-arrow:after{content:"";position:absolute;right:4px;top:7px;width:6px;height:6px;border-top:1px solid #69e1ff;border-right:1px solid #69e1ff;transform:rotate(45deg)}.flow-arrow:before{content:"";position:absolute;z-index:2;left:2px;top:8px;width:16px;height:5px;border-radius:99px;background:linear-gradient(90deg,transparent,#81e9ff,transparent);filter:drop-shadow(0 0 5px #38d8ff);animation:connector-pulse 2.4s ease-in-out infinite}@keyframes connector-pulse{0%{transform:translateX(0);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateX(31px);opacity:0}}.flow-arrow b{display:none}
@media(max-width:900px){.flow-wrap:not(:last-child),.flow-wrap:last-child{flex:auto}.flow-arrow{display:none}}
@media(prefers-reduced-motion:reduce){.flow-arrow:before{animation:none;opacity:.7;transform:translateX(16px)}}
/* Staggered feature-card entrance */
.feature-grid{perspective:1000px}.feature-grid article{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);transform-origin:center bottom}.feature-grid article:nth-child(1){--card-delay:80ms}.feature-grid article:nth-child(2){--card-delay:160ms}.feature-grid article:nth-child(3){--card-delay:240ms}.feature-grid article:nth-child(4){--card-delay:320ms}.feature-grid article:nth-child(5){--card-delay:400ms}.feature-grid article:nth-child(6){--card-delay:480ms}.is-visible .feature-grid article{animation:card-arrive .72s var(--card-delay) cubic-bezier(.16,.82,.26,1) both}@keyframes card-arrive{0%{opacity:0;transform:translateY(38px) scale(.96) rotateX(5deg);border-color:#ffffff08}65%{opacity:1;transform:translateY(-4px) scale(1.008) rotateX(0);border-color:#38d2fa32}100%{opacity:1;transform:none;border-color:#ffffff10}}.feature-grid article .icon{opacity:0;transform:scale(.65) rotate(-10deg)}.is-visible .feature-grid article .icon{animation:icon-pop .48s calc(var(--card-delay) + 280ms) cubic-bezier(.2,1.4,.35,1) both}@keyframes icon-pop{to{opacity:1;transform:none}}.feature-grid article .card-index{opacity:0;transform:translateX(14px)}.is-visible .feature-grid article .card-index{animation:index-in .45s calc(var(--card-delay) + 220ms) ease-out both}@keyframes index-in{to{opacity:1;transform:none}}.feature-grid article:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,#4cdcff0b 48%,transparent 66%);transform:translateX(-100%);pointer-events:none}.is-visible .feature-grid article:before{animation:card-sheen .85s calc(var(--card-delay) + 180ms) ease-out both}@keyframes card-sheen{to{transform:translateX(100%)}}.is-visible .feature-grid article:hover{transform:translateY(-6px) scale(1.008);border-color:#35cdf34a;box-shadow:0 18px 45px #0003,0 0 0 1px #38d5fb0a}
@media(prefers-reduced-motion:reduce){.feature-grid article,.feature-grid article .icon,.feature-grid article .card-index{opacity:1;transform:none}.is-visible .feature-grid article,.is-visible .feature-grid article .icon,.is-visible .feature-grid article .card-index,.is-visible .feature-grid article:before{animation:none}}
/* Language switch */
.nav-actions{display:flex;align-items:center;gap:10px}.language-switch{display:flex;align-items:center;padding:3px;border:1px solid #ffffff18;border-radius:9px;background:#06101899}.language-switch button{min-width:32px;padding:6px 7px;border:0;border-radius:6px;background:transparent;color:#68808c;font:700 10px Inter,"Segoe UI",sans-serif;letter-spacing:.06em;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.language-switch button:hover{color:#d7e8ef}.language-switch button.active{background:#1ec4f21c;color:#58dcff;box-shadow:inset 0 0 0 1px #35d5ff2c}.language-switch button:focus-visible{outline:2px solid #42d8ff;outline-offset:2px}
@media(max-width:600px){.nav-actions{gap:6px}.language-switch button{min-width:28px;padding-inline:5px}.nav-github{padding-inline:10px;font-size:0}.nav-github:before{content:"GitHub";font-size:13px}.nav-github span{font-size:13px}}
.hero-actions{flex-wrap:wrap}.hero-actions .button{padding-inline:17px}.button.tertiary{padding-inline:4px;color:#7f96a2;background:transparent}.button.tertiary:hover{color:#d9e9ef}
@media(max-width:600px){.hero-actions .button.tertiary{padding:10px 4px}}
/* Project status */
.status{border-top:1px solid #ffffff0d}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.status-grid article{position:relative;min-height:220px;padding:28px;background:linear-gradient(145deg,#0d1922,#09141c);border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.status-grid article:after{content:"";position:absolute;width:130px;height:130px;right:-65px;bottom:-70px;border-radius:50%;background:#27c9f20c}.status-grid small{color:#6f8793;font-size:10px;text-transform:uppercase;letter-spacing:.13em}.status-grid h3{margin:28px 0 10px;font-size:19px}.status-grid p{margin:0;color:#8196a2;line-height:1.7}.status-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:#38d49b;box-shadow:0 0 12px #38d49b}.status-1{background:#3acbf4;box-shadow:0 0 12px #3acbf4}.status-2{background:#8d78ff;box-shadow:0 0 12px #8d78ff}.status-link{display:inline-block;margin-top:24px;color:#70dfff}.is-visible .status-grid article{animation:status-in .65s both}.is-visible .status-grid article:nth-child(2){animation-delay:100ms}.is-visible .status-grid article:nth-child(3){animation-delay:200ms}@keyframes status-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
/* Interactive product tour */
.product-tour{border-top:1px solid #ffffff0d}.tour-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.75fr);gap:22px;align-items:stretch}.tour-screen{position:relative;align-self:start;padding:8px;background:#0d1922;border:1px solid #35cdf32a;border-radius:15px;box-shadow:0 30px 70px #0007}.tour-screen>img{display:block;width:100%;border-radius:9px}.hotspot{position:absolute;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #a6f0ff;background:#0b1b25e8;color:#b8f3ff;border-radius:50%;font:700 11px Inter,sans-serif;cursor:pointer;box-shadow:0 0 0 7px #28c9f51a,0 0 20px #22cef56b;transition:transform .2s ease,background .2s ease}.hotspot:hover,.hotspot.active{transform:scale(1.14);background:#2ac9f5;color:#04141b}.hotspot-tree{left:13%;top:31%}.hotspot-chat{left:58%;top:43%}.hotspot-voice{left:47%;bottom:13%}.hotspot-whisper{left:27%;top:54%}.hotspot:not(.active){animation:hotspot-pulse 2.6s ease-in-out infinite}@keyframes hotspot-pulse{50%{box-shadow:0 0 0 11px #28c9f505,0 0 26px #22cef580}}.tour-caption{position:absolute;display:flex;gap:13px;left:22px;right:22px;bottom:18px;padding:15px 18px;border:1px solid #ffffff17;background:#07131be8;border-radius:11px;backdrop-filter:blur(14px);box-shadow:0 12px 35px #0006}.tour-caption>span{color:#38d4fb;font:700 11px Inter,sans-serif}.tour-caption strong{font-size:14px}.tour-caption p{margin:4px 0 0;color:#7f97a3;font-size:11px;line-height:1.45}.tour-tabs{display:flex;flex-direction:column;gap:9px}.tour-tabs button{display:flex;flex:1;gap:14px;align-items:flex-start;padding:19px;text-align:left;color:#8ca0aa;background:#09141c;border:1px solid #ffffff0d;border-radius:12px;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}.tour-tabs button:hover{transform:translateX(-3px);border-color:#38d4fa2c}.tour-tabs button.active{background:linear-gradient(120deg,#102732,#0b1922);border-color:#38d4fa4a}.tour-tabs button>span{color:#35d1fa;font:700 10px Inter,sans-serif}.tour-tabs button div{display:flex;flex-direction:column;gap:7px}.tour-tabs strong{color:#dce9ef;font-size:14px}.tour-tabs small{color:#718792;line-height:1.45}
/* Installation steps and copy feedback */
.install{padding-top:110px}.install-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(850px,100%);margin:38px auto 18px;text-align:left}.install-steps article{display:flex;gap:14px;padding:18px;background:#0b171f;border:1px solid #ffffff10;border-radius:12px}.install-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.install-steps article div{display:flex;flex-direction:column;gap:6px}.install-steps strong{font-size:13px}.install-steps small{color:#718792;line-height:1.45}.command button{min-width:34px;white-space:nowrap}.command button.copied{color:#43d9a3;font:700 11px Inter,sans-serif}
/* FAQ */
.faq{padding-top:40px}.faq-list{width:min(850px,100%);margin:auto;border-top:1px solid #ffffff13}.faq-list details{border-bottom:1px solid #ffffff13}.faq-list summary{display:flex;align-items:center;gap:18px;padding:23px 4px;color:#dce9ef;font-weight:600;cursor:pointer;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary span{color:#35cef7;font:700 10px Inter,sans-serif}.faq-list summary i{margin-left:auto;color:#5fdcff;font-style:normal;font-size:22px;transition:transform .25s ease}.faq-list details[open] summary i{transform:rotate(45deg)}.faq-list details p{margin:0;padding:0 50px 24px;color:#8095a0;line-height:1.7}.faq-list details[open] p{animation:faq-in .3s ease-out both}@keyframes faq-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:900px){.status-grid{grid-template-columns:1fr}.status-grid article{min-height:auto}.tour-layout{grid-template-columns:1fr}.tour-tabs{display:grid;grid-template-columns:1fr 1fr}.tour-tabs button{min-height:115px}.install-steps{grid-template-columns:1fr}}
@media(max-width:600px){.tour-screen{padding:4px}.hotspot{width:28px;height:28px;box-shadow:0 0 0 5px #28c9f51a}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin:5px 0 0;padding:13px}.tour-tabs{grid-template-columns:1fr}.tour-tabs button{min-height:auto}.install-steps{margin-top:28px}.faq{padding-top:20px}.faq-list summary{font-size:14px}.faq-list details p{padding-left:33px;padding-right:8px}.command{gap:10px}}
@media(prefers-reduced-motion:reduce){.is-visible .status-grid article,.hotspot:not(.active),.faq-list details[open] p{animation:none}}
/* Wide current-client preview */
.product-tour{width:min(1380px,calc(100% - 48px))}.product-tour .section-head{width:min(1160px,100%);margin-left:auto;margin-right:auto}.tour-layout{grid-template-columns:minmax(0,3.2fr) minmax(250px,.8fr);gap:18px}.tour-screen{padding:8px}.tour-image{position:relative;overflow:hidden;border-radius:9px}.tour-image>img{display:block;width:100%;height:auto}.hotspot-tree{left:11%;top:31%}.hotspot-chat{left:55%;top:82%}.hotspot-voice{left:18%;top:4.5%}.hotspot-whisper{left:19%;top:18%}.tour-caption{position:relative;left:auto;right:auto;bottom:auto;margin-top:8px;min-height:73px}.tour-tabs button{padding:17px}.tour-tabs small{font-size:11px}
@media(max-width:900px){.product-tour{width:min(100% - 48px,1160px)}.tour-layout{grid-template-columns:1fr}.tour-tabs button{padding:19px}}
@media(max-width:600px){.product-tour{width:min(100% - 30px,1160px)}.hotspot{width:26px;height:26px}.hotspot-tree{left:10%;top:29%}.hotspot-chat{left:54%;top:80%}.hotspot-voice{left:18%;top:3%}.hotspot-whisper{left:19%;top:18%}.tour-caption{margin-top:5px}}
/* Desktop and real mobile client composition */
.showcase .screens{height:510px}.screens .screen-desktop{width:86%;right:0;left:auto;top:42px;bottom:auto;z-index:1;border-color:#44d5fa33;box-shadow:0 28px 65px #000a}.phone-frame{position:absolute;z-index:3;left:0;bottom:0;width:27%;padding:8px 6px 7px;background:#09131a;border:1px solid #55dcfa50;border-radius:19px;box-shadow:0 28px 60px #000b,0 0 35px #25caf512;animation:phone-float 6s ease-in-out infinite}.phone-frame:before{content:"";position:absolute;inset:-1px;border-radius:19px;background:linear-gradient(145deg,#72e7ff55,transparent 25%,transparent 75%,#22c7ed22);pointer-events:none}.phone-frame>span{display:block;width:34%;height:4px;margin:0 auto 7px;border-radius:99px;background:#233943}.screens .phone-frame img,.screens .phone-frame img:last-child{position:relative;inset:auto;width:100%;display:block;border:0;border-radius:11px;box-shadow:none;animation:none}.screens .screen-desktop:first-child{animation:screen-dark 6s ease-in-out infinite}@keyframes phone-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(-.3deg)}}
@media(max-width:900px){.showcase .screens{height:520px;max-width:760px;width:100%;margin-inline:auto}.screens .screen-desktop{width:86%}.phone-frame{width:27%}}
@media(max-width:600px){.showcase .screens{height:390px}.screens .screen-desktop{width:88%;top:38px}.phone-frame{left:7px;width:34%;padding:6px 4px 5px;border-radius:14px}.phone-frame:before{border-radius:14px}.phone-frame>span{height:3px;margin-bottom:5px}.screens .phone-frame img{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.phone-frame{animation:none}}
/* Device-aware phone hardware */
.phone-frame{padding:7px 6px 12px;background:linear-gradient(145deg,#25323a,#050a0e 28%,#020507 72%,#18242b);border:1px solid #65808c;box-shadow:0 30px 65px #000c,0 0 36px #25caf516,inset 0 0 0 1px #ffffff0c}.phone-frame:after{content:"";position:absolute;inset:3px;border:1px solid #000;border-radius:inherit;pointer-events:none}.phone-sensor{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;height:14px}.phone-sensor span,.phone-sensor b{display:block}.phone-button{position:absolute;z-index:0;width:3px;background:linear-gradient(#70818a,#1b272d);border:1px solid #10171b;box-shadow:0 1px 2px #000}.phone-button-left{left:-4px}.phone-button-right{right:-4px}.phone-home{position:absolute;z-index:4;left:50%;bottom:4px;transform:translateX(-50%);height:3px;border-radius:99px;background:#b8c5ca80}.phone-android{border-radius:17px}.phone-android:before,.phone-android:after{border-radius:17px}.phone-android .phone-sensor span{width:7px;height:7px;border-radius:50%;background:#020405;box-shadow:inset 0 0 0 2px #142933,0 0 0 1px #000}.phone-android .phone-sensor span:after{content:"";display:block;width:2px;height:2px;margin:2px;border-radius:50%;background:#2f86a9}.phone-android .phone-sensor b{display:none}.phone-android .phone-button-left{display:none}.phone-android .phone-button-right{top:56px;height:42px;border-radius:0 3px 3px 0}.phone-android .phone-home{width:24%}.phone-android img{border-radius:10px!important}.phone-iphone{padding:7px 7px 13px;border-radius:27px;border-color:#83939b}.phone-iphone:before,.phone-iphone:after{border-radius:27px}.phone-iphone .phone-sensor{height:17px}.phone-iphone .phone-sensor span{position:relative;width:43px;height:12px;border-radius:99px;background:#010203;box-shadow:inset 0 1px 2px #000}.phone-iphone .phone-sensor span:after{content:"";position:absolute;right:5px;top:4px;width:4px;height:4px;border-radius:50%;background:#071b2b;box-shadow:inset 0 0 0 1px #173c52}.phone-iphone .phone-sensor b{display:none}.phone-iphone .phone-button-left{top:58px;height:34px;border-radius:3px 0 0 3px;box-shadow:0 42px 0 #26353d,0 72px 0 #26353d}.phone-iphone .phone-button-right{top:72px;height:48px;border-radius:0 3px 3px 0}.phone-iphone .phone-home{width:34%;background:#e1e8ebaa}.phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-frame{padding:5px 4px 10px}.phone-sensor{height:10px}.phone-android .phone-sensor span{width:5px;height:5px}.phone-android .phone-sensor span:after{width:1px;height:1px;margin:2px}.phone-android .phone-button-right{top:40px;height:30px}.phone-iphone{padding:5px 5px 11px;border-radius:19px}.phone-iphone:before,.phone-iphone:after{border-radius:19px}.phone-iphone .phone-sensor{height:12px}.phone-iphone .phone-sensor span{width:30px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:3px;height:3px}.phone-iphone .phone-button-left{top:42px;height:24px;box-shadow:0 30px 0 #26353d,0 51px 0 #26353d}.phone-iphone .phone-button-right{top:50px;height:34px}.phone-iphone img{border-radius:13px!important}}
/* Refined edge-to-edge iPhone */
.phone-iphone{width:28%;padding:5px;background:linear-gradient(145deg,#55585b,#17191b 18%,#050607 55%,#2f3234);border:1px solid #777b7e;border-radius:24px;box-shadow:0 30px 60px #000b,0 0 0 1px #000,inset 0 0 0 1px #ffffff18}.phone-iphone:before{inset:1px;border-radius:23px;background:linear-gradient(120deg,#ffffff1f,transparent 18%,transparent 78%,#ffffff0d)}.phone-iphone:after{inset:4px;border-color:#020303;border-radius:20px}.phone-iphone .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-iphone .phone-sensor span{width:38px;height:11px;background:#010101;box-shadow:0 1px 3px #000,inset 0 0 0 1px #151719}.phone-iphone .phone-sensor span:after{right:5px;top:4px;width:3px;height:3px;background:#0b2134}.phone-iphone .phone-button{width:2px;background:#3c3f42;border-color:#151719;box-shadow:none}.phone-iphone .phone-button-left{left:-3px;top:58px;height:27px;box-shadow:0 36px 0 #3c3f42,0 65px 0 #3c3f42}.phone-iphone .phone-button-right{right:-3px;top:74px;height:40px}.phone-iphone .phone-home{bottom:9px;width:31%;height:3px;background:#eef2f3d9;filter:drop-shadow(0 1px 1px #000)}.screens .phone-iphone img{border-radius:19px!important}
@media(max-width:600px){.phone-iphone{left:7px;width:35%;padding:4px;border-radius:18px}.phone-iphone:before{border-radius:17px}.phone-iphone:after{inset:3px;border-radius:15px}.phone-iphone .phone-sensor{top:7px}.phone-iphone .phone-sensor span{width:27px;height:8px}.phone-iphone .phone-sensor span:after{right:4px;top:3px;width:2px;height:2px}.phone-iphone .phone-button-left{top:42px;height:19px;box-shadow:0 26px 0 #3c3f42,0 47px 0 #3c3f42}.phone-iphone .phone-button-right{top:51px;height:29px}.phone-iphone .phone-home{bottom:6px;height:2px}.screens .phone-iphone img{border-radius:14px!important}}
/* Edge-to-edge Android display overlays */
.phone-android{padding:5px}.phone-android .phone-sensor{position:absolute;z-index:6;top:10px;left:50%;width:auto;height:auto;transform:translateX(-50%)}.phone-android .phone-sensor span{width:8px;height:8px;background:#020405;box-shadow:0 0 0 1px #000,0 1px 3px #000,inset 0 0 0 2px #142933}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:3px;background:#338db2}.phone-android .phone-home{z-index:6;bottom:9px;width:28%;height:3px;background:#d6e1e599;filter:drop-shadow(0 1px 1px #000)}.screens .phone-android img{border-radius:12px!important}
@media(max-width:600px){.phone-android{padding:4px}.phone-android .phone-sensor{top:7px}.phone-android .phone-sensor span{width:6px;height:6px}.phone-android .phone-sensor span:after{width:2px;height:2px;margin:2px}.phone-android .phone-home{bottom:6px;height:2px}.screens .phone-android img{border-radius:9px!important}}
/* Animated three-step connection */
.quick-connect{border-bottom:1px solid #ffffff0d}.connect-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;align-items:stretch}.connect-steps{display:flex;flex-direction:column;gap:10px}.connect-steps article{display:flex;align-items:center;gap:18px;flex:1;padding:20px 22px;background:#0a161e;border:1px solid #ffffff0f;border-radius:12px}.connect-steps article>span{color:#35cff8;font:700 11px Inter,sans-serif}.connect-steps article div{display:flex;flex-direction:column;gap:6px}.connect-steps strong{font-size:14px}.connect-steps small{color:#718792;line-height:1.5}.connect-demo{position:relative;padding:24px;background:linear-gradient(145deg,#0e1e28,#071119);border:1px solid #42d8fa35;border-radius:16px;box-shadow:0 28px 70px #0007;overflow:hidden}.connect-demo:after{content:"";position:absolute;width:260px;height:260px;right:-120px;bottom:-150px;border-radius:50%;background:#25cdf617}.demo-window-bar{display:flex;align-items:center;gap:6px;margin:-6px 0 24px;color:#607884;font-size:10px}.demo-window-bar i{width:7px;height:7px;border-radius:50%;background:#314650}.demo-window-bar span{margin-left:7px}.connect-demo label{position:relative;z-index:1;display:block;margin-top:13px}.connect-demo label small{display:block;margin-bottom:7px;color:#718995;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.fake-input{height:48px;display:flex;align-items:center;padding:0 14px;background:#050b10;border:1px solid #ffffff15;border-radius:9px;color:#c9d8df;font:500 13px ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden}.typed-server{display:block;width:0;white-space:nowrap;overflow:hidden}.is-visible .typed-server{animation:type-server 9s 1s steps(19,end) infinite}.fake-input b{width:1px;height:19px;background:#48d7fa;animation:input-caret .75s step-end infinite}.connect-demo>button{position:relative;z-index:1;width:100%;height:46px;margin-top:17px;border:0;border-radius:9px;background:#26c6f3;color:#04141b;font-weight:800;cursor:pointer}.connect-demo>button span{margin-left:12px}.is-visible .connect-demo>button{animation:connect-button 9s 1s infinite}.connect-progress{position:relative;z-index:1;height:22px;display:flex;align-items:center;justify-content:center;margin-top:14px;color:#78909b;font-size:11px}.connect-progress i{width:6px;height:6px;margin-right:8px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}.connect-progress span{position:absolute}.progress-connected{color:#53dda9;opacity:0}.is-visible .progress-connecting{animation:connecting-text 9s 1s infinite}.is-visible .progress-connected{animation:connected-text 9s 1s infinite}@keyframes type-server{0%,8%{width:0}34%,78%{width:19ch}88%,100%{width:0}}@keyframes input-caret{50%{opacity:0}}@keyframes connect-button{0%,38%{box-shadow:none;transform:none}43%{box-shadow:0 0 0 5px #29cbf21c;transform:translateY(1px)}48%,100%{box-shadow:none;transform:none}}@keyframes connecting-text{0%,48%{opacity:1}53%,100%{opacity:0}}@keyframes connected-text{0%,50%{opacity:0}55%,82%{opacity:1}88%,100%{opacity:0}}
/* Live public GitHub stats */
.github-live{padding:90px 0;background:linear-gradient(110deg,#07131b,#0a202a);border-block:1px solid #ffffff0d}.github-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}.github-copy h2{font:600 clamp(32px,3.5vw,46px)/1.08 Inter,sans-serif;letter-spacing:-.04em;margin:13px 0}.github-copy p{color:#8196a2;line-height:1.7}.github-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.github-metrics article{min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:22px;background:#08141c;border:1px solid #ffffff10;border-radius:13px}.github-metrics article>span{color:#35d0f8;font-size:16px}.github-metrics strong{margin:12px 0 6px;color:#e4f0f5;font-size:23px}.github-metrics small{color:#718792;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
/* Install method switcher */
.install-tabs{width:min(700px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:24px auto 8px;padding:5px;background:#050b10;border:1px solid #ffffff12;border-radius:11px}.install-tabs button{padding:10px 8px;border:0;border-radius:7px;background:transparent;color:#708792;font:700 11px Inter,sans-serif;cursor:pointer}.install-tabs button:hover{color:#d5e6ed}.install-tabs button.active{color:#53d9fb;background:#1bc8f216;box-shadow:inset 0 0 0 1px #3ed7fa2a}.command code{white-space:pre-wrap;overflow-wrap:anywhere}
/* Browser compatibility */
.browser-check{border-top:1px solid #ffffff0d}.browser-table{border:1px solid #ffffff10;border-radius:14px;overflow:hidden}.browser-table article{display:grid;grid-template-columns:44px 1fr 160px 1.4fr;align-items:center;gap:16px;min-height:78px;padding:14px 20px;background:#0a151d;border-bottom:1px solid #ffffff0d}.browser-table article:last-child{border-bottom:0}.browser-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#061117;font-weight:900;background:linear-gradient(145deg,#38d5fa,#38da9c)}.browser-1{background:linear-gradient(145deg,#f5c84d,#ec6a42)}.browser-2{background:linear-gradient(145deg,#9272ff,#4a9df5)}.browser-3{background:linear-gradient(145deg,#55dafa,#4c7fff)}.browser-table strong{font-size:14px}.browser-table b{justify-self:start;padding:6px 9px;border-radius:99px;background:#35d29b12;color:#53dca8;font-size:10px}.browser-table article:last-child b{background:#f2b84a12;color:#efc469}.browser-table small{color:#718792;line-height:1.45}
@media(max-width:900px){.connect-layout,.github-inner{grid-template-columns:1fr}.github-inner{gap:35px}.github-metrics{grid-template-columns:repeat(3,1fr)}.browser-table article{grid-template-columns:44px 1fr 130px}.browser-table small{grid-column:2/-1}}
@media(max-width:600px){.connect-layout{gap:18px}.connect-demo{padding:18px}.github-live{padding:70px 0}.github-metrics{grid-template-columns:1fr}.github-metrics article{min-height:110px}.install-tabs{grid-template-columns:1fr 1fr}.browser-table article{grid-template-columns:38px 1fr;gap:10px;padding:16px}.browser-table b{grid-column:2}.browser-table small{grid-column:2}}
@media(prefers-reduced-motion:reduce){.typed-server{width:19ch}.is-visible .typed-server,.fake-input b,.is-visible .connect-demo>button,.is-visible .progress-connecting,.is-visible .progress-connected{animation:none}.progress-connecting{display:none}.progress-connected{opacity:1}}
/* Keep the animated connection indicator beside its label. */
.connect-progress>i{display:none}
.connect-progress span{display:flex;align-items:center;gap:8px}
.progress-connecting:before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#38d89e;box-shadow:0 0 10px #38d89e}
/* Open-source community callout */
.community{position:relative;padding:100px 0;background:linear-gradient(135deg,#07131b 0%,#09232d 52%,#07131b 100%);border-block:1px solid #ffffff0d;overflow:hidden}.community:before{content:"";position:absolute;inset:-50% auto auto 55%;width:520px;height:520px;border-radius:50%;background:#27cff611;filter:blur(3px)}.community-inner{position:relative}.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:42px}.community-grid>a{position:relative;min-height:245px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;color:inherit;text-decoration:none;background:#07131bd9;border:1px solid #ffffff11;border-radius:14px;overflow:hidden;transition:transform .25s ease,border-color .25s ease,background .25s ease}.community-grid>a:after{content:"";position:absolute;right:-60px;bottom:-80px;width:170px;height:170px;border-radius:50%;background:#27cff60b;transition:transform .35s ease,background .35s ease}.community-grid>a:hover{transform:translateY(-6px);border-color:#39d4f84a;background:#091a23}.community-grid>a:hover:after{transform:scale(1.2);background:#27cff616}.community-icon{position:relative;z-index:1;display:grid;place-items:center;width:43px;height:43px;margin-bottom:34px;border-radius:11px;color:#42d5f8;background:#24c8f012;border:1px solid #30d2f836;font:800 17px Inter,sans-serif}.community-idea{color:#efc66d;background:#efc66d10;border-color:#efc66d32}.community-code{width:52px;color:#65dea9;background:#42d99c10;border-color:#42d99c32;font-size:13px}.community-grid a div{position:relative;z-index:1}.community-grid strong{font-size:18px;color:#e1edf2}.community-grid p{min-height:66px;margin:12px 0 22px;color:#748b96;font-size:13px;line-height:1.65}.community-grid small{color:#3bcff3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.community-grid small b{margin-left:5px}.community-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:28px 0 0;color:#657d88;font-size:11px}.community-note span{color:#3bd5a2;font-size:8px;box-shadow:0 0 12px #3bd5a2}.connect-demo>button:focus-visible,.community-grid>a:focus-visible{outline:2px solid #45d8fa;outline-offset:3px}
@media(max-width:800px){.community-grid{grid-template-columns:1fr}.community-grid>a{min-height:190px}.community-grid p{min-height:auto}}
@media(max-width:600px){.community{padding:72px 0}.community-grid{margin-top:28px}.community-note{align-items:flex-start;text-align:left}}
/* Floating navigation and scroll-aware section state */
.nav{position:sticky;z-index:50;top:12px;height:64px;margin-top:12px;padding:0 16px;border:1px solid #ffffff17;border-radius:14px;background:#07131bd9;box-shadow:0 15px 45px #0005,inset 0 1px #ffffff08;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%)}.nav .brand img{transition:transform .3s ease,box-shadow .3s ease}.nav .brand:hover img{transform:rotate(-5deg) scale(1.06);box-shadow:0 0 22px #31cdf535}.nav nav{height:100%;align-items:center}.nav nav a{position:relative;display:flex;height:100%;align-items:center;transition:color .22s ease}.nav nav a:after{content:"";position:absolute;left:50%;right:50%;bottom:-1px;height:2px;border-radius:99px;background:#3bd3fa;box-shadow:0 0 12px #3bd3fa;transition:left .25s ease,right .25s ease}.nav nav a:hover:after,.nav nav a.active:after{left:0;right:0}.nav nav a.active{color:#e9f8fe}.nav-github{transition:color .22s ease,border-color .22s ease,background .22s ease,transform .22s ease}.nav-github:hover{transform:translateY(-1px);border-color:#3bd2f74a;background:#26c9f20c}
/* Staggered motion for the newer landing-page sections */
.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .6s cubic-bezier(.2,.75,.25,1),border-color .25s ease,background .25s ease}.is-visible .connect-steps article,.is-visible .github-metrics article,.is-visible .browser-table article,.is-visible .community-grid>a{opacity:1;transform:none}.is-visible .connect-steps article:nth-child(2),.is-visible .github-metrics article:nth-child(2),.is-visible .browser-table article:nth-child(2),.is-visible .community-grid>a:nth-child(2){transition-delay:90ms}.is-visible .connect-steps article:nth-child(3),.is-visible .github-metrics article:nth-child(3),.is-visible .browser-table article:nth-child(3),.is-visible .community-grid>a:nth-child(3){transition-delay:180ms}.is-visible .browser-table article:nth-child(4){transition-delay:270ms}.github-metrics article>span{transform-origin:center;transition:transform .3s ease}.github-metrics article:hover>span{transform:rotate(-8deg) scale(1.22)}.github-metrics article{transition-property:opacity,transform,border-color,background}.github-metrics article:hover{border-color:#39d4f83c;background:#0a1a23}.browser-table article{transition-property:opacity,transform,background}.browser-table article:hover{background:#0c1b24}.browser-logo{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}.browser-table article:hover .browser-logo{transform:rotate(-7deg) scale(1.09);box-shadow:0 0 22px #39d6f425}.community.is-visible:before{animation:community-glow 8s ease-in-out infinite}.community-note span{animation:community-pulse 2.1s ease-in-out infinite}@keyframes community-glow{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-35px,24px) scale(1.08)}}@keyframes community-pulse{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
@media(max-width:900px){.nav{top:8px;margin-top:8px}}
@media(max-width:600px){.nav{height:58px;padding:0 10px;border-radius:12px}.nav .brand{font-size:18px}.nav .brand img{width:31px;height:31px}}
@media(prefers-reduced-motion:reduce){.nav .brand img,.nav nav a:after,.nav-github,.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a,.github-metrics article>span,.browser-logo,.community.is-visible:before,.community-note span{animation:none;transition:none}.connect-steps article,.github-metrics article,.browser-table article,.community-grid>a{opacity:1;transform:none}}
body{overflow-x:hidden}.landing{overflow:visible}.is-visible .community-grid>a:hover{transform:translateY(-6px)}
/* 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}}
-238
View File
@@ -1,238 +0,0 @@
import { StrictMode, useEffect, useState, type ReactNode } from "react";
import { createRoot } from "react-dom/client";
import "./landing.css";
const github = "https://github.com/Moepchi/webspeak3";
const demo = "https://demo.webspeak3.de/";
const client = "https://client.webspeak3.de/";
type Lang = "de" | "en";
type PhoneStyle = "android" | "iphone";
function detectPhoneStyle(): PhoneStyle {
const device = `${navigator.userAgent} ${navigator.platform}`.toLowerCase();
return /iphone|ipad|ipod|macintosh|mac os/.test(device) ? "iphone" : "android";
}
const copy = {
de: {
nav: ["Features", "Status", "Architektur", "Einblick", "Installation", "Community"], client: "Client öffnen", hero: ["Direkt im Browser.", "Dein vertrauter Voice-Client, neu gedacht fürs Web. Ohne Installation, ohne Cloud-Zwang – einfach Tab öffnen und verbinden."],
demo: "Live Demo starten", github: "Auf GitHub ansehen", demoNote: "Die Demo nutzt simulierte Daten – ganz ohne echten Server.", built: "Gebaut mit",
featureKicker: "ALLES, WAS DU BRAUCHST", featureTitle: "Voice-Chat ohne Kompromisse.", featureIntro: "Die Funktionen, die du von einem Desktop-Client erwartest – in einer modernen, offenen Web-App.",
stepsKicker: "SO EINFACH GEHT'S", stepsTitle: "Server eingeben. Verbunden.", stepsText: "WebSpeak3 ist nicht an einen bestimmten Server gebunden. Öffne den Client, gib eine beliebige erreichbare Adresse ein und leg los.", steps: [["01", "Client öffnen", "Keine Installation und kein Konto nötig."], ["02", "Serveradresse eingeben", "Zum Beispiel voice.teamspeak.com."], ["03", "Direkt verbinden", "Voice, Chat und Channels stehen sofort bereit."]], connecting: "Verbindung wird hergestellt", connected: "Verbunden", nickname: "Nickname", connectNow: "Verbinden",
features: [["voice", "Voice ohne Umwege", "Opus-Audio mit geringer Latenz, Sprachaktivierung, Gerätewahl und anpassbarer Empfindlichkeit."],["chat", "Chat, der alles bündelt", "Channel-, Server- und private Chats in übersichtlichen Tabs – inklusive Server-Events."],["tree", "Live Channel Tree", "Channels, Nutzer, Status, Länderflaggen und Wechsel in Echtzeit – vertraut, aber fürs Web gedacht."],["whisper", "Gezieltes Whispern", "Sprich mit einzelnen Clients oder ganzen Channels, ohne deinen aktuellen Raum zu stören."],["docker", "Self-hosted by design", "Ein Container für Web-App, Gateway und Connector. Deine Instanz, deine Regeln – mit freier Serverwahl."],["mobile", "Unterwegs verbunden", "Eine echte responsive Oberfläche für schmale Displays – nicht nur Desktop in klein."]] as const,
privacyKicker: "PRIVATSPHÄRE EINGEBAUT", privacyTitle: ["Dein Web-Client.", "Freie Serverwahl."], privacyText: "Du hostest nur WebSpeak3 und sein Gateway selbst. Von dort verbindest du dich mit jedem erreichbaren TeamSpeak-Server – egal, wo er läuft oder wem er gehört.", privacyList: ["WebSpeak3 vollständig selbst hostbar", "Freie Wahl des TeamSpeak-Servers", "Am Zielserver ist keine Änderung nötig"], control: ["Kontrolle über", "deinen Client"],
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", 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"]],
communityKicker: "GEMEINSAM BESSER", communityTitle: "Dein Feedback formt WebSpeak3.", communityText: "WebSpeak3 entsteht offen auf GitHub. Melde Probleme, teile Ideen oder hilf direkt bei der Entwicklung.", communityCards: [["bug", "Fehler melden", "Etwas funktioniert nicht wie erwartet? Beschreibe das Problem und deine Umgebung.", "Bug erstellen"], ["idea", "Idee vorschlagen", "Dir fehlt eine Funktion oder du hast eine bessere Lösung im Kopf? Lass sie uns wissen.", "Idee teilen"], ["code", "Mitentwickeln", "Code, Tests, Dokumentation und Übersetzungen sind ausdrücklich willkommen.", "Repository öffnen"]], communityNote: "Offen, transparent und direkt mit den Menschen, die WebSpeak3 nutzen.",
faqKicker: "GUT ZU WISSEN", faqTitle: "Fragen, bevor du loslegst.", faqs: [["Bin ich an einen bestimmten TeamSpeak-Server gebunden?", "Nein. Du kannst jede erreichbare TS3- oder TS6-Serveradresse eingeben – unabhängig davon, wer den Server hostet oder wo er läuft."], ["Was muss ich selbst hosten?", "Nur WebSpeak3 mit Gateway und Connector. Der TeamSpeak-Server kann dein eigener, der eines Freundes oder ein beliebiger anderer erreichbarer Server sein."], ["Wo laufen meine Sprachdaten?", "Sie laufen über deine WebSpeak3-Instanz direkt zum ausgewählten TeamSpeak-Server – ohne eine zentrale WebSpeak3-Cloud."], ["Welche Browser werden unterstützt?", "Moderne Chromium- und Firefox-Browser sind das Hauptziel. Einzelne Audiofunktionen können je nach Browser und Gerät abweichen."], ["Benötigt WebSpeak3 Zugriff auf mein Mikrofon?", "Erst wenn du das Mikrofon aktivierst. Dann fragt der Browser wie üblich nach deiner Erlaubnis."], ["Ist das Projekt produktionsreif?", "WebSpeak3 ist aktuell als Beta beziehungsweise Prototyp gekennzeichnet. Teste deine gewünschte Umgebung daher vor einem breiten Einsatz."], ["Kann ich mithelfen?", "Ja. Fehlerberichte, Ideen und Beiträge sind über das öffentliche GitHub-Repository willkommen."]],
disclaimer: "Ein unabhängiges Open-Source-Projekt. Nicht mit TeamSpeak Systems GmbH verbunden.", imageAlt: "WebSpeak3 Client im Dark Mode",
},
en: {
nav: ["Features", "Status", "Architecture", "Explore", "Installation", "Community"], client: "Open client", hero: ["Right in your browser.", "The voice client you know, reimagined for the web. No installation, no cloud lock-in — just open a tab and connect."],
demo: "Launch live demo", github: "View on GitHub", demoNote: "The demo uses simulated data — no real server required.", built: "Built with",
featureKicker: "EVERYTHING YOU NEED", featureTitle: "Voice chat without compromise.", featureIntro: "Everything you expect from a desktop client — inside a modern, open web app.",
stepsKicker: "THAT SIMPLE", stepsTitle: "Enter a server. Connected.", stepsText: "WebSpeak3 is not tied to a particular server. Open the client, enter any reachable address and get started.", steps: [["01", "Open the client", "No installation or account required."], ["02", "Enter a server address", "For example voice.teamspeak.com."], ["03", "Connect directly", "Voice, chat and channels are ready right away."]], connecting: "Establishing connection", connected: "Connected", nickname: "Nickname", connectNow: "Connect",
features: [["voice", "Voice without detours", "Low-latency Opus audio, voice activation, device selection and adjustable sensitivity."],["chat", "Chat that brings it together", "Channel, server and private chats in clear tabs — including live server events."],["tree", "Live channel tree", "Channels, users, status icons, country flags and switching in real time — familiar, built for the web."],["whisper", "Targeted whisper", "Talk to individual clients or entire channels without interrupting your current room."],["docker", "Self-hosted by design", "One container for the web app, gateway and connector. Your instance, your rules — with free choice of server."],["mobile", "Connected on the go", "A truly responsive interface for narrow screens — not merely a shrunken desktop UI."]] as const,
privacyKicker: "PRIVACY BUILT IN", privacyTitle: ["Your web client.", "Your choice of server."], privacyText: "You only self-host WebSpeak3 and its gateway. From there, connect to any reachable TeamSpeak server — no matter where it runs or who hosts it.", privacyList: ["WebSpeak3 is fully self-hostable", "Free choice of TeamSpeak server", "No changes required on the target server"], control: ["Control over", "your client"],
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", 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"]],
communityKicker: "BETTER TOGETHER", communityTitle: "Your feedback shapes WebSpeak3.", communityText: "WebSpeak3 is built openly on GitHub. Report problems, share ideas or contribute directly to development.", communityCards: [["bug", "Report a bug", "Something does not work as expected? Describe the issue and your environment.", "Create bug report"], ["idea", "Suggest an idea", "Missing a feature or have a better solution in mind? Let us know.", "Share an idea"], ["code", "Contribute", "Code, tests, documentation and translations are all welcome.", "Open repository"]], communityNote: "Open, transparent and directly shaped by the people who use WebSpeak3.",
faqKicker: "GOOD TO KNOW", faqTitle: "Questions before you start.", faqs: [["Am I tied to a specific TeamSpeak server?", "No. Enter any reachable TS3 or TS6 server address, regardless of where it runs or who hosts it."], ["What do I need to self-host?", "Only WebSpeak3 with its gateway and connector. The TeamSpeak server can be yours, a friend's, or any other reachable server."], ["Where does my voice data go?", "It travels through your WebSpeak3 instance directly to the selected TeamSpeak server — without a central WebSpeak3 cloud."], ["Which browsers are supported?", "Modern Chromium and Firefox browsers are the main targets. Individual audio features may vary by browser and device."], ["Does WebSpeak3 need microphone access?", "Only when you enable the microphone. Your browser will then ask for permission as usual."], ["Is the project production-ready?", "WebSpeak3 is currently marked as a beta/prototype. Test your intended environment before rolling it out broadly."], ["Can I contribute?", "Yes. Bug reports, ideas and contributions are welcome through the public GitHub repository."]],
disclaimer: "An independent open-source project. Not affiliated with TeamSpeak Systems GmbH.", imageAlt: "WebSpeak3 client in dark mode",
},
} as const;
function Icon({ name }: { name: string }) {
const paths: Record<string, ReactNode> = {
voice: <><path d="M12 3a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Z"/><path d="M5 10.5a7 7 0 0 0 14 0M12 17.5V22M8.5 22h7"/></>,
chat: <><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z"/><path d="M8 9h8M8 13h5"/></>,
tree: <><path d="M5 4v16M5 8h6M5 16h6"/><rect x="11" y="5" width="8" height="6" rx="2"/><rect x="11" y="13" width="8" height="6" rx="2"/></>,
whisper: <><path d="M4 13a8 8 0 0 1 8-8M4 18A13 13 0 0 1 17 5"/><path d="M14 13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 15v6"/></>,
docker: <><path d="M3 11h18c0 6-3 9-9 9s-9-3-9-9Z"/><path d="M7 11V7h4v4M11 11V5h4v6M15 11V7h4v4"/></>,
mobile: <><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M10 5h4M11 19h2"/></>,
lock: <><rect x="4" y="10" width="16" height="11" rx="3"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/></>,
};
return <svg viewBox="0 0 24 24" aria-hidden="true">{paths[name]}</svg>;
}
const installCommands = [
"docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up -d",
"caddy reverse-proxy --from webspeak3.example.com --to localhost:8080",
"git clone https://github.com/Moepchi/webspeak3.git && cd webspeak3 && docker compose up --build",
] 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>(() => {
const saved = localStorage.getItem("webspeak3:landing-language");
if (saved === "de" || saved === "en") return saved;
return navigator.language.toLowerCase().startsWith("de") ? "de" : "en";
});
const t = copy[lang];
const [activeTour, setActiveTour] = useState(0);
const [copied, setCopied] = useState(false);
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]);
setCopied(true);
window.setTimeout(() => setCopied(false), 1800);
};
useEffect(() => {
localStorage.setItem("webspeak3:landing-language", lang);
document.documentElement.lang = lang;
document.title = lang === "de"
? "WebSpeak3 – TeamSpeak 3 im Browser | Open Source"
: "WebSpeak3 – TeamSpeak 3 in Your Browser | Open Source";
}, [lang]);
useEffect(() => {
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?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(
entries => entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
}
}),
{ threshold: 0.14 },
);
elements.forEach(element => observer.observe(element));
return () => observer.disconnect();
}, []);
useEffect(() => {
const sections = ["features", "status", "architecture", "tour", "install", "community"]
.map(id => document.getElementById(id))
.filter((section): section is HTMLElement => section !== null);
const updateActiveSection = () => {
const marker = window.innerHeight * 0.34;
let current = "";
sections.forEach(section => {
if (section.getBoundingClientRect().top <= marker) current = section.id;
});
setActiveNav(current);
};
updateActiveSection();
window.addEventListener("scroll", updateActiveSection, { passive: true });
window.addEventListener("resize", updateActiveSection);
return () => {
window.removeEventListener("scroll", updateActiveSection);
window.removeEventListener("resize", updateActiveSection);
};
}, []);
return <div className="landing">
<div className="ambient ambient-one"></div><div className="ambient ambient-two"></div>
<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"); 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">
<section className="hero shell">
<div className="hero-copy">
<div className="eyebrow"><span></span> Open Source · Self-hosted · Beta</div>
<h1>TeamSpeak 3.<br/><em>{t.hero[0]}</em></h1>
<p>{t.hero[1]}</p>
<div className="actions hero-actions"><a className="button primary" href={client}>{t.client} <span>→</span></a><a className="button secondary" href={demo}>{t.demo}</a><a className="button tertiary" href={github} target="_blank" rel="noreferrer">{t.github} ↗</a></div>
<p className="demo-note"><span>●</span> {t.demoNote}</p>
<div className="hero-stats"><span><strong>&lt; 30 ms</strong> Voice latency</span><span><strong>100%</strong> self-hosted</span><span><strong>MIT</strong> open source</span></div>
</div>
<div className="hero-visual">
<div className="glow"></div>
<div className="app-frame"><div className="frame-bar"><i></i><i></i><i></i><span>WebSpeak3 · Demo Server</span></div><img src="../screenshots/webspeak_dark.png" alt={t.imageAlt}/></div>
<div className="signal-card"><span className="signal">▥</span><div><strong>Voice connected</strong><small>Opus · 48 kHz · 24 ms</small></div><b></b></div>
<div className="voice-waves" aria-hidden="true">{[1,2,3,4,5,6,7,8,9,10,11,12].map(n=><i key={n}></i>)}</div>
</div>
</section>
<section className="trust shell reveal"><span>{t.built}</span>{["React","TypeScript","Vite","Node.js","Rust","Docker"].map(x=><strong key={x}>{x}</strong>)}</section>
<section className="section shell quick-connect reveal"><div className="section-head"><div><span className="kicker">{t.stepsKicker}</span><h2>{t.stepsTitle}</h2></div><p>{t.stepsText}</p></div><div className="connect-layout"><div className="connect-steps">{t.steps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="connect-demo"><div className="demo-window-bar"><i></i><i></i><i></i><span>WebSpeak3</span></div><label><small>TeamSpeak Server</small><div className="fake-input"><span className="typed-server">voice.teamspeak.com</span><b></b></div></label><label><small>{t.nickname}</small><div className="fake-input"><span>WebSpeak User</span></div></label><button onClick={() => window.location.assign(client)} aria-label={t.client}>{t.connectNow}<span>→</span></button><div className="connect-progress"><i></i><span className="progress-connecting">{t.connecting}…</span><span className="progress-connected">✓ {t.connected} · voice.teamspeak.com</span></div></div></div></section>
<section className="section shell reveal" id="features">
<div className="section-head"><div><span className="kicker">{t.featureKicker}</span><h2>{t.featureTitle}</h2></div><p>{t.featureIntro}</p></div>
<div className="feature-grid">{t.features.map(([icon,title,description],index)=><article className={`feature-${index + 1}`} key={icon}><span className="card-index">0{index + 1}</span><div className="icon"><Icon name={icon}/></div><h3>{title}</h3><p>{description}</p>{index === 0 && <div className="mini-wave" aria-hidden="true">{[1,2,3,4,5,6,7,8,9].map(n=><i key={n}></i>)}</div>}</article>)}</div>
</section>
<section className="privacy reveal"><div className="shell privacy-inner"><div className="privacy-copy"><div className="icon large"><Icon name="lock"/></div><span className="kicker">{t.privacyKicker}</span><h2>{t.privacyTitle[0]}<br/>{t.privacyTitle[1]}</h2><p>{t.privacyText}</p><ul>{t.privacyList.map(item => <li key={item}>{item}</li>)}</ul></div><div className="privacy-card"><div className="orbit orbit-outer"><i></i></div><div className="orbit orbit-inner"><i></i></div><span>SELF-HOSTED</span><strong>100%</strong><small>{t.control[0]}<br/>{t.control[1]}</small></div></div></section>
<section className="section shell status reveal" id="status"><div className="section-head"><div><span className="kicker">{t.statusKicker}</span><h2>{t.statusTitle}</h2></div><p>{t.statusText}</p></div><div className="status-grid">{t.statusCards.map(([title, description], index) => <article key={title}><span className={`status-dot status-${index}`}></span><small>{t.statusLabels[index]}</small><h3>{title}</h3><p>{description}</p></article>)}</div><a className="text-link status-link" href={`${github}/issues`} target="_blank" rel="noreferrer">{t.roadmap} <span>↗</span></a></section>
<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>
<section className="section shell product-tour reveal" id="tour"><div className="section-head"><div><span className="kicker">{t.tourKicker}</span><h2>{t.tourTitle}</h2></div><p>{t.tourText}</p></div><div className="tour-layout"><div className="tour-screen"><div className="tour-image"><img src="../screenshots/webspeak_current.png" alt={t.imageAlt}/>{t.tourItems.map((item, index) => <button key={item[0]} className={`hotspot hotspot-${item[0]} ${activeTour === index ? "active" : ""}`} onClick={() => setActiveTour(index)} aria-label={item[1]} aria-pressed={activeTour === index}><span>{index + 1}</span></button>)}</div><div className="tour-caption"><span>0{activeTour + 1}</span><div><strong>{t.tourItems[activeTour][1]}</strong><p>{t.tourItems[activeTour][2]}</p></div></div></div><div className="tour-tabs">{t.tourItems.map((item, index) => <button key={item[0]} className={activeTour === index ? "active" : ""} onClick={() => setActiveTour(index)}><span>0{index + 1}</span><div><strong>{item[1]}</strong><small>{item[2]}</small></div></button>)}</div></div></section>
<section className="install shell reveal" id="install"><span className="kicker">{t.installKicker}</span><h2>{t.installTitle}</h2><p>{t.installText}</p><div className="install-steps">{t.installSteps.map(([number, title, description]) => <article key={number}><span>{number}</span><div><strong>{title}</strong><small>{description}</small></div></article>)}</div><div className="install-tabs" role="tablist">{t.installTabs.map((label, index) => <button key={label} role="tab" aria-selected={installMethod === index} className={installMethod === index ? "active" : ""} onClick={() => { setInstallMethod(index); setCopied(false); }}>{label}</button>)}</div><div className="command"><code><i>$</i> {installCommands[installMethod]}</code><button className={copied ? "copied" : ""} onClick={copyInstallCommand} aria-label={t.copyCommand}>{copied ? `✓ ${t.copied}` : "⧉"}</button></div><div className="actions centered-actions"><a className="button primary" href={`${github}#-installation`} target="_blank" rel="noreferrer">{t.installGuide} <span>→</span></a><a className="text-link" href="https://hub.docker.com/r/moepchi/webspeak3" target="_blank" rel="noreferrer">Docker Hub ↗</a></div></section>
<section className="section shell browser-check reveal"><div className="section-head"><div><span className="kicker">{t.browserKicker}</span><h2>{t.browserTitle}</h2></div><p>{t.browserText}</p></div><div className="browser-table">{t.browserRows.map(([browserName, status, note], index) => <article key={browserName}><span className={`browser-logo browser-${index}`}>{browserName.slice(0, 1)}</span><strong>{browserName}</strong><b>{status}</b><small>{note}</small></article>)}</div></section>
<section className="community reveal" id="community"><div className="shell community-inner"><div className="section-head"><div><span className="kicker">{t.communityKicker}</span><h2>{t.communityTitle}</h2></div><p>{t.communityText}</p></div><div className="community-grid">{t.communityCards.map(([kind, title, description, action], index) => { const href = index === 0 ? `${github}/issues/new?labels=bug` : index === 1 ? `${github}/issues/new?labels=enhancement` : github; return <a href={href} target="_blank" rel="noreferrer" key={kind}><span className={`community-icon community-${kind}`}>{kind === "bug" ? "!" : kind === "idea" ? "✦" : "‹/›"}</span><div><strong>{title}</strong><p>{description}</p><small>{action} <b>↗</b></small></div></a>; })}</div><p className="community-note"><span>●</span>{t.communityNote}</p></div></section>
<section className="section shell faq reveal"><div className="section-head centered"><div><span className="kicker">{t.faqKicker}</span><h2>{t.faqTitle}</h2></div></div><div className="faq-list">{t.faqs.map(([question, answer], index) => <details key={question} open={index === 0}><summary><span>0{index + 1}</span>{question}<i>+</i></summary><p>{answer}</p></details>)}</div></section>
</main>
<footer><div className="shell footer-inner"><a className="brand" href="#top"><img src="../logo.png" alt=""/><span>WebSpeak<span>3</span></span></a><p>{t.disclaimer}</p><div><a href={`${github}/blob/main/LICENSE`}>MIT License</a><a href={github}>GitHub</a><a href={`${github}/issues`}>Issues</a></div></div></footer>
</div>;
}
createRoot(document.getElementById("landing-root")!).render(<StrictMode><Landing /></StrictMode>);
+502
View File
@@ -0,0 +1,502 @@
export const zhCN: Record<string, string> = {
"menu.connections": "连接",
"menu.connections.connect": "连接",
"menu.connections.disconnectCurrent": "断开当前服务器",
"menu.connections.disconnectAll": "断开所有服务器",
"menu.favorites": "收藏夹",
"menu.favorites.add": "添加到收藏夹",
"menu.favorites.manage": "管理收藏夹",
"menu.self": "自己",
"menu.rights": "权限",
"menu.rights.serverGroups": "编辑服务器组...",
"menu.rights.channelGroups": "编辑频道组...",
"menu.rights.serverPermissions": "编辑服务器权限...",
"menu.rights.channelPermissions": "编辑频道权限...",
"menu.rights.overview": "权限概览...",
"menu.rights.myRights": "查看我的权限",
"menu.extras": "工具",
"menu.help": "帮助",
"menu.extras.identities": "身份",
"menu.extras.contacts": "联系人",
"menu.extras.collectedUrls": "收集的链接",
"menu.extras.inviteFriend": "邀请好友",
"menu.extras.whisperLists": "悄悄话列表",
"menu.extras.whisperHistory": "悄悄话历史",
"menu.extras.clientLog": "客户端日志",
"menu.extras.banList": "封禁列表",
"menu.extras.complaintList": "投诉列表",
"menu.extras.offlineMessages": "离线消息",
"menu.extras.serverQueryLogin": "ServerQuery 登录",
"menu.extras.serverLog": "服务器日志",
"menu.extras.startRecording": "开始录音",
"menu.extras.startMultitrackRecording": "开始多轨录音",
"menu.extras.stopRecording": "停止录音",
"menu.extras.options": "选项",
"toolbar.setAway": "设为离开",
"toolbar.backOnline": "恢复在线",
"toolbar.awayOptions": "离开选项",
"toolbar.whisper": "悄悄话目标",
"whisper.channels": "频道",
"whisper.clients": "用户",
"whisper.clearAll": "清除所有悄悄话目标",
"toolbar.micEnable": "启用麦克风",
"toolbar.micMute": "麦克风静音",
"toolbar.micUnmute": "取消麦克风静音",
"toolbar.vadSensitivity": "语音激活灵敏度",
"toolbar.muteSound": "关闭声音(拒听)",
"toolbar.unmuteSound": "开启声音(取消拒听)",
"toolbar.chooseOutputDevice": "选择输出设备",
"toolbar.toggleTheme": "切换主题",
"away.setGlobal": "全局设为离开",
"away.setGlobalStatus": "设置全局离开状态",
"connect.title": "连接",
"connect.serverAddress": "服务器昵称或地址:",
"connect.serverPassword": "服务器密码:",
"connect.nickname": "昵称:",
"connect.phoneticNickname": "昵称读音:",
"connect.identity": "身份:",
"connect.defaultChannel": "默认频道:",
"connect.recordingProfile": "录音配置:",
"connect.channelPassword": "频道密码:",
"connect.playbackProfile": "播放配置:",
"connect.onetimeGrant": "一次性权限密钥:",
"connect.hotkeyProfile": "快捷键配置:",
"connect.sendMyTeamSpeakId": "发送 myTeamSpeak ID",
"connect.soundPack": "声音包:",
"connect.more": "更多",
"connect.less": "收起",
"connect.connect": "连接",
"connect.connecting": "正在连接…",
"connect.newTab": "在新标签页中打开",
"connect.cancel": "取消",
"collectedUrls.title": "收集的链接",
"collectedUrls.search": "搜索:",
"collectedUrls.url": "链接",
"collectedUrls.count": "次数",
"collectedUrls.lastSeen": "最后提及",
"collectedUrls.mentionedBy": "提及者",
"collectedUrls.clearList": "清空列表",
"inviteFriend.title": "邀请好友",
"inviteFriend.type": "邀请类型",
"inviteFriend.includeChannel": "包含当前频道",
"inviteFriend.link": "链接",
"inviteFriend.addPermissionKey": "添加权限密钥",
"inviteFriend.copyToClipboard": "复制到剪贴板",
"inviteFriend.copied": "已复制!",
"clientLog.title": "客户端日志",
"clientLog.level.critical": "严重",
"clientLog.level.error": "错误",
"clientLog.level.warning": "警告",
"clientLog.level.info": "信息",
"clientLog.level.debug": "调试",
"clientLog.search": "搜索:",
"clientLog.filter": "筛选:",
"clientLog.caseSensitive": "区分大小写",
"clientLog.mark": "标记",
"whisperHistory.title": "悄悄话历史 - {server}",
"whisperHistory.empty": "暂无悄悄话历史。",
"whisperHistory.started": "正在向以下目标发送悄悄话:{targets}",
"whisperHistory.stopped": "已停止悄悄话",
"whisperHistory.clear": "清除",
"whisperHistory.options": "选项",
"whisperLists.title": "悄悄话列表",
"whisperLists.namePlaceholder": "列表名称",
"whisperLists.saveCurrent": "保存当前选择",
"whisperLists.itemDetail": "{channels} 个频道,{clients} 个用户",
"whisperLists.activate": "启用",
"whisperLists.delete": "删除",
"whisperLists.empty": "尚未保存悄悄话列表。请选择悄悄话目标并在此保存为列表。",
"identities.title": "身份",
"identities.activate": "启用",
"identities.add": "新建身份",
"identities.delete": "删除",
"identities.newName": "新身份",
"identities.generated": "已生成",
"identities.pending": "将在下次连接时生成",
"identities.listLabel": "本地身份",
"identities.name": "身份名称:",
"identities.phoneticNickname": "昵称读音:",
"identities.uniqueId": "唯一 ID:",
"identities.unknown": "未知",
"identities.setDefault": "设为默认",
"identities.isDefault": "当前用作默认身份",
"identities.export": "导出",
"identities.import": "导入",
"connectionInfo.clientTitle": "连接信息 - {name}",
"connectionInfo.serverTitle": "服务器连接信息",
"connectionInfo.loading": "正在加载…",
"connectionInfo.unavailable": "服务器无响应(可能缺少权限)。",
"connectionInfo.ping": "延迟:",
"connectionInfo.connectedSince": "连接时间:",
"connectionInfo.ip": "IP 地址:",
"connectionInfo.packetLoss": "丢包率:",
"connectionInfo.packetsSent": "已发送数据包:",
"connectionInfo.packetsReceived": "已接收数据包:",
"connectionInfo.bytesSent": "已发送数据:",
"connectionInfo.bytesReceived": "已接收数据:",
"connectionInfo.bandwidthSent": "发送带宽:",
"connectionInfo.bandwidthReceived": "接收带宽:",
"menu.self.recordingProfile": "录音配置",
"menu.self.playbackProfile": "播放配置",
"menu.self.hotkeyProfile": "快捷键配置",
"menu.self.soundPack": "声音包",
"menu.self.setAway": "设为离开",
"menu.self.enableMic": "启用麦克风",
"menu.self.disableMic": "禁用麦克风",
"menu.self.muteOutput": "关闭扬声器/耳机",
"menu.self.unmuteOutput": "开启扬声器/耳机",
"menu.self.changeNickname": "更改昵称",
"menu.self.requestTalkPower": "申请发言权限",
"menu.self.setAvatar": "设置头像",
"menu.self.setPhoneticNickname": "设置昵称读音",
"menu.self.connectionInfo": "连接信息",
"contacts.title": "联系人",
"contacts.addOnlineClient": "选择在线用户...",
"contacts.add": "添加",
"contacts.remove": "移除",
"contacts.empty": "暂无联系人。",
"contacts.customName": "自定义名称:",
"contacts.category.acquaintance": "熟人",
"contacts.category.blocked": "已屏蔽",
"contacts.category.friend": "好友",
"contacts.phoneticName": "名称读音:",
"contacts.show": "显示",
"contacts.ignore": "忽略",
"contacts.unignore": "取消忽略",
"contacts.whisper": "悄悄话",
"contacts.preferences": "偏好设置",
"favorites.title": "🔖 myTeamSpeak 收藏夹",
"favorites.synced": "已同步的收藏",
"favorites.notLoggedIn": "未登录",
"favorites.local": "本地收藏",
"favorites.unnamed": "(未命名)",
"favorites.bookmarkName": "收藏名称:",
"favorites.newFavoriteName": "新收藏",
"favorites.showServerQueryClients": "显示 ServerQuery 用户",
"favorites.connectOnStartup": "启动时连接",
"favorites.enableMyTeamSpeak": "启用 myTeamSpeak 功能",
"favorites.new": "新建收藏",
"favorites.newFolder": "新建文件夹",
"favorites.remove": "移除",
"favorites.ok": "确定",
"favorites.cancel": "取消",
"favorites.apply": "应用",
"away.dialog.title": "设置离开消息",
"away.dialog.message": "消息:",
"away.dialog.template": "模板:",
"away.dialog.none": "<无>",
"away.dialog.ok": "确定",
"away.dialog.save": "保存",
"away.dialog.cancel": "取消",
"options.title": "选项",
"options.ok": "确定",
"options.cancel": "取消",
"options.notImplemented": "此设置尚未实现。",
"options.section.anwendung": "应用",
"options.section.wiedergabe": "播放",
"options.section.aufnahme": "录音",
"options.section.design": "外观",
"options.section.erweiterungen": "扩展",
"options.section.hotkeys": "快捷键",
"options.section.whispern": "悄悄话",
"options.section.downloads": "下载",
"options.section.chat": "聊天",
"options.section.sicherheit": "安全",
"options.section.nachrichten": "消息",
"options.section.meldungen": "通知",
"options.section.sounds": "声音",
"app.title": "应用",
"app.subtitle": "常规应用设置",
"app.language": "语言",
"app.language.auto": "跟随系统",
"app.language.de": "Deutsch",
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"playback.title": "播放",
"playback.subtitle": "更改播放设置",
"playback.profile": "配置",
"playback.default": "默认",
"playback.device": "播放设备:",
"playback.systemDefault": "系统默认",
"playback.quiet": "安静",
"playback.loud": "响亮",
"playback.voiceVolume": "语音音量",
"playback.playTestTone": "▶ 播放测试音",
"playback.options": "选项",
"playback.autoVolume": "自动调节音量",
"playback.ownMicClicks": "播放自己的麦克风按键音",
"playback.otherMicClicks": "播放其他用户的麦克风按键音",
"recording.title": "录音",
"recording.subtitle": "更改录音设置",
"recording.device": "录音设备:",
"recording.activation": "激活方式",
"recording.pushToTalk": "按键说话",
"recording.continuous": "持续传输",
"recording.voiceActivation": "语音激活检测",
"recording.testStart": "开始测试",
"recording.testStop": "停止测试",
"recording.hangoverDelay": "停止前延迟:",
"recording.secondsUnit": "秒",
"recording.dsp": "数字信号处理",
"recording.typingAttenuation": "键盘声衰减",
"recording.echoCancellation": "回声消除",
"recording.noiseSuppression": "消除背景噪声",
"info.address": "地址:",
"info.version": "版本:",
"info.license": "许可证:",
"info.currentClients": "当前用户:",
"info.currentChannels": "当前频道:",
"info.topic": "主题:",
"info.audioCodec": "音频编解码器:",
"info.passwordProtected": "密码保护:",
"info.clients": "用户:",
"info.yes": "是",
"info.no": "否",
"tree.notConnected": "未连接",
"tree.clickToSelect": "单击选择,双击加入",
"tree.passwordProtected": "受密码保护",
"tree.privateChatWith": "与其私聊",
"tree.poke": "戳一戳",
"tree.channelCommander": "频道指挥官",
"tree.away": "离开",
"tree.micMuted": "麦克风已静音",
"tree.noTalkPower": "在此频道中没有发言权限",
"tree.soundMuted": "声音已关闭(拒听)",
"chat.server": "服务器",
"chat.channel": "频道",
"chat.notConnected": "未连接",
"chat.messageChannel": "向频道发送消息...",
"chat.messageServer": "向服务器发送消息...",
"chat.messagePartner": "向 {name} 发送消息...",
"chat.send": "发送",
"chat.you": "你",
"serverLog.clientJoin": "{client} 进入了频道“{channel}”",
"serverLog.clientLeave": "{client} 已断开连接(离开)",
"serverLog.clientChannelSwitch": "{client} 从频道“{fromChannel}”移动到“{toChannel}”",
"serverLog.clientChannelGroupAssigned": "已将频道组“{group}”分配给 {client}",
"serverLog.channelCreated": "频道“{channel}”已创建",
"serverLog.channelDeleted": "频道“{channel}”已删除",
"serverLog.channelEdited": "频道“{channel}”已编辑",
"serverLog.serverEdited": "服务器设置已更改",
"serverLog.permissionError": "缺少权限:{action}",
"poke.title": "戳一戳",
"poke.optionalMessage": "可选消息...",
"poke.send": "发送",
"poke.cancel": "取消",
"poke.pokedYou": "戳了你一下",
"poke.dismiss": "关闭",
"kick.title": "踢出:",
"kick.reasonPlaceholder": "原因(可选)...",
"kick.confirm": "踢出",
"kick.cancel": "取消",
"ban.title": "封禁:",
"ban.reasonPlaceholder": "原因(可选)...",
"ban.duration": "时长:",
"ban.durationPermanent": "永久",
"ban.duration1h": "1 小时",
"ban.duration1d": "1 天",
"ban.duration1w": "1 周",
"ban.confirm": "封禁",
"ban.cancel": "取消",
"serverEdit.title": "编辑虚拟服务器",
"serverEdit.tab.host": "主机",
"serverEdit.tab.misc": "其他",
"serverEdit.tab.transmission": "传输",
"serverEdit.tab.antiflood": "防刷屏",
"serverEdit.tab.security": "安全",
"serverEdit.tab.log": "日志",
"serverEdit.name": "服务器名称:",
"serverEdit.welcomeMessage": "欢迎消息:",
"serverEdit.clearPassword": "移除服务器密码",
"serverEdit.newPassword": "新服务器密码:",
"serverEdit.hostmessage": "主机消息:",
"serverEdit.hostmessageMode": "显示模式:",
"serverEdit.hostmessageMode.none": "不显示",
"serverEdit.hostmessageMode.log": "在日志中显示",
"serverEdit.hostmessageMode.modal": "以对话框显示",
"serverEdit.hostmessageMode.modalquit": "以对话框显示并断开连接",
"serverEdit.hostbannerUrl": "主机横幅链接:",
"serverEdit.hostbannerGfxUrl": "主机横幅图片链接:",
"serverEdit.hostbannerGfxInterval": "横幅刷新间隔(秒):",
"serverEdit.hostbannerMode": "横幅缩放:",
"serverEdit.hostbannerMode.noadjust": "不调整",
"serverEdit.hostbannerMode.adjustignoreaspect": "调整(忽略宽高比)",
"serverEdit.hostbannerMode.adjustkeepaspect": "调整(保持宽高比)",
"serverEdit.hostbuttonTooltip": "主机按钮提示:",
"serverEdit.hostbuttonUrl": "主机按钮链接:",
"serverEdit.hostbuttonGfxUrl": "主机按钮图片链接:",
"serverEdit.maxClients": "最大用户数:",
"serverEdit.nickname": "服务器昵称:",
"serverEdit.phoneticName": "名称读音:",
"serverEdit.codecEncryptionMode": "语音加密:",
"serverEdit.codecEncryptionMode.perchannel": "可按频道配置",
"serverEdit.codecEncryptionMode.forcedoff": "全局禁用",
"serverEdit.codecEncryptionMode.forcedon": "全局启用",
"serverEdit.unchanged": "保持不变",
"serverEdit.save": "保存",
"serverEdit.cancel": "取消",
"serverProtocolLog.title": "服务器日志",
"serverProtocolLog.empty": "暂无日志条目。",
"banList.title": "封禁列表",
"banList.empty": "未找到封禁记录。",
"banList.name": "名称",
"banList.ip": "IP",
"banList.created": "创建时间",
"banList.duration": "时长",
"banList.invoker": "执行者",
"banList.reason": "原因",
"banList.permanent": "永久",
"banList.delete": "删除",
"banList.deleteAll": "全部删除",
"complainList.title": "投诉列表",
"complainList.empty": "未找到投诉记录。",
"complainList.target": "对象",
"complainList.from": "来自",
"complainList.message": "消息",
"complainList.timestamp": "时间",
"offlineMessages.title": "离线消息",
"offlineMessages.empty": "暂无消息。",
"offlineMessages.subject": "主题",
"offlineMessages.from": "来自",
"offlineMessages.timestamp": "时间",
"offlineMessages.targetUid": "目标 UID",
"offlineMessages.message": "消息",
"offlineMessages.send": "发送",
"offlineMessages.new": "新消息",
"offlineMessages.markRead": "标记为已读",
"offlineMessages.backToList": "返回列表",
"dialog.cancel": "取消",
"groupAssign.channelTitle": "分配频道组",
"groupAssign.serverTitle": "分配服务器组",
"groupAssign.empty": "未找到组。",
"groupAssign.clickToRemove": "单击移除",
"serverQueryLogin.username": "用户名",
"serverQueryLogin.password": "密码",
"serverQueryLogin.login": "登录",
"permissionOverview.title": "我的权限",
"permissionOverview.empty": "未找到权限。",
"permissionOverview.name": "权限",
"permissionOverview.value": "值",
"permissionOverview.negated": "否定",
"permissionOverview.skip": "跳过",
"permsEditor.title": "权限",
"permsEditor.tab.server": "服务器组",
"permsEditor.tab.client": "用户权限",
"permsEditor.tab.channel": "频道权限",
"permsEditor.tab.channelgroup": "频道组",
"permsEditor.tab.channelclient": "频道用户权限",
"permsEditor.clientDbId": "唯一用户数据库 ID:",
"permsEditor.load": "加载",
"permsEditor.pickOnlineClient": "或选择在线用户...",
"permsEditor.pickTarget": "请在左侧选择组或频道,或输入用户 ID。",
"permsEditor.addPermission": "添加",
"permsEditor.searchPermission": "搜索权限...",
"dialog.ok": "确定",
"channelContext.files": "文件...",
"fileBrowser.title": "文件传输",
"fileBrowser.up": "上一级",
"fileBrowser.refresh": "刷新",
"fileBrowser.newFolder": "新建文件夹",
"fileBrowser.upload": "上传",
"fileBrowser.folderName": "文件夹名称",
"fileBrowser.empty": "此文件夹为空。",
"fileBrowser.name": "名称",
"fileBrowser.size": "大小",
"fileBrowser.modified": "修改时间",
"fileBrowser.download": "下载",
"fileBrowser.rename": "重命名",
"fileBrowser.delete": "删除",
"fileBrowser.deleteConfirm": "确定要删除吗?",
"fileBrowser.uploading": "正在上传...",
"fileBrowser.downloading": "正在下载...",
"serverContext.icons": "服务器图标...",
"serverIcons.title": "管理服务器图标",
"serverIcons.upload": "上传图标",
"serverIcons.iconId": "图标 ID",
"serverIcons.empty": "未找到图标。",
"clientContext.privateChat": "私聊",
"clientContext.poke": "戳一戳",
"clientContext.copyName": "复制名称",
"clientContext.connectionInfo": "查看连接信息",
"clientContext.addWhisperTarget": "添加为悄悄话目标",
"clientContext.removeWhisperTarget": "从悄悄话目标中移除",
"clientContext.assignChannelGroup": "分配频道组",
"clientContext.assignServerGroup": "分配服务器组",
"clientContext.kickChannel": "踢出频道",
"clientContext.kick": "踢出服务器",
"clientContext.ban": "封禁",
"clientContext.notSupported": "网页客户端暂不支持此功能",
"serverContext.connectionInfo": "服务器连接信息",
"serverContext.copyAddress": "复制服务器地址",
"serverContext.addFavorite": "添加到收藏夹",
"serverContext.disconnect": "断开连接",
"connectError.dismiss": "关闭",
"dialog.close": "关闭",
"sounds.title": "声音",
"sounds.subtitle": "配置事件提示音",
"sounds.enable": "启用声音",
"sounds.volume": "音量",
"sounds.eventEnable": "启用此声音",
"sounds.event.connect": "已连接",
"sounds.event.disconnect": "已断开",
"sounds.event.clientJoin": "用户加入",
"sounds.event.clientLeave": "用户离开",
"sounds.event.message": "收到消息",
"sounds.event.poke": "收到戳一戳",
"sounds.default": "默认",
"sounds.custom": "自定义文件:{name}",
"sounds.test": "▶ 测试",
"sounds.upload": "上传",
"sounds.reset": "重置",
"sounds.importSoundpack": "导入声音包(.ts3soundpack)",
"sounds.importResult": "已导入 {matched} 个声音,{unmatched} 个文件未匹配",
"nachrichten.title": "消息",
"nachrichten.subtitle": "自定义消息",
"nachrichten.disconnectMessage": "断开连接:",
"nachrichten.disconnectMessagePlaceholder": "离开",
"nachrichten.presetsTitle": "预设消息",
"nachrichten.type": "类型",
"nachrichten.type.away": "离开",
"nachrichten.templateName": "模板名称",
"nachrichten.message": "消息",
"nachrichten.add": "添加",
"nachrichten.delete": "删除",
};
+14
View File
@@ -36,6 +36,11 @@ export interface MicCaptureOptions {
deviceId?: string;
echoCancellation?: boolean;
noiseSuppression?: boolean;
/** Automatic gain control. Exposed as its own toggle (rather than folded into
* echoCancellation) because AGC re-amplifying the mic signal after the
* browser's own AEC runs can bring back audible echo residue in speaker+mic
* (no headset) setups - some users get a cleaner result with it off. */
autoGainControl?: boolean;
}
/**
@@ -61,6 +66,7 @@ export class MicCapture {
private deviceId?: string;
private echoCancellation: boolean;
private noiseSuppression: boolean;
private autoGainControl: boolean;
private context: AudioContext;
threshold: number;
hangoverSeconds: number;
@@ -75,6 +81,7 @@ export class MicCapture {
this.deviceId = options.deviceId;
this.echoCancellation = options.echoCancellation ?? true;
this.noiseSuppression = options.noiseSuppression ?? true;
this.autoGainControl = options.autoGainControl ?? true;
}
async start(): Promise<void> {
@@ -84,8 +91,15 @@ export class MicCapture {
this.stream = await navigator.mediaDevices.getUserMedia({
audio: {
channelCount: 1,
// Requesting the pipeline's own rate (rather than leaving it to the
// device/OS default) avoids an extra internal resampling step ahead
// of the browser's own echo canceller - standard constraint, honored
// by both Chromium and Firefox, "ideal" so it's not fatal if a device
// genuinely can't provide it.
sampleRate: { ideal: SAMPLE_RATE },
echoCancellation: this.echoCancellation,
noiseSuppression: this.noiseSuppression,
autoGainControl: this.autoGainControl,
...(this.deviceId ? { deviceId: { exact: this.deviceId } } : {}),
},
});
+2 -31
View File
@@ -1,39 +1,10 @@
import { defineConfig, type Plugin } from 'vite'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'node:path'
function landingSlashRedirect(): Plugin {
const redirect = (server: { middlewares: { use: (handler: (req: { url?: string }, res: { statusCode: number; setHeader: (name: string, value: string) => void; end: () => void }, next: () => void) => void) => void } }) => {
server.middlewares.use((req, res, next) => {
if (req.url === '/landing') {
res.statusCode = 302
res.setHeader('Location', '/landing/')
res.end()
return
}
next()
})
}
return {
name: 'landing-slash-redirect',
configureServer: redirect,
configurePreviewServer: redirect,
}
}
// https://vite.dev/config/
export default defineConfig({
plugins: [landingSlashRedirect(), react()],
plugins: [react()],
// Set by the GitHub Pages workflow to the repo subpath (e.g. /webspeak3/);
// the normal Docker build serves from the domain root and leaves this unset.
base: process.env.VITE_BASE_PATH || '/',
build: {
rollupOptions: {
input: {
app: resolve(__dirname, 'index.html'),
landing: resolve(__dirname, 'landing/index.html'),
},
},
},
})