Skip to content

Commit c604bd8

Browse files
Add sponsor page
1 parent b2302b6 commit c604bd8

File tree

4 files changed

+91
-5
lines changed

4 files changed

+91
-5
lines changed

_sass/_layout.scss

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,60 @@
313313
}
314314
}
315315

316-
.blog {
317-
background-color: #F7F5D7;
316+
.blog, .crates, .sponsors {
318317
border-radius: 5px;
319318
padding: 7px;
320319
}
321320

321+
.crates, .sponsors {
322+
margin-bottom: 7px;
323+
}
324+
322325
.crates {
323326
background-color: #E6F5F9;
324-
border-radius: 5px;
325-
padding: 7px;
326-
margin-bottom: 7px;
327+
}
328+
329+
.sponsors {
330+
text-align: center;
331+
background-color: #fff0de;
332+
333+
> div {
334+
display: inline-flex;
335+
336+
> svg {
337+
height: 25px;
338+
}
339+
}
340+
}
341+
342+
.blog {
343+
background-color: #F7F5D7;
344+
}
345+
346+
.thanks-sponsors {
347+
padding-top: 15px;
348+
font-size: 20px;
349+
padding-bottom: 25px;
350+
}
351+
352+
.sponsor-tiers {
353+
margin-bottom: 20px;
354+
355+
> a {
356+
display: block;
357+
max-width: 75px;
358+
text-align: center;
359+
border: 1px solid #ccc;
360+
border-radius: 4px;
361+
padding: 5px;
362+
text-decoration: none;
363+
364+
> img {
365+
border-radius: 50%;
366+
}
367+
368+
&:hover {
369+
background-color: #e5f4ff;
370+
}
371+
}
327372
}

docs-src/sponsors.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: default
3+
---
4+
5+
<p class="thanks-sponsors">Thanks to everyone supporting us on <a href="https://opencollective.com/gtk-rs">opencollective</a>!</p>
6+
7+
## Platinum tier
8+
9+
No sponsors in this tier yet.
10+
11+
## Gold tier
12+
13+
No sponsors in this tier yet.
14+
15+
## Silver tier
16+
17+
No sponsors in this tier yet.
18+
19+
## Bronze tier
20+
21+
<div class="sponsor-tiers">
22+
<a href="https://opencollective.com/alistair">
23+
<img alt="Alistair" src="/images/alistair.png">
24+
Alistair
25+
</a>
26+
</div>
27+
28+
## Other sponsors
29+
30+
Other sponsors can be seen on our [opencollective][opencollective] page.
31+
32+
[opencollective]: https://opencollective.com/gtk-rs

images/alistair.png

47.8 KB
Loading

index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ layout: wide
2121
<p class="page-heading"> Crates </p>
2222
{% include badges.html %}
2323
</div>
24+
<div class="sponsors">
25+
<div>
26+
<svg version="1.1" viewBox="0 0 50 50">
27+
<path d="M38.594,13.356l0.468-4.477L34.95,7.05l-1.829-4.112l-4.477,0.467L25,0.765l-3.644,2.641l-4.477-0.468L15.05,7.05 l-4.112,1.829l0.467,4.477L8.765,17l2.641,3.644l-0.468,4.477l4.113,1.829L16,29.085v19.72l9-5.625l9,5.625V29.085l0.95-2.135 l4.112-1.829l-0.467-4.477L41.235,17L38.594,13.356z M25,40.821l-7,4.375V30.945l3.356-0.35L25,33.235l3.644-2.641L32,30.945v14.25 L25,40.821z M36.922,23.883l-3.487,1.552l-1.552,3.487l-3.793-0.396L25,30.765l-3.09-2.239l-3.793,0.396l-1.552-3.487l-3.487-1.552 l0.396-3.793L11.235,17l2.239-3.09l-0.396-3.793l3.487-1.552l1.552-3.487l3.793,0.396L25,3.235l3.09,2.239l3.793-0.396l1.552,3.487 l3.487,1.552l-0.396,3.793L38.765,17l-2.239,3.09L36.922,23.883z"></path>
28+
<path d="M25,7c-5.514,0-10,4.486-10,10s4.486,10,10,10s10-4.486,10-10S30.514,7,25,7z M25,25c-4.411,0-8-3.589-8-8s3.589-8,8-8 s8,3.589,8,8S29.411,25,25,25z"></path>
29+
</svg>
30+
<a href="{{site.baseurl}}/docs-src/sponsors">Our sponsors</a>
31+
</div>
32+
</div>
2433
<div class="blog">
2534
<p class="page-heading"> Announcements </p>
2635
{% for post in site.categories.front limit:3 %}

0 commit comments

Comments
 (0)