diff --git a/web/app/globals.css b/web/app/globals.css index b600824..46a7316 100644 --- a/web/app/globals.css +++ b/web/app/globals.css @@ -103,6 +103,7 @@ --mono: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, monospace; --maxw: 780px; + --content-shift: 24px; --shadow: 0 1px 3px rgba(0, 0, 0, 0.08); } @@ -143,7 +144,7 @@ p { .wrap { max-width: var(--maxw); - margin: 0; + margin: 0 0 0 var(--content-shift); padding: 0 24px 0 56px; } @@ -200,7 +201,7 @@ header.nav.scrolled { gap: 16px; height: 60px; max-width: var(--maxw); - margin: 0; + margin: 0 0 0 var(--content-shift); padding: 0 24px 0 56px; } .brand { @@ -1042,6 +1043,7 @@ footer.site { text-align: left; user-select: none; pointer-events: none; + margin-left: var(--content-shift); padding: 0 24px 24px 56px; letter-spacing: -0.02em; overflow: hidden; @@ -1049,6 +1051,9 @@ footer.site { /* ============ RESPONSIVE ============ */ @media (max-width: 640px) { + :root { + --content-shift: 10px; + } .nav-links { display: none; } diff --git a/web/components/sections/cta.tsx b/web/components/sections/cta.tsx index f8ccfd9..92c696c 100644 --- a/web/components/sections/cta.tsx +++ b/web/components/sections/cta.tsx @@ -3,7 +3,7 @@ import { CopyButton } from '../copy-button' import { GitHub } from '../icons' const REPO = 'https://github.com/Hqzdev/pilot-agent' -const CURL = 'curl -fsSL https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh | bash' +const CURL = 'curl -fsSL https://pilotagent.vercel.app/install.sh | bash' export function Cta() { return ( diff --git a/web/components/sections/install.tsx b/web/components/sections/install.tsx index c3f7798..6383dd6 100644 --- a/web/components/sections/install.tsx +++ b/web/components/sections/install.tsx @@ -2,9 +2,10 @@ import { Reveal } from '../reveal' import { CopyButton } from '../copy-button' import { Monitor, Bolt, Code, Play } from '../icons' -const CURL = 'curl -fsSL https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh | bash' +const INSTALL_URL = 'https://pilotagent.vercel.app/install.sh' +const CURL = `curl -fsSL ${INSTALL_URL} | bash` const CURL_SKIP = - 'curl -fsSL https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh | bash -s -- --skip-setup' + `curl -fsSL ${INSTALL_URL} | bash -s -- --skip-setup` const UV = 'uv tool install git+https://github.com/Hqzdev/pilot-agent' const QUICKSTART = `pilot-agent setup cd your-project @@ -35,7 +36,7 @@ export function Install() {
                     curl -fsSL{' '}
                     
-                      https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh
+                      {INSTALL_URL}
                     {' '}
                     | bash
                   
@@ -53,7 +54,7 @@ export function Install() {
                     curl -fsSL{' '}
                     
-                      https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh
+                      {INSTALL_URL}
                     {' '}
                     | bash{' '}
                     -s -- --skip-setup
diff --git a/web/public/install.sh b/web/public/install.sh
new file mode 100644
index 0000000..dc2fa38
--- /dev/null
+++ b/web/public/install.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+INSTALL_URL="https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh"
+
+if command -v curl >/dev/null 2>&1; then
+  curl -fsSL "$INSTALL_URL" | bash -s -- "$@"
+elif command -v wget >/dev/null 2>&1; then
+  wget -qO- "$INSTALL_URL" | bash -s -- "$@"
+else
+  echo "pilot-agent installer requires curl or wget." >&2
+  exit 1
+fi