From 23468aa7ab8253f7bc0f023ac725b3fabf2b5429 Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Sat, 7 Mar 2026 19:38:06 +0100 Subject: [PATCH] (feat) redesign install section with OS tab switcher in hero Move the install UI into the hero section with a macOS/Linux | Windows | npm pill switcher. Use remoteclaw.sh as the primary install URL. Auto-detects visitor OS to pre-select the right tab. Remove the separate InstallBlock section from the page layout. Co-Authored-By: Claude Opus 4.6 --- src/components/Hero.astro | 195 ++++++++++++++++++++++---- src/components/InstallBlock.astro | 218 ++++++++++++++++++++++++++---- src/pages/index.astro | 2 - 3 files changed, 365 insertions(+), 50 deletions(-) diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 32578fc..6651e22 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,27 +1,142 @@ --- +const tabs = [ + { id: "unix", label: "macOS / Linux" }, + { id: "windows", label: "Windows" }, + { id: "npm", label: "npm" }, +]; ---
-

- Your ~/.<agent> — remotely. +

+ Your ~/.<agent> — remotely.

-

- Self-hosted middleware that connects Claude Code, Gemini CLI, - Codex CLI, and OpenCode to 22+ messaging channels. +

+ Self-hosted middleware that connects Claude Code, Gemini CLI, Codex + CLI, and OpenCode to 22+ messaging channels.

-
+ + +
- npm install -g remoteclaw - - copy - + { + tabs.map((tab) => ( + + )) + } +
+ +
+ +
+
+
+ $ + curl -fsSL remoteclaw.sh | sh +
+ +
+

+ Detects your OS and installs Node if needed. No root + required on macOS. +

+
+ + + + + +
+
+ +
diff --git a/src/components/InstallBlock.astro b/src/components/InstallBlock.astro index 1a74c2f..c4bb3cc 100644 --- a/src/components/InstallBlock.astro +++ b/src/components/InstallBlock.astro @@ -1,46 +1,200 @@ --- +const tabs = [ + { id: "unix", label: "macOS / Linux" }, + { id: "windows", label: "Windows" }, + { id: "npm", label: "npm" }, +]; ---
-
diff --git a/src/pages/index.astro b/src/pages/index.astro index 05e127e..c019f32 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,7 +7,6 @@ import Runtimes from "../components/Runtimes.astro"; import Channels from "../components/Channels.astro"; import Features from "../components/Features.astro"; import Architecture from "../components/Architecture.astro"; -import InstallBlock from "../components/InstallBlock.astro"; import Footer from "../components/Footer.astro"; --- @@ -19,7 +18,6 @@ import Footer from "../components/Footer.astro"; -