Skip to content

Commit c1646c6

Browse files
committed
docs: add sponsors section to landing page and docs
1 parent 82a7af6 commit c1646c6

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

public/docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,19 @@ That's it! This minimal dependency approach means:
248248

249249
The small number of dependencies also contributes to Pydoll's reliability and performance, as there are fewer external factors that could impact its operation.
250250

251+
## Sponsors
252+
253+
The support from sponsors is essential to keep the project alive, evolving, and accessible to the entire community. Each partnership helps cover costs, drive new features, and ensure ongoing development. We are truly grateful to everyone who believes in and supports the project!
254+
255+
<a href="https://www.lambdatest.com/?utm_source=pydoll&utm_medium=sponsor" target="_blank" rel="noopener nofollow sponsored">
256+
<img src="https://www.lambdatest.com/blue-logo.png" alt="LambdaTest" width="200" height="45" />
257+
258+
</a>
259+
260+
<p>
261+
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener">Become a sponsor</a>
262+
</p>
263+
251264
## License
252265

253266
Pydoll is released under the MIT License, which gives you the freedom to use, modify, and distribute the code with minimal restrictions. This permissive license makes Pydoll suitable for both personal and commercial projects.

public/docs/zh/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,19 @@ bs4 = "^0.0.2"
249249

250250
更少的依赖项带来了: 更高的运行可靠性以及更强的性能表现。
251251

252+
## 赞助商
253+
254+
赞助商的支持对于项目的持续发展至关重要。每一份合作都能帮助我们覆盖基础成本、推动新功能迭代,并保证项目长期维护与更新。非常感谢所有相信并支持 Pydoll 的伙伴!
255+
256+
<a href="https://www.lambdatest.com/?utm_source=pydoll&utm_medium=sponsor" target="_blank" rel="noopener nofollow sponsored">
257+
<img src="https://www.lambdatest.com/blue-logo.png" alt="LambdaTest" width="200" height="45" />
258+
259+
</a>
260+
261+
<p>
262+
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" style="display:inline-block;padding:6px 10px;border:1px solid #94a3b8;border-radius:6px;text-decoration:none;color:#e2e8f0;background:#0f172a;">成为赞助商</a>
263+
</p>
264+
252265
## 许可证
253266

254267
Pydoll 遵循 MIT 许可证(完整文本见 LICENSE 文件),主要授权条款包括:

public/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
<nav class="hidden items-center gap-2 sm:flex sm:gap-3">
211211
<a href="https://pydoll.tech/docs/" target="_blank" rel="noopener" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Docs</a>
212212
<a href="#install" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Install</a>
213+
<a href="#sponsors" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Sponsors</a>
213214
<a href="#faq" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">FAQ</a>
214215
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Sponsor</a>
215216
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" aria-label="Star on GitHub" class="inline-flex items-center gap-2 rounded-md bg-yellow-500 px-3 py-2 text-sm font-semibold text-slate-900 shadow hover:bg-yellow-400">
@@ -230,6 +231,7 @@
230231
<div class="space-y-1 border-t border-white/10 py-3">
231232
<a href="https://pydoll.tech/docs/" target="_blank" rel="noopener" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Docs</a>
232233
<a href="#install" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Install</a>
234+
<a href="#sponsors" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Sponsors</a>
233235
<a href="#faq" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">FAQ</a>
234236
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Sponsor</a>
235237
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" class="mt-2 inline-flex w-full items-center justify-center gap-2 rounded-md bg-yellow-500 px-3 py-2 text-sm font-semibold text-slate-900 shadow hover:bg-yellow-400"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15 9 22 9 17 14 19 22 12 18 5 22 7 14 2 9 9 9 12 2"/></svg> Star</a>
@@ -596,6 +598,23 @@ <h4 class="text-sm font-medium text-slate-200">Intuitive API</h4>
596598
</section>
597599

598600

601+
<!-- Sponsors -->
602+
<section id="sponsors" class="mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8">
603+
<div class="reveal rounded-xl border border-white/10 bg-slate-900/60 p-5 sm:p-6">
604+
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
605+
<div>
606+
<h2 class="text-2xl font-bold tracking-tight">Sponsors</h2>
607+
<p class="mt-1 text-sm text-slate-300">Companies and partners supporting Pydoll.</p>
608+
</div>
609+
<div>
610+
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="inline-flex items-center gap-2 rounded-md bg-yellow-500 px-3 py-2 text-sm font-semibold text-slate-900 hover:bg-yellow-400">Become a sponsor</a>
611+
</div>
612+
</div>
613+
<ul id="sponsorsGrid" class="mt-6 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 sm:gap-4 items-center"></ul>
614+
</div>
615+
</section>
616+
617+
599618
<!-- FAQ (near footer) -->
600619
<section id="faq" class="mx-auto max-w-7xl px-4 pt-4 pb-10 sm:px-6 lg:px-8">
601620
<div class="mb-6">

public/script.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,50 @@
336336
})()
337337

338338

339+
// You can add more sponsors by pushing new objects to this array
340+
const SPONSORS = [
341+
{
342+
name: 'LambdaTest',
343+
url: 'https://www.lambdatest.com/?utm_source=pydoll&utm_medium=sponsor',
344+
logo: 'https://www.lambdatest.com/blue-logo.png',
345+
width: 200,
346+
height: 45
347+
}
348+
]
349+
350+
function renderSponsors(gridId = 'sponsorsGrid') {
351+
const grid = document.getElementById(gridId)
352+
if (!grid || !Array.isArray(SPONSORS)) return
353+
354+
const frag = document.createDocumentFragment()
355+
for (const s of SPONSORS) {
356+
const li = document.createElement('li')
357+
li.className = 'flex items-center justify-center'
358+
359+
const a = document.createElement('a')
360+
a.href = s.url
361+
a.target = '_blank'
362+
a.rel = 'noopener nofollow sponsored'
363+
a.className = 'group block w-full rounded-lg bg-slate-900/40 px-4 py-3 hover:bg-white/5 transition-colors'
364+
365+
const img = document.createElement('img')
366+
img.src = s.logo
367+
img.alt = s.name
368+
img.loading = 'lazy'
369+
img.decoding = 'async'
370+
img.width = s.width || 200
371+
img.height = s.height || 40
372+
img.className = 'mx-auto max-h-10'
373+
374+
a.appendChild(img)
375+
li.appendChild(a)
376+
frag.appendChild(li)
377+
}
378+
grid.innerHTML = ''
379+
grid.appendChild(frag)
380+
}
381+
382+
document.addEventListener('DOMContentLoaded', () => {
383+
renderSponsors()
384+
})
385+

0 commit comments

Comments
 (0)