feat(website): show sponsors on paseo.sh and at the top of the README (#6956)

This commit is contained in:
Mohamed Boudra authored and GitHub committed 2026-10-15 11:19:32 +07:00
1 parent 8ff2424da1
commit 9ab99a6e1e
15 files changed
+271 -93

No files matched your search

+13 -4
View File
@@ -53,6 +53,17 @@
- **クロスデバイス:** iOS、Android、デスクトップ、Web、CLI に対応。机で作業を始め、スマートフォンで確認し、ターミナルから自動化できます。
- **プライバシー優先:** Paseo にはテレメトリー・トラッキング・強制ログインは一切ありません。
## スポンサー
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
<table>
<tr>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo のスポンサーになる</a></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo のスポンサーになる</a></td>
</tr>
</table>
## はじめかた
Paseo はコーディングエージェントを管理するローカルサーバー(デーモン)を起動します。デスクトップアプリ・モバイルアプリ・Web アプリ・CLI などのクライアントがこのデーモンに接続します。
@@ -151,11 +162,9 @@ npm run build:server
npm run typecheck
```
## スポンサー
## Paseo を支援する
Paseo は一人で開発しており、使ってくれる人たちの支援で成り立っています。[GitHub Sponsors](https://github.com/sponsors/boudra) で支援できます。企業として毎月[スポンサー](https://paseo.sh/sponsor#spot)になっていただくと、ロゴをここと paseo.sh のホームページに掲載します。
<!-- Sponsor logos go here, in the same order as packages/website/src/data/sponsors.ts -->
Paseo は一人で開発しており、使ってくれる人たちの支援で成り立っています。[GitHub Sponsors](https://github.com/sponsors/boudra) で支援できます。企業として毎月[スポンサー](https://paseo.sh/sponsor#spot)になっていただくと、ロゴをこの README の冒頭と、paseo.sh のトップページおよびドキュメントに掲載します。
## 関連プロジェクト
+13 -4
View File
@@ -47,6 +47,17 @@
- **여러 기기 지원:** iOS, Android, 데스크톱, 웹, CLI를 지원합니다. 데스크톱에서 시작해 휴대폰으로 확인하고 터미널에서 자동화할 수 있습니다.
- **개인정보 보호 우선:** Paseo는 텔레메트리, 추적, 강제 로그인을 사용하지 않습니다.
## 스폰서
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
<table>
<tr>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo 스폰서 되기</a></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Paseo 스폰서 되기</a></td>
</tr>
</table>
## 시작하기
Paseo는 코딩 에이전트를 관리하는 로컬 서버인 데몬을 실행합니다. 데스크톱 앱, 모바일 앱, 웹 앱, CLI 같은 클라이언트가 이 데몬에 연결합니다.
@@ -161,11 +172,9 @@ npm run build:server
npm run typecheck
```
## 스폰서
## Paseo 후원하기
Paseo는 한 사람이 개발하며, 사용하는 분들의 후원으로 운영됩니다. [GitHub Sponsors](https://github.com/sponsors/boudra)로 후원할 수 있습니다. 회사는 매월 [Paseo를 후원](https://paseo.sh/sponsor#spot)하고 로고를 이곳과 paseo.sh 홈페이지에 게재할 수 있습니다.
<!-- Sponsor logos go here, in the same order as packages/website/src/data/sponsors.ts -->
Paseo는 한 사람이 개발하며, 사용하는 분들의 후원으로 운영됩니다. [GitHub Sponsors](https://github.com/sponsors/boudra)로 후원할 수 있습니다. 회사는 매월 [Paseo를 후원](https://paseo.sh/sponsor#spot)하고 로고를 이 README 상단과 paseo.sh 홈페이지 및 문서에 게재할 수 있습니다.
## 관련 프로젝트
+13 -4
View File
@@ -52,6 +52,17 @@ Paseo is an open source agentic development environment for desktop, mobile, web
[Run parallel tasks in Paseo](https://paseo.sh/docs/parallel-development): start agents in separate worktrees, review their diffs, run each app, and check it in the built-in browser.
## Sponsors
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
<table>
<tr>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
</tr>
</table>
## Plugins
Plugins run on the daemon and show up in every client you connect, with the same UI on desktop, web,
@@ -207,11 +218,9 @@ npm run build:server
npm run typecheck
```
## Sponsors
## Support Paseo
Paseo is an independent project used by tens of thousands of developers daily, built by one person and funded by the people who use it. Support the work on [GitHub Sponsors](https://github.com/sponsors/boudra). Companies can [sponsor Paseo](https://paseo.sh/sponsor#spot) monthly and have their logo shown here and on the paseo.sh homepage.
<!-- Sponsor logos go here, in the same order as packages/website/src/data/sponsors.ts -->
Paseo is an independent project used by tens of thousands of developers daily, built by one person and funded by the people who use it. Support the work on [GitHub Sponsors](https://github.com/sponsors/boudra). Companies can [sponsor Paseo](https://paseo.sh/sponsor#spot) monthly and have their logo shown at the top of this README and on the paseo.sh homepage and docs.
## Related projects
+13 -4
View File
@@ -53,6 +53,17 @@
- **跨设备:** 支持 iOS、Android、桌面端、Web 和 CLI。在桌前开始工作,用手机查看进度,也可以从终端脚本化操作。
- **隐私优先:** Paseo 没有遥测、追踪,也不会强制登录。
## 赞助商
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
<table>
<tr>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Cloud coding agents</sub></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">成为 Paseo 赞助商</a></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">成为 Paseo 赞助商</a></td>
</tr>
</table>
## 快速开始
Paseo 会运行一个名为 daemon 的本地服务,用来管理你的 coding agents。桌面 app、移动 app、Web app 和 CLI 等客户端都会连接到它。
@@ -151,11 +162,9 @@ npm run build:server
npm run typecheck
```
## 赞助
## 支持 Paseo
Paseo 由一个人开发,靠使用它的人来资助。你可以通过 [GitHub Sponsors](https://github.com/sponsors/boudra) 支持这项工作。公司也可以按月[赞助 Paseo](https://paseo.sh/sponsor#spot),logo 会展示在这里和 paseo.sh 首页上。
<!-- Sponsor logos go here, in the same order as packages/website/src/data/sponsors.ts -->
Paseo 由一个人开发,靠使用它的人来资助。你可以通过 [GitHub Sponsors](https://github.com/sponsors/boudra) 支持这项工作。公司也可以按月[赞助 Paseo](https://paseo.sh/sponsor#spot),logo 会展示在本 README 顶部,以及 paseo.sh 的首页和文档中。
## 相关项目
+20
View File
@@ -0,0 +1,20 @@
import { expect, test } from "playwright/test";
const PAGES = ["/", "/docs/connectivity", "/changelog"];
for (const path of PAGES) {
test(`${path} shows the sponsors and invites the next one`, async ({ page }) => {
await page.goto(path);
const sponsors = page.getByRole("region", { name: /^(Sponsors|Sponsored by)$/ });
await expect(sponsors.getByRole("link", { name: "Hoplite" })).toHaveAttribute(
"href",
"https://hoplite.sh/?utm_source=paseo&utm_medium=website&utm_campaign=sponsor",
);
await expect(sponsors.getByText("Cloud coding agents", { exact: true })).toBeVisible();
await expect(sponsors.getByRole("link", { name: "Become a sponsor" })).toHaveAttribute(
"href",
"/sponsor#spot",
);
});
}
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="543" height="132" viewBox="0 0 543.36 131.55" fill="none" role="img" aria-label="Hoplite"><g transform="translate(8 21.057) scale(0.573290)"><path d="M302.691 155.065H288.942C287.892 155.065 287.041 154.214 287.041 153.164V147.506C287.041 146.804 286.654 146.159 286.035 145.829L261.463 132.724C260.165 132.032 260.111 130.192 261.366 129.425L274.298 121.522C275.075 121.047 276.079 121.19 276.693 121.862L304.095 151.883C305.209 153.103 304.343 155.065 302.691 155.065Z" fill="#eaeaea"></path><path d="M252.762 108.228L233.61 107.75H98.3204C97.9834 107.75 97.6525 107.84 97.3615 108.01L37.0718 143.236L27.0043 148.614C26.3855 148.944 25.9991 149.589 25.9991 150.29V153.149C25.9991 154.205 25.1389 155.058 24.0833 155.05L4.18116 154.894C2.54933 154.881 1.69116 152.953 2.77368 151.732L47.3957 101.396C47.4864 101.293 47.5658 101.181 47.6325 101.062L53.6519 90.2923C54.5951 88.6046 52.7097 86.7502 51.0379 87.7212L35.8453 96.5457C24.2461 103.283 9.39029 99.5363 2.37343 88.1041L0.280818 84.6947C0.097197 84.3956 0 84.0514 0 83.7004V58.3505C0 56.4105 2.56456 55.7168 3.54252 57.3923L10.4681 69.2575C15.7292 78.271 27.2735 81.357 36.3303 76.171L58.8584 63.2712C59.4456 62.935 59.8097 62.312 59.8147 61.6355L59.8659 54.615C59.8766 53.1519 58.2994 52.2258 57.0268 52.948L33.8106 66.1245C28.937 68.8905 22.7405 66.8612 20.4473 61.7481L0.166472 16.5284C0.0567329 16.2838 7.51957e-06 16.0186 2.20646e-05 15.7505L0.000767057 2.01526C0.000821237 1.01636 0.810609 0.206616 1.80951 0.206616C17.8277 0.206616 33.7837 2.20008 49.3095 6.14104L70.7728 11.5891C71.9741 11.8941 73.1413 10.9862 73.1413 9.74669V1.59489C73.1413 0.828169 73.7628 0.206616 74.5296 0.206616C88.0714 0.206616 101.274 4.44343 112.287 12.3233L137.017 30.0176C137.339 30.2484 137.726 30.3725 138.123 30.3725H161.504C162.554 30.3725 163.405 29.5215 163.405 28.4717V25.5583C163.405 24.5085 162.554 23.6575 161.504 23.6575H138.446C136.536 23.6575 135.819 21.1555 137.44 20.1441L152.071 11.0128C163.603 3.81567 176.923 0 190.517 0C203.224 0 215.708 3.33443 226.723 9.67017L231.117 12.1975C232.347 12.9051 232.396 14.6625 231.207 15.4376L212.014 27.9505C211.476 28.3014 211.151 28.9004 211.151 29.5429V35.984C211.151 36.6551 210.797 37.2766 210.22 37.6189L203.831 41.4081C202.133 42.4151 200.215 40.4867 201.231 38.7944L202.078 37.3845C202.839 36.1175 201.927 34.5048 200.449 34.5048H192.32C190.287 34.5048 189.673 37.2658 191.514 38.1273L198.321 41.3127C199.687 41.9517 199.8 43.8498 198.521 44.6474L186.136 52.3701C185.834 52.5582 185.486 52.6579 185.13 52.6579H179.616C178.581 52.6579 177.742 53.497 177.742 54.532C177.742 55.567 178.581 56.4061 179.616 56.4061H189.794C190.136 56.4061 190.471 56.314 190.765 56.1395L267.664 10.4567C276.712 5.08166 288.289 6.78035 295.411 14.5282C295.556 14.6857 295.636 14.8917 295.636 15.1055V20.8068C295.636 22.457 297.595 23.3234 298.816 22.2134L303.82 17.6635C305.042 16.5534 307 17.4198 307 19.07V81.8818C307 82.9316 306.149 83.7827 305.099 83.7827H296.529C295.963 83.7827 295.427 83.5307 295.066 83.0953L276.998 61.3111C276.255 60.4154 274.889 60.3915 274.116 61.2606L259.05 78.1821C258.276 79.0519 258.458 80.4071 259.435 81.0408L290.165 100.974C291.35 101.742 291.313 103.489 290.096 104.206L242.218 132.42C240.989 133.144 239.43 132.307 239.355 130.882L238.675 117.953C238.617 116.865 239.484 115.952 240.573 115.952H248.301C248.767 115.952 249.216 115.781 249.564 115.472L253.977 111.549C255.266 110.404 254.486 108.271 252.762 108.228Z" fill="#eaeaea"></path><path d="M137.364 113.639H111.169C110.831 113.639 110.499 113.729 110.208 113.9L80.0946 131.554C78.7781 132.326 78.862 134.256 80.2405 134.911L107.275 147.751C107.938 148.066 108.361 148.734 108.361 149.468V153.164C108.361 154.214 109.212 155.065 110.262 155.065H126.237C127.886 155.065 128.753 153.109 127.645 151.888L112.427 135.099C111.618 134.207 111.832 132.797 112.87 132.185L138.329 117.177C139.997 116.194 139.299 113.639 137.364 113.639Z" fill="#eaeaea"></path></g><path fill="#eaeaea" d="M94.51 109.18Q93.17 109.18 92.00 108.67Q90.84 108.17 89.94 107.28Q89.05 106.39 88.55 105.22Q88.05 104.06 88.05 102.72Q88.05 101.38 88.55 100.21Q89.05 99.05 89.94 98.15Q90.84 97.26 92.00 96.76Q93.17 96.26 94.51 96.26Q95.85 96.26 97.01 96.76Q98.18 97.26 99.07 98.15Q99.96 99.05 100.47 100.21Q100.97 101.38 100.97 102.72Q100.97 104.06 100.47 105.22Q99.96 106.39 99.07 107.28Q98.18 108.17 97.01 108.67Q95.85 109.18 94.51 109.18ZM94.51 107.82Q95.57 107.82 96.49 107.42Q97.41 107.02 98.11 106.32Q98.82 105.62 99.21 104.69Q99.61 103.77 99.61 102.72Q99.61 101.65 99.21 100.73Q98.82 99.81 98.11 99.11Q97.41 98.40 96.49 98.01Q95.57 97.62 94.51 97.62Q93.45 97.62 92.53 98.01Q91.60 98.40 90.90 99.11Q90.20 99.81 89.81 100.73Q89.41 101.65 89.41 102.72Q89.41 103.77 89.81 104.69Q90.20 105.62 90.90 106.32Q91.60 107.02 92.53 107.42Q93.45 107.82 94.51 107.82ZM94.53 106.13Q93.63 106.13 92.92 105.71Q92.21 105.29 91.80 104.52Q91.38 103.74 91.38 102.72Q91.38 101.67 91.80 100.91Q92.21 100.14 92.92 99.72Q93.63 99.Line truncated

After

Width:  |  Height:  |  Size: 7.4 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="543" height="132" viewBox="0 0 543.36 131.55" fill="none" role="img" aria-label="Hoplite"><g transform="translate(8 21.057) scale(0.573290)"><path d="M302.691 155.065H288.942C287.892 155.065 287.041 154.214 287.041 153.164V147.506C287.041 146.804 286.654 146.159 286.035 145.829L261.463 132.724C260.165 132.032 260.111 130.192 261.366 129.425L274.298 121.522C275.075 121.047 276.079 121.19 276.693 121.862L304.095 151.883C305.209 153.103 304.343 155.065 302.691 155.065Z" fill="#121212"></path><path d="M252.762 108.228L233.61 107.75H98.3204C97.9834 107.75 97.6525 107.84 97.3615 108.01L37.0718 143.236L27.0043 148.614C26.3855 148.944 25.9991 149.589 25.9991 150.29V153.149C25.9991 154.205 25.1389 155.058 24.0833 155.05L4.18116 154.894C2.54933 154.881 1.69116 152.953 2.77368 151.732L47.3957 101.396C47.4864 101.293 47.5658 101.181 47.6325 101.062L53.6519 90.2923C54.5951 88.6046 52.7097 86.7502 51.0379 87.7212L35.8453 96.5457C24.2461 103.283 9.39029 99.5363 2.37343 88.1041L0.280818 84.6947C0.097197 84.3956 0 84.0514 0 83.7004V58.3505C0 56.4105 2.56456 55.7168 3.54252 57.3923L10.4681 69.2575C15.7292 78.271 27.2735 81.357 36.3303 76.171L58.8584 63.2712C59.4456 62.935 59.8097 62.312 59.8147 61.6355L59.8659 54.615C59.8766 53.1519 58.2994 52.2258 57.0268 52.948L33.8106 66.1245C28.937 68.8905 22.7405 66.8612 20.4473 61.7481L0.166472 16.5284C0.0567329 16.2838 7.51957e-06 16.0186 2.20646e-05 15.7505L0.000767057 2.01526C0.000821237 1.01636 0.810609 0.206616 1.80951 0.206616C17.8277 0.206616 33.7837 2.20008 49.3095 6.14104L70.7728 11.5891C71.9741 11.8941 73.1413 10.9862 73.1413 9.74669V1.59489C73.1413 0.828169 73.7628 0.206616 74.5296 0.206616C88.0714 0.206616 101.274 4.44343 112.287 12.3233L137.017 30.0176C137.339 30.2484 137.726 30.3725 138.123 30.3725H161.504C162.554 30.3725 163.405 29.5215 163.405 28.4717V25.5583C163.405 24.5085 162.554 23.6575 161.504 23.6575H138.446C136.536 23.6575 135.819 21.1555 137.44 20.1441L152.071 11.0128C163.603 3.81567 176.923 0 190.517 0C203.224 0 215.708 3.33443 226.723 9.67017L231.117 12.1975C232.347 12.9051 232.396 14.6625 231.207 15.4376L212.014 27.9505C211.476 28.3014 211.151 28.9004 211.151 29.5429V35.984C211.151 36.6551 210.797 37.2766 210.22 37.6189L203.831 41.4081C202.133 42.4151 200.215 40.4867 201.231 38.7944L202.078 37.3845C202.839 36.1175 201.927 34.5048 200.449 34.5048H192.32C190.287 34.5048 189.673 37.2658 191.514 38.1273L198.321 41.3127C199.687 41.9517 199.8 43.8498 198.521 44.6474L186.136 52.3701C185.834 52.5582 185.486 52.6579 185.13 52.6579H179.616C178.581 52.6579 177.742 53.497 177.742 54.532C177.742 55.567 178.581 56.4061 179.616 56.4061H189.794C190.136 56.4061 190.471 56.314 190.765 56.1395L267.664 10.4567C276.712 5.08166 288.289 6.78035 295.411 14.5282C295.556 14.6857 295.636 14.8917 295.636 15.1055V20.8068C295.636 22.457 297.595 23.3234 298.816 22.2134L303.82 17.6635C305.042 16.5534 307 17.4198 307 19.07V81.8818C307 82.9316 306.149 83.7827 305.099 83.7827H296.529C295.963 83.7827 295.427 83.5307 295.066 83.0953L276.998 61.3111C276.255 60.4154 274.889 60.3915 274.116 61.2606L259.05 78.1821C258.276 79.0519 258.458 80.4071 259.435 81.0408L290.165 100.974C291.35 101.742 291.313 103.489 290.096 104.206L242.218 132.42C240.989 133.144 239.43 132.307 239.355 130.882L238.675 117.953C238.617 116.865 239.484 115.952 240.573 115.952H248.301C248.767 115.952 249.216 115.781 249.564 115.472L253.977 111.549C255.266 110.404 254.486 108.271 252.762 108.228Z" fill="#121212"></path><path d="M137.364 113.639H111.169C110.831 113.639 110.499 113.729 110.208 113.9L80.0946 131.554C78.7781 132.326 78.862 134.256 80.2405 134.911L107.275 147.751C107.938 148.066 108.361 148.734 108.361 149.468V153.164C108.361 154.214 109.212 155.065 110.262 155.065H126.237C127.886 155.065 128.753 153.109 127.645 151.888L112.427 135.099C111.618 134.207 111.832 132.797 112.87 132.185L138.329 117.177C139.997 116.194 139.299 113.639 137.364 113.639Z" fill="#121212"></path></g><path fill="#121212" d="M94.51 109.18Q93.17 109.18 92.00 108.67Q90.84 108.17 89.94 107.28Q89.05 106.39 88.55 105.22Q88.05 104.06 88.05 102.72Q88.05 101.38 88.55 100.21Q89.05 99.05 89.94 98.15Q90.84 97.26 92.00 96.76Q93.17 96.26 94.51 96.26Q95.85 96.26 97.01 96.76Q98.18 97.26 99.07 98.15Q99.96 99.05 100.47 100.21Q100.97 101.38 100.97 102.72Q100.97 104.06 100.47 105.22Q99.96 106.39 99.07 107.28Q98.18 108.17 97.01 108.67Q95.85 109.18 94.51 109.18ZM94.51 107.82Q95.57 107.82 96.49 107.42Q97.41 107.02 98.11 106.32Q98.82 105.62 99.21 104.69Q99.61 103.77 99.61 102.72Q99.61 101.65 99.21 100.73Q98.82 99.81 98.11 99.11Q97.41 98.40 96.49 98.01Q95.57 97.62 94.51 97.62Q93.45 97.62 92.53 98.01Q91.60 98.40 90.90 99.11Q90.20 99.81 89.81 100.73Q89.41 101.65 89.41 102.72Q89.41 103.77 89.81 104.69Q90.20 105.62 90.90 106.32Q91.60 107.02 92.53 107.42Q93.45 107.82 94.51 107.82ZM94.53 106.13Q93.63 106.13 92.92 105.71Q92.21 105.29 91.80 104.52Q91.38 103.74 91.38 102.72Q91.38 101.67 91.80 100.91Q92.21 100.14 92.92 99.72Q93.63 99.Line truncated

After

Width:  |  Height:  |  Size: 7.4 KiB

@@ -1,3 +1,4 @@
import { ExternalLink } from "lucide-react";
import type { Doc } from "~/docs";
const GITHUB_BASE_URL = "https://github.com/getpaseo/paseo/blob/main";
@@ -6,9 +7,15 @@ export function DocsSourceFooter({ doc }: { doc: Doc }) {
const sourceUrl = `${GITHUB_BASE_URL}/${doc.sourcePath}`;
return (
<footer className="docs-source-footer">
<a href={sourceUrl} target="_blank" rel="noreferrer">
View this page on GitHub
<footer className="mt-12 border-t border-white/10 py-8 text-sm">
<a
href={sourceUrl}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-1.5 font-medium text-white/60 underline-offset-4 transition-colors hover:text-foreground hover:underline"
>
View on GitHub
<ExternalLink aria-hidden="true" className="size-3.5" />
</a>
</footer>
);
@@ -134,11 +134,11 @@ export function LandingPage({ title, subtitle }: LandingPageProps) {
<ExtensibleSection />
<FAQ />
<PhilosophySection />
<SponsorsSection placement="page" />
<SponsorSection />
<SponsorsSection />
</div>
</main>
<SiteFooter />
<SiteFooter sponsors={false} />
</div>
</CursorFieldProvider>
);
@@ -1,9 +1,12 @@
import { PLUGINS_LINKED } from "~/plugins/launch";
import { getAlternativePages } from "~/data/alternative-pages";
import { appStoreUrl, playStoreUrl, webAppUrl } from "~/downloads";
import { SponsorsSection } from "~/components/sponsorship";
interface SiteFooterProps {
width?: "default" | "prose" | "wide";
/** Pages that show the sponsors in their content turn the footer band off. */
sponsors?: boolean;
}
const WIDTH_CLASSES: Record<NonNullable<SiteFooterProps["width"]>, string> = {
@@ -12,11 +15,12 @@ const WIDTH_CLASSES: Record<NonNullable<SiteFooterProps["width"]>, string> = {
wide: "max-w-7xl p-6 md:p-20 md:pt-0",
};
export function SiteFooter({ width = "default" }: SiteFooterProps) {
export function SiteFooter({ width = "default", sponsors = true }: SiteFooterProps) {
const widthClasses = WIDTH_CLASSES[width];
const alternatives = getAlternativePages();
return (
<footer className={`${widthClasses} mx-auto mt-12 md:mt-16`}>
{sponsors ? <SponsorsSection placement="footer" /> : null}
<div className="border-t border-white/10 pt-8 pb-4 grid grid-cols-2 sm:grid-cols-5 gap-8 text-sm">
<div className="space-y-3">
<p className="text-extra-muted-foreground">Product</p>
+72 -40
View File
@@ -3,12 +3,13 @@ import { BuyMeACoffeeIcon, GitHubIcon, OpenCollectiveIcon } from "~/components/b
import {
BUY_ME_A_COFFEE_URL,
GITHUB_SPONSORS_URL,
HOMEPAGE_SPONSORS,
HOMEPAGE_SPOT_PRICE,
OPEN_COLLECTIVE_URL,
SPONSORS,
SPONSOR_CONTACT_EMAIL,
SPONSOR_SPOT_CHECKOUT_URL,
SPONSOR_SPOT_PRICE,
openSpotCount,
sponsorHref,
} from "~/data/sponsors";
function SectionHeading({
@@ -148,30 +149,11 @@ export function BackingOptions() {
);
}
function SponsorLogoRow() {
return (
<ul className="grid grid-cols-2 gap-4">
{HOMEPAGE_SPONSORS.map((sponsor) => (
<li key={sponsor.href}>
<a
href={sponsor.href}
target="_blank"
rel="noopener noreferrer sponsored"
className="flex h-32 items-center justify-center rounded-xl border border-white/10 bg-white/[0.02] px-6 transition-colors hover:border-white/20 hover:bg-white/[0.05]"
>
<img src={sponsor.logo} alt={sponsor.name} className="max-h-10 max-w-full opacity-80" />
</a>
</li>
))}
</ul>
);
}
const SPOT_FEATURES: ReadonlyArray<string> = [
"Your logo on the homepage of paseo.sh, around 70,000 visitors a month",
"Your logo on the paseo.sh homepage and docs, around 70,000 visitors a month",
"Your logo in the GitHub README, around 30,000 visitors a month",
"An announcement in the Discord, around 2,000 members",
"A mention in the changelog",
"An announcement from me on X",
];
export function SponsorSpotSection() {
@@ -181,11 +163,11 @@ export function SponsorSpotSection() {
<SectionHeading
as="h2"
title="Sponsor as a company"
description="If your team relies on Paseo, a monthly sponsorship funds its development directly. As a thank you, your logo goes on the homepage and in the README."
description="Support Paseo financially and get visibility for your company"
/>
<div className="space-y-8">
<div className="flex items-end gap-2">
<span className="text-4xl font-medium tracking-tight">{HOMEPAGE_SPOT_PRICE}</span>
<span className="text-4xl font-medium tracking-tight">{SPONSOR_SPOT_PRICE}</span>
<span className="mb-1 text-sm text-white/45">a month</span>
</div>
<ul className="grid max-w-2xl gap-3 text-white/70">
@@ -259,23 +241,73 @@ export function SponsorSection() {
);
}
/** Homepage: the companies sponsoring Paseo. Renders nothing until there is one. */
export function SponsorsSection() {
if (HOMEPAGE_SPONSORS.length === 0) return null;
const SPONSORS_PLACEMENTS = {
page: {
title: "Sponsors",
section: "space-y-10",
heading: "text-3xl font-medium tracking-tight",
link: "",
logo: "h-14",
description: "mt-2 text-sm text-white/55",
button: "h-12 px-5 text-sm",
},
footer: {
title: "Sponsored by",
section: "space-y-5 border-t border-white/10 py-8",
heading: "text-sm text-extra-muted-foreground",
link: "opacity-85 transition-opacity hover:opacity-100",
logo: "h-10",
description: "mt-1.5 text-xs text-white/45",
button: "h-9 px-3.5 text-sm",
},
} as const;
interface SponsorsSectionProps {
/** `page` is a homepage section; `footer` is the band above other pages' footers. */
placement: keyof typeof SPONSORS_PLACEMENTS;
}
/**
* The companies sponsoring Paseo: one monochrome logo per sponsor and, while
* spots are open, a quiet invitation. Every page shows it once.
*/
export function SponsorsSection({ placement }: SponsorsSectionProps) {
const style = SPONSORS_PLACEMENTS[placement];
const open = openSpotCount();
return (
<section>
<SectionHeading as="h2" title="Sponsors" />
<div className="space-y-4">
<SponsorLogoRow />
{openSpotCount() > 0 ? (
<a
href="/sponsor#spot"
className="inline-block text-sm text-white/50 underline transition-colors hover:text-white/80"
>
Become a sponsor
</a>
<section aria-labelledby="sponsors-heading" className={style.section}>
<h2 id="sponsors-heading" className={style.heading}>
{style.title}
</h2>
<ul className="flex flex-wrap items-center gap-x-14 gap-y-8">
{SPONSORS.map((sponsor) => (
<li key={sponsor.url}>
<a
href={sponsorHref(sponsor, "website")}
target="_blank"
rel="noopener noreferrer sponsored"
className={`block ${style.link}`}
>
<img
src={sponsor.logo.onDark}
alt={sponsor.name}
className={`${style.logo} w-auto`}
/>
</a>
<p className={style.description}>{sponsor.description}</p>
</li>
))}
{open > 0 ? (
<li>
<a
href="/sponsor#spot"
className={`inline-flex items-center rounded-md border border-dashed border-white/15 text-white/45 transition-colors hover:border-white/30 hover:text-white/75 ${style.button}`}
>
Become a sponsor
</a>
</li>
) : null}
</div>
</ul>
</section>
);
}
@@ -0,0 +1,64 @@
import { existsSync, readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
import { SPONSORS, sponsorHref } from "./sponsors";
const REPO_ROOT = fileURLToPath(new URL("../../../../", import.meta.url));
const WEBSITE_PUBLIC = fileURLToPath(new URL("../../public", import.meta.url));
const READMES = ["README.md", "README.zh-CN.md", "README.ja.md", "README.ko.md"];
const README_SPONSOR_CELLS = 3;
const SPONSOR_PAGE_URL = "https://paseo.sh/sponsor";
describe("sponsorHref", () => {
it("tags the link with the placement it is shown in", () => {
const sponsor = {
name: "Acme",
url: "https://acme.dev",
logo: { onDark: "", onLight: "" },
description: "",
};
expect(sponsorHref(sponsor, "website")).toBe(
"https://acme.dev/?utm_source=paseo&utm_medium=website&utm_campaign=sponsor",
);
expect(sponsorHref(sponsor, "x")).toBe(
"https://acme.dev/?utm_source=paseo&utm_medium=x&utm_campaign=sponsor",
);
});
});
function readmeSponsorCells(readme: string) {
const text = readFileSync(`${REPO_ROOT}${readme}`, "utf8");
const table = text.slice(text.indexOf("<!-- Sponsors:")).split("</table>")[0];
return [...table.matchAll(/<td[^>]*>(.*?)<\/td>/g)].map(([, cell]) => {
const logo = cell.match(
/^<a href="([^"]+)"><picture><source media="\(prefers-color-scheme: dark\)" srcset="([^"]+)"><img src="([^"]+)"[^>]*><\/picture><\/a><br><sub>([^<]+)<\/sub>$/,
);
if (logo) {
const [, href, onDark, onLight, description] = logo;
return { href, onDark, onLight, description };
}
return { invite: cell.match(/^<a href="([^"]+)">/)?.[1] };
});
}
describe("SPONSORS", () => {
it.each(SPONSORS)("ships both logo inks for $name", (sponsor) => {
expect(existsSync(`${WEBSITE_PUBLIC}${sponsor.logo.onDark}`)).toBe(true);
expect(existsSync(`${WEBSITE_PUBLIC}${sponsor.logo.onLight}`)).toBe(true);
});
it.each(READMES)("fill the sponsors table in %s, followed by invitations", (readme) => {
const openCells = Math.max(0, README_SPONSOR_CELLS - SPONSORS.length);
expect(readmeSponsorCells(readme)).toEqual([
...SPONSORS.map((sponsor) => ({
href: sponsorHref(sponsor, "readme"),
onDark: `packages/website/public${sponsor.logo.onDark}`,
onLight: `packages/website/public${sponsor.logo.onLight}`,
description: sponsor.description,
})),
...Array.from({ length: openCells }, () => ({ invite: SPONSOR_PAGE_URL })),
]);
});
});
+42 -14
View File
@@ -1,31 +1,59 @@
/**
* Homepage sponsor spots. This file is the inventory: the site shows one open
* placeholder for every spot not listed in `HOMEPAGE_SPONSORS`.
* Company sponsors. This file is the inventory: every page of the site shows
* these logos above the footer, and the open spots invite the next sponsor.
*
* Approving a sponsor means three edits, or the site promises something it does
* not deliver:
*
* 1. Add the entry below and drop its logo in `public/sponsors/`.
* 2. Add the logo under the `## Sponsors` marker in `README.md`,
* `README.zh-CN.md`, `README.ja.md` and `README.ko.md`, in this same order.
* 1. Add the entry below and drop both logo inks in `public/sponsors/`.
* 2. In the sponsors table after the intro of `README.md`, `README.zh-CN.md`,
* `README.ja.md` and `README.ko.md`, replace a "become a sponsor" cell with
* the logo and its description, in this same order, linked to `sponsorHref(sponsor, "readme")`
* with both inks referenced from `packages/website/public`, so the README
* renders from the repository and never waits on a site deploy.
* `sponsors.test.ts` fails until they match.
* 3. Remove all of it when the subscription ends.
*
* The Stripe payment link caps itself at `HOMEPAGE_SPOT_COUNT` completed
* The Stripe payment link caps itself at `SPONSOR_SPOT_COUNT` completed
* checkouts, and a checkout you decline and refund still counts against that
* cap. When you refund one, raise the link's completed-session limit by one, or
* the page will offer a spot the link refuses to sell.
*/
export interface HomepageSponsor {
export interface Sponsor {
name: string;
href: string;
/** Path under `public/`, e.g. `/sponsors/acme.svg`. Keep logos monochrome white. */
logo: string;
/** The sponsor's own URL, without tracking. Links go through `sponsorHref`. */
url: string;
/** Paths under `public/`, one per ground. Use the sponsor's official lockup. */
logo: { onDark: string; onLight: string };
/** What the product is, in a few words from the sponsor's own site. Shown under the logo. */
description: string;
}
export const HOMEPAGE_SPONSORS: ReadonlyArray<HomepageSponsor> = [];
export const SPONSORS: ReadonlyArray<Sponsor> = [
{
name: "Hoplite",
url: "https://hoplite.sh",
logo: {
onDark: "/sponsors/hoplite-on-dark.svg",
onLight: "/sponsors/hoplite-on-light.svg",
},
description: "Cloud coding agents",
},
];
export const HOMEPAGE_SPOT_COUNT = 4;
export const HOMEPAGE_SPOT_PRICE = "$500";
/** Where a sponsor link is shown. Becomes the link's `utm_medium`. */
export type SponsorPlacement = "website" | "readme" | "discord" | "x";
export function sponsorHref(sponsor: Sponsor, placement: SponsorPlacement): string {
const url = new URL(sponsor.url);
url.searchParams.set("utm_source", "paseo");
url.searchParams.set("utm_medium", placement);
url.searchParams.set("utm_campaign", "sponsor");
return url.toString();
}
export const SPONSOR_SPOT_COUNT = 4;
export const SPONSOR_SPOT_PRICE = "$500";
/** Stripe Payment Link for the monthly spot subscription. */
export const SPONSOR_SPOT_CHECKOUT_URL = "https://buy.stripe.com/8x24gBczR7LNaokcve2sM00";
@@ -38,5 +66,5 @@ export const OPEN_COLLECTIVE_URL =
export const BUY_ME_A_COFFEE_URL = "https://buymeacoffee.com/paseo";
export function openSpotCount(): number {
return Math.max(0, HOMEPAGE_SPOT_COUNT - HOMEPAGE_SPONSORS.length);
return Math.max(0, SPONSOR_SPOT_COUNT - SPONSORS.length);
}
+2
View File
@@ -4,6 +4,7 @@ import { useCallback, useMemo, useState } from "react";
import { DocsBreadcrumbs } from "~/components/docs-breadcrumbs";
import { DocsNav } from "~/components/docs-nav";
import { DocsOutline } from "~/components/docs-outline";
import { SponsorsSection } from "~/components/sponsorship";
import { buildDocsNavTree, getDoc, getDocs } from "~/docs";
import "~/styles.css";
@@ -63,6 +64,7 @@ function DocsLayout() {
<div className="max-w-prose mx-auto">
{doc && <DocsBreadcrumbs doc={doc} tree={tree} />}
<Outlet />
<SponsorsSection placement="footer" />
</div>
</main>
-17
View File
@@ -561,23 +561,6 @@
margin-bottom: 2rem;
}
.docs-source-footer {
border-top: 1px solid var(--color-border);
margin-top: 3rem;
padding-top: 1.25rem;
font-size: 0.875rem;
}
.docs-source-footer a {
color: rgba(255, 255, 255, 0.5);
font-weight: 500;
text-decoration: none;
}
.docs-source-footer a:hover {
color: var(--color-foreground);
}
/* Blog post prose styles — adapted from moboudra.com */
.blog-prose {
color: rgba(250, 250, 250, 0.82);