Skip to content

Commit 467d6b4

Browse files
samuelcolvinhuonwtomhamiltonstubber
authored
adding sponsors to index page of docs (#4074)
* adding sponsors to index page of docs * Adjust ExoFlare sponsor link (#4080) * add UTM identifiers to TC link Co-authored-by: Tom Hamilton Stubber <[email protected]> Co-authored-by: Huon Wilson <[email protected]> Co-authored-by: Tom Hamilton Stubber <[email protected]>
1 parent abea823 commit 467d6b4

File tree

8 files changed

+63
-6
lines changed

8 files changed

+63
-6
lines changed

docs/extra/tweaks.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@
1414
background: hsla(0, 0%, 92.5%, 0.5);
1515
}
1616

17-
#_default_ a._default_, #_default_ .default-text {
18-
width: 100% !important;
17+
.sponsors {
18+
display: flex;
19+
justify-content: space-between;
20+
align-items: center;
21+
margin: 1rem 0;
1922
}
2023

21-
.md-nav__link[data-md-state=blur]:not(.md-nav__link--active) {
22-
color: rgba(0, 0, 0, 0.87);
24+
.sponsors div {
25+
text-align: center;
2326
}
2427

25-
.md-nav__link--active {
26-
font-weight: 700;
28+
.sponsors img {
29+
width: 75%;
30+
border-radius: 5px;
2731
}

docs/index.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,59 @@ Data validation and settings management using python type annotations.
1313

1414
Define how data should be in pure, canonical python; validate it with *pydantic*.
1515

16+
## Sponsors
17+
18+
Development of *pydantic* is made possible by the following sponsors:
19+
20+
<div class="sponsors">
21+
<div>
22+
<a rel="sponsored" target="_blank" href="https://www.salesforce.com">
23+
<img src="./sponsor_logos/salesforce.png" alt="Salesforce" />
24+
Salesforce
25+
</a>
26+
</div>
27+
<div>
28+
<a rel="sponsored" target="_blank" href="https://fastapi.tiangolo.com">
29+
<img src="./sponsor_logos/fastapi.png" alt="FastApi" />
30+
FastApi
31+
</a>
32+
</div>
33+
<div>
34+
<a rel="sponsored" target="_blank" href="https://tutorcruncher.com/?utm_source=pydantic&utm_campaign=open_source">
35+
<img src="./sponsor_logos/tutorcruncher.png" alt="TutorCruncher" />
36+
TutorCruncher
37+
</a>
38+
</div>
39+
<div>
40+
<a rel="sponsored" target="_blank" href="https://www.exoflare.com/open-source/?utm_source=pydantic&utm_campaign=open_source">
41+
<img src="./sponsor_logos/exoflare.png" alt="ExoFlare" />
42+
ExoFlare
43+
</a>
44+
</div>
45+
<div>
46+
<a rel="sponsored" target="_blank" href="https://home.robusta.dev">
47+
<img src="./sponsor_logos/robusta.png" alt="Robusta" />
48+
Robusta
49+
</a>
50+
</div>
51+
<div>
52+
<a rel="sponsored" target="_blank" href="https://www.sendcloud.com">
53+
<img src="./sponsor_logos/sendcloud.png" alt="SendCloud" />
54+
SendCloud
55+
</a>
56+
</div>
57+
</div>
58+
59+
And many more who kindly sponsor Samuel Colvin on [GitHub Sponsors](https://github.com/sponsors/samuelcolvin#sponsors).
60+
61+
<script>
62+
// randomize the order of sponsors
63+
const ul = document.querySelector('.sponsors')
64+
for (let i = ul.children.length; i >= 0; i--) {
65+
ul.appendChild(ul.children[Math.random() * i | 0])
66+
}
67+
</script>
68+
1669
## Example
1770

1871
```py

docs/sponsor_logos/exoflare.png

18.7 KB
Loading

docs/sponsor_logos/fastapi.png

14 KB
Loading

docs/sponsor_logos/robusta.png

22.7 KB
Loading

docs/sponsor_logos/salesforce.png

21 KB
Loading

docs/sponsor_logos/sendcloud.png

16.6 KB
Loading

docs/sponsor_logos/tutorcruncher.png

12.3 KB
Loading

0 commit comments

Comments
 (0)