Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions web/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -143,7 +144,7 @@ p {

.wrap {
max-width: var(--maxw);
margin: 0;
margin: 0 0 0 var(--content-shift);
padding: 0 24px 0 56px;
}

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1042,13 +1043,17 @@ 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;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
:root {
--content-shift: 10px;
}
.nav-links {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion web/components/sections/cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
9 changes: 5 additions & 4 deletions web/components/sections/install.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -35,7 +36,7 @@ export function Install() {
<pre>
<span className="c-cmd">curl</span> <span className="c-flag">-fsSL</span>{' '}
<span className="c-str">
https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh
{INSTALL_URL}
</span>{' '}
| <span className="c-cmd">bash</span>
</pre>
Expand All @@ -53,7 +54,7 @@ export function Install() {
<pre>
<span className="c-cmd">curl</span> <span className="c-flag">-fsSL</span>{' '}
<span className="c-str">
https://raw.githubusercontent.com/Hqzdev/pilot-agent/main/install.sh
{INSTALL_URL}
</span>{' '}
| <span className="c-cmd">bash</span>{' '}
<span className="c-flag">-s -- --skip-setup</span>
Expand Down
13 changes: 13 additions & 0 deletions web/public/install.sh
Original file line number Diff line number Diff line change
@@ -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
Loading