From 4557e93b58f9219b674efebc8eabd3922e9c4aff Mon Sep 17 00:00:00 2001 From: petaa33 <101650825+petaa33@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:42:16 +0100 Subject: [PATCH 1/2] add sponsors fetch --- _data/bronze_sponsors.js | 10 ++++++++++ _data/gold_sponsors.js | 10 ++++++++++ _data/silver_sponsors.js | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 _data/bronze_sponsors.js create mode 100644 _data/gold_sponsors.js create mode 100644 _data/silver_sponsors.js diff --git a/_data/bronze_sponsors.js b/_data/bronze_sponsors.js new file mode 100644 index 0000000..77cc710 --- /dev/null +++ b/_data/bronze_sponsors.js @@ -0,0 +1,10 @@ +import eleventyFetch from "@11ty/eleventy-fetch"; + +export default async function fetchSponsors(params) { + const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/bronze-strider/all.json", { + duration: "7d", + type: "json" + }); + + return json; +} \ No newline at end of file diff --git a/_data/gold_sponsors.js b/_data/gold_sponsors.js new file mode 100644 index 0000000..27ac4c7 --- /dev/null +++ b/_data/gold_sponsors.js @@ -0,0 +1,10 @@ +import eleventyFetch from "@11ty/eleventy-fetch"; + +export default async function fetchSponsors(params) { + const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/gold-strider/all.json", { + duration: "7d", + type: "json" + }); + + return json; +} \ No newline at end of file diff --git a/_data/silver_sponsors.js b/_data/silver_sponsors.js new file mode 100644 index 0000000..3c8d91e --- /dev/null +++ b/_data/silver_sponsors.js @@ -0,0 +1,10 @@ +import eleventyFetch from "@11ty/eleventy-fetch"; + +export default async function fetchSponsors(params) { + const json = await eleventyFetch("https://opencollective.com/stride3d/tiers/silver-strider/all.json", { + duration: "7d", + type: "json" + }); + + return json; +} \ No newline at end of file From 3cef4b5c71bdb3d0f58beeee0e221a76fb2b3fba Mon Sep 17 00:00:00 2001 From: petaa33 <101650825+petaa33@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:42:42 +0100 Subject: [PATCH 2/2] update style, html --- _includes/oc_sponsors.njk | 49 ++++++++++++++++++++++++++ css/styles.scss | 72 +++++++++++++++++++++++++++++++++++++++ sponsor.html | 21 ++---------- 3 files changed, 124 insertions(+), 18 deletions(-) create mode 100644 _includes/oc_sponsors.njk diff --git a/_includes/oc_sponsors.njk b/_includes/oc_sponsors.njk new file mode 100644 index 0000000..02bf430 --- /dev/null +++ b/_includes/oc_sponsors.njk @@ -0,0 +1,49 @@ +