Skip to content

Commit 10558c1

Browse files
authored
Merge pull request #333 from stride3d/master
Deploy latest website updates to production
2 parents 93a68bf + 0497f9a commit 10558c1

File tree

8 files changed

+192
-273
lines changed

8 files changed

+192
-273
lines changed

_data/bronze_sponsors.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eleventyFetch from "@11ty/eleventy-fetch";
2+
3+
export default async function fetchSponsors(params) {
4+
const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/bronze-strider/all.json", {
5+
duration: "7d",
6+
type: "json"
7+
});
8+
9+
return json;
10+
}

_data/gold_sponsors.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eleventyFetch from "@11ty/eleventy-fetch";
2+
3+
export default async function fetchSponsors(params) {
4+
const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/gold-strider/all.json", {
5+
duration: "7d",
6+
type: "json"
7+
});
8+
9+
return json;
10+
}

_data/silver_sponsors.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eleventyFetch from "@11ty/eleventy-fetch";
2+
3+
export default async function fetchSponsors(params) {
4+
const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/silver-strider/all.json", {
5+
duration: "7d",
6+
type: "json"
7+
});
8+
9+
return json;
10+
}

_includes/oc_sponsors.njk

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<div class="card mt-5">
2+
<div class="oc-sponsors-container">
3+
<div class="tier-container">
4+
<div class="tier-item gold">GOLD STRIDERS</div>
5+
<div class="tier-item">
6+
{% for sponsor in gold_sponsors %}
7+
<div class="img-container">
8+
{% if sponsor.image %}
9+
<img src={{sponsor.image}} alt={{sponsor.name}} class="gold"/>
10+
{% else %}
11+
<img src="/images/svg/logo.svg" alt={{sponsor.name}} class="gold"/>
12+
{%endif%}
13+
<div>{{sponsor.name}}</div>
14+
</div>
15+
{% endfor %}
16+
</div>
17+
</div>
18+
<div class="tier-container">
19+
<div class="tier-item silver">SILVER STRIDERS</div>
20+
<div class="tier-item">
21+
{% for sponsor in silver_sponsors %}
22+
<div class="img-container">
23+
{% if sponsor.image %}
24+
<img src={{sponsor.image}} alt={{sponsor.name}} class="silver"/>
25+
{% else %}
26+
<img src="/images/svg/logo.svg" alt={{sponsor.name}} class="silver"/>
27+
{%endif%}
28+
<div>{{sponsor.name}}</div>
29+
</div>
30+
{% endfor %}
31+
</div>
32+
</div>
33+
<div class="tier-container">
34+
<div class="tier-item bronze">BRONZE STRIDERS</div>
35+
<div class="tier-item">
36+
{% for sponsor in bronze_sponsors %}
37+
<div class="img-container">
38+
{% if sponsor.image %}
39+
<img src={{sponsor.image}} alt={{sponsor.name}} class="bronze"/>
40+
{% else %}
41+
<img src="/images/svg/logo.svg" alt={{sponsor.name}} class="bronze"/>
42+
{%endif%}
43+
<div>{{sponsor.name}}</div>
44+
</div>
45+
{% endfor %}
46+
</div>
47+
</div>
48+
</div>
49+
</div>

css/styles.scss

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "custom-bootstrap";
22
@import "/css/all.min.css";
3+
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
34

45
:root {
56
--main-shadow: 2px 2px 8px #0000001a;
@@ -288,4 +289,75 @@ svg path.logo-path {
288289
background-size: 50px 50px;
289290
}
290291

292+
.oc-sponsors-container {
293+
display: flex;
294+
flex-direction: column;
295+
height: 100%;
296+
297+
.tier-container {
298+
display: flex;
299+
flex-direction: column;
300+
301+
@media screen and (min-width: 1280px) {
302+
flex-direction: row;
303+
}
304+
305+
.tier-item {
306+
flex: 1;
307+
display: flex;
308+
flex-direction: row;
309+
gap: 20px;
310+
align-items: center;
311+
justify-content: center;
312+
font-family: "Kanit", serif;
313+
font-weight: 900;
314+
font-size: 46px;
315+
letter-spacing: -2px;
316+
padding: 40px 12px;
317+
flex-wrap: wrap;
318+
}
319+
320+
.tier-item.gold {
321+
background-color: rgb(221, 205, 62);
322+
}
323+
324+
.tier-item.silver {
325+
background-color: silver;
326+
}
327+
328+
.tier-item.bronze {
329+
background-color: rgb(216, 156, 78);
330+
}
331+
332+
.img-container {
333+
display: flex;
334+
flex-direction: column;
335+
align-items: center;
336+
justify-content: center;
337+
gap: 2px;
338+
font-family: "Segoe UI";
339+
font-weight: 400;
340+
font-size: 12px;
341+
letter-spacing: normal;
342+
img {
343+
width: 80px;
344+
height: 80px;
345+
border-radius: 50px;
346+
font-size: 14px;
347+
box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
348+
}
349+
350+
img.gold {
351+
border: solid 3px rgb(221, 205, 62);
352+
}
353+
img.silver {
354+
border: solid 3px silver;
355+
}
356+
img.bronze {
357+
border: solid 3px rgb(216, 156, 78);
358+
}
359+
}
360+
}
361+
}
362+
291363
@import "syntax-highlighting";

0 commit comments

Comments
 (0)