feat: add bird.fast GitHub Pages site
This commit is contained in:
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<meta name="theme-color" content="#0b0d10" />
|
||||
<title>404 — bird.fast</title>
|
||||
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],500..900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap"
|
||||
/>
|
||||
<link rel="stylesheet" href="./assets/site.css" />
|
||||
</head>
|
||||
<body class="is-404">
|
||||
<div class="bg" aria-hidden="true">
|
||||
<div class="bg__orb bg__orb--a"></div>
|
||||
<div class="bg__orb bg__orb--b"></div>
|
||||
<div class="bg__grid"></div>
|
||||
<div class="bg__noise"></div>
|
||||
</div>
|
||||
|
||||
<main class="notfound">
|
||||
<a class="brand brand--solo" href="./" aria-label="bird.fast home">
|
||||
<span class="brand__mark" aria-hidden="true">
|
||||
<img src="./assets/mark.svg" width="26" height="26" alt="" />
|
||||
</span>
|
||||
<span class="brand__word">bird</span>
|
||||
<span class="brand__dot">.fast</span>
|
||||
</a>
|
||||
<h1 class="title title--small">404</h1>
|
||||
<p class="lede lede--small">That path doesn’t exist. The CLI does.</p>
|
||||
<div class="cta">
|
||||
<a class="btn btn--hot" href="./">Go home</a>
|
||||
<a class="btn btn--ghost" href="https://github.com/steipete/bird">Open GitHub</a>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" fill="none">
|
||||
<path
|
||||
d="M19.7 10.3c-.9-2.8-3.5-4.8-6.5-4.8-3.8 0-6.9 3.1-6.9 6.9 0 3.9 3.1 7 6.9 7 .9 0 1.8-.2 2.6-.5 1.8 1 3.8 1.2 5.8.6-2.3-.4-3.6-1.4-4.2-2.9 1.6-1.2 2.6-3.1 2.6-5.2 0-.3 0-.6-.1-.9h.9l2.5-2.1-3.6.1z"
|
||||
fill="rgba(244,241,233,0.92)"
|
||||
/>
|
||||
<path
|
||||
d="M22.9 9.6l-1.7 1.4h-1.1c-.3-1-.9-1.9-1.6-2.7l4.4-.2z"
|
||||
fill="rgba(183,255,106,0.88)"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 439 B |
@@ -0,0 +1,440 @@
|
||||
:root {
|
||||
--bg: #0b0d10;
|
||||
--fg: #f4f1e9;
|
||||
--muted: rgba(244, 241, 233, 0.66);
|
||||
--dim: rgba(244, 241, 233, 0.12);
|
||||
--edge: rgba(244, 241, 233, 0.16);
|
||||
--hot: #b7ff6a;
|
||||
--hot2: #6afcff;
|
||||
--ink: rgba(8, 9, 12, 0.72);
|
||||
|
||||
--serif: "Fraunces", ui-serif, "Iowan Old Style", "Apple Garamond", serif;
|
||||
--sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
||||
--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
|
||||
--radius: 18px;
|
||||
--shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
|
||||
--max: 1080px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--sans);
|
||||
color: var(--fg);
|
||||
background: var(--bg);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a { color: inherit; text-underline-offset: 4px; }
|
||||
a:hover { text-decoration-thickness: 2px; }
|
||||
|
||||
.skip {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 12px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--edge);
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
transform: translateY(-140%);
|
||||
transition: transform 180ms ease;
|
||||
z-index: 999;
|
||||
}
|
||||
.skip:focus { transform: translateY(0); outline: none; }
|
||||
|
||||
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
|
||||
.bg__orb {
|
||||
position: absolute;
|
||||
width: 900px;
|
||||
height: 900px;
|
||||
border-radius: 999px;
|
||||
filter: blur(48px);
|
||||
opacity: 0.55;
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
.bg__orb--a {
|
||||
left: -320px;
|
||||
top: -280px;
|
||||
background: radial-gradient(circle at 30% 30%, rgba(183, 255, 106, 0.95), rgba(183, 255, 106, 0.0) 62%);
|
||||
}
|
||||
.bg__orb--b {
|
||||
right: -360px;
|
||||
bottom: -320px;
|
||||
background: radial-gradient(circle at 30% 30%, rgba(106, 252, 255, 0.95), rgba(106, 252, 255, 0.0) 62%);
|
||||
}
|
||||
.bg__grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(to right, rgba(244, 241, 233, 0.06) 1px, transparent 1px),
|
||||
linear-gradient(to bottom, rgba(244, 241, 233, 0.06) 1px, transparent 1px);
|
||||
background-size: 64px 64px;
|
||||
opacity: 0.22;
|
||||
mask-image: radial-gradient(circle at 48% 25%, black 0%, black 45%, transparent 72%);
|
||||
}
|
||||
.bg__noise {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0.09;
|
||||
mix-blend-mode: overlay;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
|
||||
.top__inner {
|
||||
max-width: var(--max);
|
||||
margin: 0 auto;
|
||||
padding: 18px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.top::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(244, 241, 233, 0.16), transparent);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.brand__mark {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(244, 241, 233, 0.18);
|
||||
background: rgba(0, 0, 0, 0.18);
|
||||
box-shadow: 0 10px 38px rgba(0, 0, 0, 0.38);
|
||||
}
|
||||
.brand__word {
|
||||
font-family: var(--serif);
|
||||
letter-spacing: -0.02em;
|
||||
font-variation-settings: "opsz" 144;
|
||||
font-weight: 780;
|
||||
font-size: 18px;
|
||||
}
|
||||
.brand__dot {
|
||||
font-family: var(--mono);
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.nav { display: flex; gap: 14px; }
|
||||
.nav__link {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
padding: 10px 10px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.nav__link:hover {
|
||||
color: var(--fg);
|
||||
border-color: rgba(244, 241, 233, 0.14);
|
||||
background: rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
.nav__link:focus-visible { outline: 2px solid rgba(183, 255, 106, 0.55); outline-offset: 2px; }
|
||||
|
||||
main { position: relative; z-index: 1; }
|
||||
|
||||
.hero { padding: 64px 18px 26px; }
|
||||
.hero__inner { max-width: var(--max); margin: 0 auto; }
|
||||
|
||||
.kicker {
|
||||
margin: 0 0 10px;
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(244, 241, 233, 0.62);
|
||||
}
|
||||
.title {
|
||||
margin: 0 0 14px;
|
||||
font-family: var(--serif);
|
||||
font-weight: 820;
|
||||
letter-spacing: -0.05em;
|
||||
line-height: 0.95;
|
||||
font-size: clamp(54px, 8vw, 118px);
|
||||
font-variation-settings: "opsz" 144;
|
||||
text-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.title__dot {
|
||||
font-family: var(--mono);
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
font-size: 0.7em;
|
||||
margin-left: 8px;
|
||||
color: rgba(183, 255, 106, 0.92);
|
||||
text-shadow: 0 0 0 transparent;
|
||||
}
|
||||
.lede {
|
||||
margin: 0 0 24px;
|
||||
max-width: 70ch;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
text-decoration: none;
|
||||
border: 1px solid rgba(244, 241, 233, 0.14);
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
color: var(--fg);
|
||||
font-size: 13px;
|
||||
box-shadow: 0 16px 60px rgba(0, 0, 0, 0.32);
|
||||
}
|
||||
.btn:hover { border-color: rgba(244, 241, 233, 0.22); }
|
||||
.btn:focus-visible { outline: 2px solid rgba(106, 252, 255, 0.55); outline-offset: 2px; }
|
||||
.btn--hot {
|
||||
border-color: rgba(183, 255, 106, 0.35);
|
||||
background: linear-gradient(180deg, rgba(183, 255, 106, 0.22), rgba(183, 255, 106, 0.08));
|
||||
}
|
||||
.btn--hot:hover { border-color: rgba(183, 255, 106, 0.55); }
|
||||
.btn--ghost { color: rgba(244, 241, 233, 0.78); }
|
||||
|
||||
.terminal {
|
||||
margin-top: 24px;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid rgba(244, 241, 233, 0.14);
|
||||
background: rgba(0, 0, 0, 0.30);
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
.terminal__bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
border-bottom: 1px solid rgba(244, 241, 233, 0.10);
|
||||
}
|
||||
.terminal__dots { display: inline-flex; gap: 6px; }
|
||||
.terminal__dots i {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 999px;
|
||||
background: rgba(244, 241, 233, 0.16);
|
||||
}
|
||||
.terminal__label {
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
color: rgba(244, 241, 233, 0.55);
|
||||
}
|
||||
.terminal__body { position: relative; padding: 14px 14px 16px; }
|
||||
.terminal pre { margin: 0; overflow-x: auto; }
|
||||
.terminal code {
|
||||
font-family: var(--mono);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
color: rgba(244, 241, 233, 0.86);
|
||||
}
|
||||
|
||||
.copy {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 12px;
|
||||
border: 1px solid rgba(244, 241, 233, 0.14);
|
||||
border-radius: 12px;
|
||||
padding: 10px 12px;
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
color: rgba(244, 241, 233, 0.86);
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: transform 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
.copy:hover { border-color: rgba(244, 241, 233, 0.25); transform: translateY(-1px); }
|
||||
.copy:focus-visible { outline: 2px solid rgba(183, 255, 106, 0.55); outline-offset: 2px; }
|
||||
.copy__done { display: none; }
|
||||
.copy.is-done .copy__idle { display: none; }
|
||||
.copy.is-done .copy__done { display: inline; color: rgba(183, 255, 106, 0.92); }
|
||||
|
||||
.badges {
|
||||
margin-top: 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.badge {
|
||||
text-decoration: none;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(244, 241, 233, 0.12);
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
padding: 12px 12px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
.badge:hover { border-color: rgba(244, 241, 233, 0.22); }
|
||||
.badge__k { font-family: var(--mono); font-size: 12px; color: rgba(244, 241, 233, 0.62); }
|
||||
.badge__v { font-family: var(--mono); font-size: 12px; color: rgba(244, 241, 233, 0.90); }
|
||||
|
||||
.stripe { padding: 44px 18px; }
|
||||
.stripe__inner { max-width: var(--max); margin: 0 auto; }
|
||||
.stripe--tight { padding-top: 28px; }
|
||||
.stripe--end { padding-bottom: 64px; }
|
||||
|
||||
.h2 {
|
||||
margin: 0 0 10px;
|
||||
font-family: var(--serif);
|
||||
font-weight: 760;
|
||||
letter-spacing: -0.03em;
|
||||
font-size: 28px;
|
||||
font-variation-settings: "opsz" 144;
|
||||
}
|
||||
.h3 { margin: 0 0 8px; font-weight: 650; font-size: 16px; }
|
||||
.p { margin: 0 0 14px; line-height: 1.6; color: rgba(244, 241, 233, 0.80); }
|
||||
.p--muted { color: var(--muted); }
|
||||
|
||||
.cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.card {
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid rgba(244, 241, 233, 0.12);
|
||||
background: rgba(0, 0, 0, 0.16);
|
||||
padding: 16px 16px 14px;
|
||||
box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
.code {
|
||||
margin: 12px 0 0;
|
||||
border-radius: 14px;
|
||||
padding: 12px 12px;
|
||||
background: rgba(0, 0, 0, 0.30);
|
||||
border: 1px solid rgba(244, 241, 233, 0.10);
|
||||
overflow-x: auto;
|
||||
}
|
||||
.code code { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: rgba(244, 241, 233, 0.86); }
|
||||
|
||||
.cmds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
|
||||
.cmd {
|
||||
border-radius: 999px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid rgba(244, 241, 233, 0.14);
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
color: rgba(244, 241, 233, 0.78);
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.cmd:hover { border-color: rgba(244, 241, 233, 0.24); color: rgba(244, 241, 233, 0.92); }
|
||||
.cmd.is-on {
|
||||
border-color: rgba(183, 255, 106, 0.42);
|
||||
background: linear-gradient(180deg, rgba(183, 255, 106, 0.18), rgba(183, 255, 106, 0.05));
|
||||
color: rgba(244, 241, 233, 0.96);
|
||||
}
|
||||
.cmd:focus-visible { outline: 2px solid rgba(183, 255, 106, 0.55); outline-offset: 2px; }
|
||||
|
||||
.demo {
|
||||
margin-top: 14px;
|
||||
position: relative;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid rgba(244, 241, 233, 0.12);
|
||||
background: rgba(0, 0, 0, 0.20);
|
||||
padding: 14px 14px 16px;
|
||||
box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
.demo__pre { margin: 0; overflow-x: auto; }
|
||||
.demo__pre code { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: rgba(244, 241, 233, 0.86); }
|
||||
.copy--demo { top: 10px; right: 10px; }
|
||||
|
||||
.steps { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
|
||||
.step {
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid rgba(244, 241, 233, 0.12);
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
padding: 16px 16px 14px;
|
||||
box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
.step__num {
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.12em;
|
||||
color: rgba(244, 241, 233, 0.56);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.pill {
|
||||
display: inline-block;
|
||||
padding: 1px 7px 2px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(244, 241, 233, 0.14);
|
||||
background: rgba(0, 0, 0, 0.20);
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
color: rgba(244, 241, 233, 0.86);
|
||||
}
|
||||
|
||||
.footerline {
|
||||
margin-top: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
color: rgba(244, 241, 233, 0.60);
|
||||
}
|
||||
.tiny { font-size: 12px; color: rgba(244, 241, 233, 0.72); }
|
||||
.tiny--muted { color: rgba(244, 241, 233, 0.52); }
|
||||
.sep { opacity: 0.5; }
|
||||
|
||||
.bottom {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 28px 18px 40px;
|
||||
}
|
||||
.bottom__inner { max-width: var(--max); margin: 0 auto; }
|
||||
|
||||
/* 404 */
|
||||
body.is-404 { display: grid; place-items: center; }
|
||||
.notfound { max-width: 640px; padding: 18px; text-align: left; }
|
||||
.brand--solo { margin-bottom: 26px; }
|
||||
.title--small { font-size: clamp(56px, 10vw, 96px); margin-bottom: 6px; }
|
||||
.lede--small { max-width: 54ch; }
|
||||
|
||||
/* reveal */
|
||||
[data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
|
||||
body.is-ready [data-reveal] {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
filter: blur(0);
|
||||
transition: opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
filter 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
body.is-ready [data-reveal]:nth-child(1) { transition-delay: 70ms; }
|
||||
body.is-ready [data-reveal]:nth-child(2) { transition-delay: 140ms; }
|
||||
body.is-ready [data-reveal]:nth-child(3) { transition-delay: 210ms; }
|
||||
body.is-ready [data-reveal]:nth-child(4) { transition-delay: 280ms; }
|
||||
body.is-ready [data-reveal]:nth-child(5) { transition-delay: 350ms; }
|
||||
body.is-ready [data-reveal]:nth-child(6) { transition-delay: 420ms; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
[data-reveal] { opacity: 1; transform: none; filter: none; }
|
||||
body.is-ready [data-reveal] { transition: none; }
|
||||
.copy { transition: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
.badges { grid-template-columns: 1fr; }
|
||||
.cards { grid-template-columns: 1fr; }
|
||||
.steps { grid-template-columns: 1fr; }
|
||||
.nav { display: none; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
const by = (sel, root = document) => root.querySelector(sel);
|
||||
const all = (sel, root = document) => Array.from(root.querySelectorAll(sel));
|
||||
|
||||
const demoSnippets = {
|
||||
tweet: `bird tweet "ship it"`,
|
||||
reply: `bird reply https://x.com/user/status/1234567890123456789 "same"`,
|
||||
read: `bird read https://x.com/user/status/1234567890123456789`,
|
||||
thread: `bird thread 1234567890123456789`,
|
||||
search: `bird search "from:steipete" -n 5`,
|
||||
mentions: `bird mentions -n 5`,
|
||||
};
|
||||
|
||||
const setDemo = (key) => {
|
||||
const code = by("#demoCode");
|
||||
if (!code) return;
|
||||
const value = demoSnippets[key] ?? demoSnippets.tweet;
|
||||
code.textContent = value;
|
||||
};
|
||||
|
||||
const wireTabs = () => {
|
||||
const buttons = all("[data-cmd]");
|
||||
if (buttons.length === 0) return;
|
||||
buttons.forEach((b) => {
|
||||
b.addEventListener("click", () => {
|
||||
const key = b.getAttribute("data-cmd") ?? "tweet";
|
||||
buttons.forEach((x) => {
|
||||
const on = x === b;
|
||||
x.classList.toggle("is-on", on);
|
||||
x.setAttribute("aria-selected", on ? "true" : "false");
|
||||
});
|
||||
setDemo(key);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const wireCopy = () => {
|
||||
all("[data-copy]").forEach((btn) => {
|
||||
btn.addEventListener("click", async () => {
|
||||
const sel = btn.getAttribute("data-copy");
|
||||
if (!sel) return;
|
||||
const node = by(sel);
|
||||
if (!node) return;
|
||||
const text = node.textContent ?? "";
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
btn.classList.add("is-done");
|
||||
window.setTimeout(() => btn.classList.remove("is-done"), 900);
|
||||
} catch {
|
||||
// noop
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const wireOrbs = () => {
|
||||
const a = by(".bg__orb--a");
|
||||
const b = by(".bg__orb--b");
|
||||
if (!a || !b) return;
|
||||
|
||||
let raf = 0;
|
||||
const onMove = (e) => {
|
||||
if (raf) cancelAnimationFrame(raf);
|
||||
raf = requestAnimationFrame(() => {
|
||||
const x = e.clientX / window.innerWidth;
|
||||
const y = e.clientY / window.innerHeight;
|
||||
a.style.transform = `translate3d(${(x - 0.4) * 80}px, ${(y - 0.4) * 70}px, 0)`;
|
||||
b.style.transform = `translate3d(${(x - 0.6) * 90}px, ${(y - 0.6) * 80}px, 0)`;
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener("mousemove", onMove, { passive: true });
|
||||
};
|
||||
|
||||
document.documentElement.classList.add("js");
|
||||
window.setTimeout(() => document.body.classList.add("is-ready"), 20);
|
||||
|
||||
wireTabs();
|
||||
wireCopy();
|
||||
wireOrbs();
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#b7ff6a" stop-opacity="0.95" />
|
||||
<stop offset="1" stop-color="#6afcff" stop-opacity="0.85" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="64" height="64" rx="14" fill="#0b0d10" />
|
||||
<rect x="5" y="5" width="54" height="54" rx="12" fill="rgba(255,255,255,0.06)" stroke="rgba(255,255,255,0.10)" />
|
||||
<path
|
||||
d="M46 24c-2.1-6.5-8.1-11-15.2-11C21.9 13 15 19.9 15 28.8 15 37.8 21.9 45 30.8 45c2.1 0 4.2-.4 6.1-1.2 4.1 2.2 8.8 2.7 13.4 1.3-5.4-.9-8.4-3.3-9.7-6.7 3.7-2.9 6-7.4 6-12.1 0-.7-.1-1.4-.2-2.1H48l6-5-8.4.1z"
|
||||
fill="url(#g)"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 715 B |
+222
@@ -0,0 +1,222 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<meta name="theme-color" content="#0b0d10" />
|
||||
|
||||
<title>bird.fast — fast X CLI</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="bird is a fast X CLI for tweeting, replying, and reading via the X/Twitter GraphQL API (cookie auth)."
|
||||
/>
|
||||
|
||||
<link rel="canonical" href="https://bird.fast/" />
|
||||
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
||||
|
||||
<meta property="og:title" content="bird.fast" />
|
||||
<meta property="og:description" content="Fast X CLI for tweeting, replying, and reading." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://bird.fast/" />
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],500..900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap"
|
||||
/>
|
||||
|
||||
<link rel="stylesheet" href="./assets/site.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<a class="skip" href="#content">Skip to content</a>
|
||||
|
||||
<div class="bg" aria-hidden="true">
|
||||
<div class="bg__orb bg__orb--a"></div>
|
||||
<div class="bg__orb bg__orb--b"></div>
|
||||
<div class="bg__grid"></div>
|
||||
<div class="bg__noise"></div>
|
||||
</div>
|
||||
|
||||
<header class="top">
|
||||
<div class="top__inner">
|
||||
<a class="brand" href="./" aria-label="bird.fast home">
|
||||
<span class="brand__mark" aria-hidden="true">
|
||||
<img src="./assets/mark.svg" width="26" height="26" alt="" />
|
||||
</span>
|
||||
<span class="brand__word">bird</span>
|
||||
<span class="brand__dot">.fast</span>
|
||||
</a>
|
||||
|
||||
<nav class="nav">
|
||||
<a class="nav__link" href="#install">Install</a>
|
||||
<a class="nav__link" href="#commands">Commands</a>
|
||||
<a class="nav__link" href="https://github.com/steipete/bird">GitHub</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="content">
|
||||
<section class="hero">
|
||||
<div class="hero__inner">
|
||||
<p class="kicker" data-reveal>Fast X CLI. Cookie auth. Zero fuss.</p>
|
||||
|
||||
<h1 class="title" data-reveal>
|
||||
<span class="title__big">bird</span><span class="title__dot">.fast</span>
|
||||
</h1>
|
||||
|
||||
<p class="lede" data-reveal>
|
||||
Tweet, reply, read threads, search, mentions — powered by X/Twitter GraphQL and your existing
|
||||
browser session.
|
||||
</p>
|
||||
|
||||
<div class="cta" data-reveal>
|
||||
<a class="btn btn--hot" href="#install">Install</a>
|
||||
<a class="btn btn--ghost" href="https://github.com/steipete/bird#quickstart">Quickstart</a>
|
||||
</div>
|
||||
|
||||
<div class="terminal" data-reveal>
|
||||
<div class="terminal__bar">
|
||||
<span class="terminal__dots" aria-hidden="true">
|
||||
<i></i><i></i><i></i>
|
||||
</span>
|
||||
<span class="terminal__label">copy & run</span>
|
||||
</div>
|
||||
<div class="terminal__body">
|
||||
<pre><code id="installCmd">npm install -g @steipete/bird
|
||||
|
||||
bird whoami
|
||||
bird tweet "hi from bird.fast"</code></pre>
|
||||
<button class="copy" type="button" data-copy="#installCmd">
|
||||
<span class="copy__idle">Copy</span>
|
||||
<span class="copy__done" aria-hidden="true">Copied</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="badges" data-reveal>
|
||||
<a class="badge" href="https://www.npmjs.com/package/@steipete/bird">
|
||||
<span class="badge__k">npm</span>
|
||||
<span class="badge__v">@steipete/bird</span>
|
||||
</a>
|
||||
<a class="badge" href="https://github.com/steipete/bird">
|
||||
<span class="badge__k">repo</span>
|
||||
<span class="badge__v">steipete/bird</span>
|
||||
</a>
|
||||
<a class="badge" href="https://github.com/steipete/bird#authentication-graphql">
|
||||
<span class="badge__k">auth</span>
|
||||
<span class="badge__v">cookies</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="stripe" id="install">
|
||||
<div class="stripe__inner">
|
||||
<h2 class="h2">Install</h2>
|
||||
<div class="cards">
|
||||
<article class="card">
|
||||
<h3 class="h3">npm / pnpm / bun</h3>
|
||||
<p class="p">Pick your poison. Node ≥ 20.</p>
|
||||
<pre class="code"><code>npm install -g @steipete/bird
|
||||
pnpm add -g @steipete/bird
|
||||
bun add -g @steipete/bird</code></pre>
|
||||
</article>
|
||||
<article class="card">
|
||||
<h3 class="h3">One-shot</h3>
|
||||
<p class="p">No install. Just prove it works.</p>
|
||||
<pre class="code"><code>bunx @steipete/bird whoami</code></pre>
|
||||
</article>
|
||||
<article class="card">
|
||||
<h3 class="h3">Homebrew (macOS)</h3>
|
||||
<p class="p">Prebuilt Bun binary.</p>
|
||||
<pre class="code"><code>brew install steipete/tap/bird</code></pre>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="stripe stripe--tight" id="commands">
|
||||
<div class="stripe__inner">
|
||||
<h2 class="h2">Commands</h2>
|
||||
<p class="p p--muted">Everything you need for a fast “read → reply → move on” loop.</p>
|
||||
|
||||
<div class="cmds" role="tablist" aria-label="bird commands">
|
||||
<button class="cmd is-on" type="button" data-cmd="tweet" role="tab" aria-selected="true">
|
||||
tweet
|
||||
</button>
|
||||
<button class="cmd" type="button" data-cmd="reply" role="tab" aria-selected="false">reply</button>
|
||||
<button class="cmd" type="button" data-cmd="read" role="tab" aria-selected="false">read</button>
|
||||
<button class="cmd" type="button" data-cmd="thread" role="tab" aria-selected="false">thread</button>
|
||||
<button class="cmd" type="button" data-cmd="search" role="tab" aria-selected="false">search</button>
|
||||
<button class="cmd" type="button" data-cmd="mentions" role="tab" aria-selected="false">
|
||||
mentions
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="demo" aria-live="polite">
|
||||
<pre class="demo__pre"><code id="demoCode">bird tweet "ship it"</code></pre>
|
||||
<button class="copy copy--demo" type="button" data-copy="#demoCode">
|
||||
<span class="copy__idle">Copy</span>
|
||||
<span class="copy__done" aria-hidden="true">Copied</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="stripe stripe--end">
|
||||
<div class="stripe__inner">
|
||||
<h2 class="h2">How it works</h2>
|
||||
<div class="steps">
|
||||
<article class="step">
|
||||
<div class="step__num">01</div>
|
||||
<h3 class="h3">Use your existing session</h3>
|
||||
<p class="p p--muted">
|
||||
Cookie auth. No password prompt. Reads from Safari/Chrome/Firefox (configurable).
|
||||
</p>
|
||||
</article>
|
||||
<article class="step">
|
||||
<div class="step__num">02</div>
|
||||
<h3 class="h3">GraphQL first</h3>
|
||||
<p class="p p--muted">
|
||||
Talks to X’s internal endpoints. Query IDs rotate — bird auto-refreshes and caches them.
|
||||
</p>
|
||||
</article>
|
||||
<article class="step">
|
||||
<div class="step__num">03</div>
|
||||
<h3 class="h3">Fast, scriptable output</h3>
|
||||
<p class="p p--muted">
|
||||
Human output by default. Flip to <span class="pill">--json</span> or
|
||||
<span class="pill">--plain</span> when you need stability.
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="footerline">
|
||||
<a class="tiny" href="https://github.com/steipete/bird#authentication-graphql">
|
||||
Authentication details
|
||||
</a>
|
||||
<span class="sep" aria-hidden="true">•</span>
|
||||
<a class="tiny" href="https://github.com/steipete/bird#config-json5">Config (JSON5)</a>
|
||||
<span class="sep" aria-hidden="true">•</span>
|
||||
<a class="tiny" href="https://github.com/steipete/bird/issues">Issues</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="bottom">
|
||||
<div class="bottom__inner">
|
||||
<p class="tiny">
|
||||
Made by <a href="https://steipete.me">Peter</a>. MIT licensed. Built for GitHub Pages.
|
||||
</p>
|
||||
<p class="tiny tiny--muted">bird.fast is the landing page; the project lives on GitHub.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="./assets/site.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user