diff --git a/web/src/landing.css b/web/src/landing.css index 0e34c3b..3a807fc 100644 --- a/web/src/landing.css +++ b/web/src/landing.css @@ -32,3 +32,19 @@ .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}} diff --git a/web/src/landing.tsx b/web/src/landing.tsx index b8e85df..d35e53f 100644 --- a/web/src/landing.tsx +++ b/web/src/landing.tsx @@ -17,7 +17,11 @@ const copy = { privacyKicker: "PRIVATSPHÄRE EINGEBAUT", privacyTitle: ["Deine Gespräche.", "Deine Infrastruktur."], privacyText: "WebSpeak3 verbindet sich über dein eigenes Gateway mit deinem TeamSpeak-Server. Keine fremde Cloud, kein Tracking und keine Kontenpflicht.", privacyList: ["Vollständig selbst hostbar", "Quelloffen unter MIT-Lizenz", "Bestehender TS3-Server bleibt unverändert"], control: ["Kontrolle über", "deine Daten"], architectureKicker: "UNTER DER HAUBE", architectureTitle: "Vom Tab direkt zum Server.", architectureText: "Eine schlanke Brücke übersetzt WebSocket-Nachrichten in das echte TeamSpeak-Protokoll.", 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.", - installKicker: "IN MINUTEN STARTKLAR", installTitle: "Dein Server. Dein WebSpeak3.", installText: "Mit Docker läuft dein eigener Browser-Client in einem einzigen Befehl.", installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", disclaimer: "Ein unabhängiges Open-Source-Projekt. Nicht mit TeamSpeak Systems GmbH verbunden.", imageAlt: "WebSpeak3 Client im Dark Mode", + 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", + 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 Server. Dein WebSpeak3.", installText: "Mit Docker läuft dein eigener Browser-Client in einem einzigen Befehl.", installSteps: [["01", "Container starten", "Image laden und Port 8080 veröffentlichen."], ["02", "Browser öffnen", "WebSpeak3 lokal oder über deine Domain aufrufen."], ["03", "Server verbinden", "TS-Adresse und Nickname eingeben – fertig."]], installGuide: "Installationsanleitung", copyCommand: "Befehl kopieren", copied: "Kopiert!", + faqKicker: "GUT ZU WISSEN", faqTitle: "Fragen, bevor du loslegst.", faqs: [["Brauche ich einen neuen TeamSpeak-Server?", "Nein. WebSpeak3 verbindet sich mit deinem bestehenden TS3- oder TS6-Server; daran muss nichts verändert werden."], ["Wo laufen meine Sprachdaten?", "Über dein selbst gehostetes Gateway und den Rust Connector direkt zu deinem TeamSpeak-Server – ohne fremde 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", "Architecture", "Installation"], 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."], @@ -27,7 +31,11 @@ const copy = { privacyKicker: "PRIVACY BUILT IN", privacyTitle: ["Your conversations.", "Your infrastructure."], privacyText: "WebSpeak3 connects to your TeamSpeak server through your own gateway. No third-party cloud, no tracking and no account required.", privacyList: ["Fully self-hostable", "Open source under the MIT license", "Your existing TS3 server stays unchanged"], control: ["Control over", "your data"], architectureKicker: "UNDER THE HOOD", architectureTitle: "From your tab to the server.", architectureText: "A lean bridge translates WebSocket messages into the real TeamSpeak protocol.", screenKicker: "FOR EVERY SCREEN", screenTitle: ["Desktop comfort.", "Mobile freedom."], screenText: "Dark or light, large display or smartphone: WebSpeak3 adapts without hiding core functionality.", - installKicker: "READY IN MINUTES", installTitle: "Your server. Your WebSpeak3.", installText: "Run your own browser client with a single Docker command.", installGuide: "Installation guide", copyCommand: "Copy command", disclaimer: "An independent open-source project. Not affiliated with TeamSpeak Systems GmbH.", imageAlt: "WebSpeak3 client in dark mode", + 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", + 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 server. Your WebSpeak3.", installText: "Run your own browser client with a single Docker command.", installSteps: [["01", "Start the container", "Pull the image and publish port 8080."], ["02", "Open your browser", "Visit WebSpeak3 locally or through your domain."], ["03", "Connect your server", "Enter your TS address and nickname — done."]], installGuide: "Installation guide", copyCommand: "Copy command", copied: "Copied!", + faqKicker: "GOOD TO KNOW", faqTitle: "Questions before you start.", faqs: [["Do I need a new TeamSpeak server?", "No. WebSpeak3 connects to your existing TS3 or TS6 server; no server changes are required."], ["Where does my voice data go?", "Through your self-hosted gateway and Rust connector directly to your TeamSpeak server — without a third-party 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; @@ -51,6 +59,14 @@ function Landing() { return navigator.language.toLowerCase().startsWith("de") ? "de" : "en"; }); const t = copy[lang]; + const [activeTour, setActiveTour] = useState(0); + const [copied, setCopied] = useState(false); + + const copyDockerCommand = () => { + navigator.clipboard?.writeText("docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest"); + setCopied(true); + window.setTimeout(() => setCopied(false), 1800); + }; useEffect(() => { localStorage.setItem("webspeak3:landing-language", lang); @@ -110,11 +126,17 @@ function Landing() {
{t.privacyKicker}

{t.privacyTitle[0]}
{t.privacyTitle[1]}

{t.privacyText}

    {t.privacyList.map(item =>
  • {item}
  • )}
SELF-HOSTED100%{t.control[0]}
{t.control[1]}
+
{t.statusKicker}

{t.statusTitle}

{t.statusText}

{t.statusCards.map(([title, description], index) =>
{t.statusLabels[index]}

{title}

{description}

)}
{t.roadmap} ↗
+
{t.architectureKicker}

{t.architectureTitle}

{t.architectureText}

{[["Browser","React + Web Audio"],["Gateway","WebSocket · Node.js"],["Rust Connector","tsclientlib + Opus"],["TeamSpeak Server","TS3 / TS6 Protocol"]].map((x,i)=>
0{i+1}{x[0]}{x[1]}
{i<3&&}
)}
{t.screenKicker}

{t.screenTitle[0]}
{t.screenTitle[1]}

{t.screenText}

☾ Dark Mode☀ Light Mode⌁ Responsive
WebSpeak3 Dark ModeWebSpeak3 Light Mode
-
{t.installKicker}

{t.installTitle}

{t.installText}

$ docker run -d -p 8080:8080 moepchi/webspeak3:latest
{t.installGuide} →Docker Hub ↗
+
{t.tourKicker}

{t.tourTitle}

{t.tourText}

{t.imageAlt}/{t.tourItems.map((item, index) => )}
0{activeTour + 1}
{t.tourItems[activeTour][1]}

{t.tourItems[activeTour][2]}

{t.tourItems.map((item, index) => )}
+ +
{t.installKicker}

{t.installTitle}

{t.installText}

{t.installSteps.map(([number, title, description]) =>
{number}
{title}{description}
)}
$ docker run -d -p 8080:8080 --name webspeak3 moepchi/webspeak3:latest
{t.installGuide} →Docker Hub ↗
+ +
{t.faqKicker}

{t.faqTitle}

{t.faqs.map(([question, answer], index) =>
0{index + 1}{question}+

{answer}

)}