Skip to content

Commit b4cbcef

Browse files
committed
feat(sponsor): show the author card on the sponsor page
docs(sponsor): rewrite the page around why sponsorship matters The card follows the rapira.rs sponsor page: one shared members list in theme/team.ts, names not localized, three cards to a row so a lone card takes a third of the column. The theme's vp-doc.css pins a lone card's grid to half the column with !important, hence the !important override. Assisted-By: Claude Opus 5.5
1 parent 31b36fe commit b4cbcef

4 files changed

Lines changed: 86 additions & 48 deletions

File tree

‎.vitepress/theme/style.css‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,3 +1321,36 @@ a.featured-post-card:hover {
13211321
padding: 14px 16px;
13221322
}
13231323
}
1324+
1325+
/* ===== TEAM CARDS (sponsor page) ===== */
1326+
1327+
/* The cards render inside the markdown container, where `.vp-doc a` would
1328+
underline every link and repaint it in the brand color. */
1329+
.vp-doc .testo-team .VPTeamMembers a {
1330+
font-weight: inherit;
1331+
text-decoration: none;
1332+
}
1333+
1334+
/* Lay the cards out three to a row, so a lone card takes a third of the page
1335+
instead of stretching to the widths the theme reserves for one and two cards.
1336+
The selectors carry the `.testo-team` wrapper so they outrank the component's
1337+
own scoped rules whatever order the stylesheets load in. */
1338+
@media (min-width: 768px) {
1339+
.vp-doc .testo-team .VPTeamMembers.small .container {
1340+
grid-template-columns: repeat(3, minmax(0, 1fr));
1341+
}
1342+
1343+
/* `!important` answers the theme's own: vp-doc.css pins a lone card's grid
1344+
to half the column, which would squeeze the three tracks into it. */
1345+
.vp-doc .testo-team .VPTeamMembers.small.count-1 .container,
1346+
.vp-doc .testo-team .VPTeamMembers.small.count-2 .container {
1347+
max-width: none !important;
1348+
}
1349+
}
1350+
1351+
/* The round GitHub mark reads smaller than the square glyphs beside it,
1352+
so it gets an optical size correction. */
1353+
.vp-doc .testo-team .VPTeamMembers .vpi-social-github {
1354+
width: 22px;
1355+
height: 22px;
1356+
}

‎.vitepress/theme/team.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { DefaultTheme } from 'vitepress'
2+
3+
// The maintainer card on the sponsor pages, shared by every locale. The avatar is
4+
// served by GitHub, so it follows the profile and never has to be re-uploaded here.
5+
export const members: DefaultTheme.TeamMember[] = [
6+
{
7+
avatar: 'https://github.com/roxblnfk.png',
8+
name: 'Aleksei Gagarin',
9+
title: 'Author and maintainer of Testo',
10+
links: [
11+
{ icon: 'github', link: 'https://github.com/roxblnfk' },
12+
{ icon: 'x', link: 'https://x.com/roxblnfk' },
13+
{ icon: 'mastodon', link: 'https://phpc.social/@roxblnfk' },
14+
],
15+
sponsor: 'https://boosty.to/roxblnfk',
16+
actionText: 'Sponsor on Boosty',
17+
},
18+
]

‎ru/sponsor.md‎

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
1-
# Стать спонсором
2-
3-
Поддержите разработку Testo и помогите построить будущее тестирования в PHP.
4-
5-
## Зачем спонсировать?
6-
7-
Testo — это open-source проект, созданный для решения реальных проблем тестирования в PHP. Ваше спонсорство помогает:
1+
---
2+
aside: false
3+
---
84

9-
- **Поддерживать и улучшать** основной фреймворк
10-
- **Разрабатывать новые возможности** на основе потребностей сообщества
11-
- **Создавать лучшую документацию** и примеры
12-
- **Поддерживать экосистему** с плагинами и интеграциями
13-
- **Обеспечивать устойчивость проекта** в долгосрочной перспективе
5+
<script setup>
6+
import { VPTeamMembers } from 'vitepress/theme'
7+
import { members } from '../.vitepress/theme/team'
8+
</script>
149

15-
## Как поддержать
10+
# Стать спонсором
1611

17-
Принимаю поддержку в любом размере через:
12+
Testo распространяется под свободной лицензией BSD-3-Clause. Разработка и поддержка занимают много времени, и его приходится делить с оплачиваемой работой. Спонсорство позволяет ставить Testo в приоритет.
1813

19-
**[boosty.to/roxblnfk](https://boosty.to/roxblnfk)**
14+
Можно поддержать любой суммой, деньги получает напрямую автор Testo:
2015

21-
Любой вклад, большой или маленький, помогает сделать Testo лучше!
16+
<div class="testo-team">
17+
<VPTeamMembers size="small" :members="members" />
18+
</div>
2219

2320
## Корпоративное спонсорство
2421

25-
Хотите, чтобы логотип вашей компании отображался на главной странице Testo?
26-
27-
**$500/месяц** — логотип вашей компании будет размещён на главной странице рядом с другими спонсорами.
22+
Если ваша компания пользуется Testo, она может стать его спонсором. За **$500 в месяц** логотип компании со ссылкой на ваш сайт появится на главной странице Testo рядом с другими спонсорами.
2823

29-
По вопросам корпоративного спонсорства обращайтесь: [roxblnfk@gmail.com](mailto:roxblnfk@gmail.com)
30-
31-
---
24+
Обсудить условия можно по почте [roxblnfk@gmail.com](mailto:roxblnfk@gmail.com).
3225

33-
Спасибо, что рассматриваете возможность поддержать Testo! Каждый вклад помогает сделать тестирование в PHP лучше для всех.
26+
::: tip Помочь можно не только деньгами
27+
Поставьте звезду [репозиторию Testo](https://github.com/php-testo/testo) на GitHub: чем больше звёзд, тем больше людей узнают о проекте. Не меньше помогают толковые баг-репорты, пул-реквесты, статьи о Testo и доклады на митапах.
28+
:::

‎sponsor.md‎

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
---
2+
aside: false
23
llms: false
34
---
45

5-
# Become a Sponsor
6-
7-
Support Testo's development and help build the future of PHP testing.
8-
9-
## Why Sponsor?
10-
11-
Testo is an open-source project created to solve real-world problems in PHP testing. Your sponsorship helps:
12-
13-
- **Maintain and improve** the core framework
14-
- **Develop new features** based on community needs
15-
- **Provide better documentation** and examples
16-
- **Support the ecosystem** with plugins and integrations
17-
- **Keep the project sustainable** for the long term
6+
<script setup>
7+
import { VPTeamMembers } from 'vitepress/theme'
8+
import { members } from './.vitepress/theme/team'
9+
</script>
1810

19-
## How to Support
20-
21-
I accept support of any amount through:
22-
23-
**[boosty.to/roxblnfk](https://boosty.to/roxblnfk)**
11+
# Become a Sponsor
2412

25-
Every contribution, big or small, helps make Testo better!
13+
Testo is distributed under the free BSD-3-Clause license. Developing and maintaining it takes a lot of time, and that time competes with paid work. Sponsorship makes it possible to put Testo first.
2614

27-
## Company Sponsorship
15+
Any amount is welcome, and it goes straight to the author of Testo:
2816

29-
Want your company logo displayed on the Testo homepage?
17+
<div class="testo-team">
18+
<VPTeamMembers size="small" :members="members" />
19+
</div>
3020

31-
**$500/month** — Your company logo will be featured on the main page alongside other sponsors.
21+
## Company sponsorship
3222

33-
For corporate sponsorship inquiries, please contact: [roxblnfk@gmail.com](mailto:roxblnfk@gmail.com)
23+
If your team writes its tests with Testo, your company can back it too. For **$500 per month** your logo appears on the Testo home page next to the other sponsors, with a link to your site.
3424

35-
---
25+
To discuss the details, write to [roxblnfk@gmail.com](mailto:roxblnfk@gmail.com).
3626

37-
Thank you for considering supporting Testo! Every contribution helps make PHP testing better for everyone.
27+
::: tip Other ways to help
28+
Star the [Testo repository](https://github.com/php-testo/testo) on GitHub: the more stars it has, the more people find it. A good bug report, a pull request, an article about Testo, or a talk at a local meetup move the project forward just as much as money does.
29+
:::

0 commit comments

Comments
 (0)