diff --git a/.github/workflows/build-status.yml b/.github/workflows/build-status.yml index 71bc51ec..3d52f537 100644 --- a/.github/workflows/build-status.yml +++ b/.github/workflows/build-status.yml @@ -301,6 +301,7 @@ jobs: uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 with: path: | + website/static/img/sponsors.svg website/static/img/_ website/static/img/**/*.gif website/static/img/**/*.png diff --git a/website/.gitignore b/website/.gitignore index b4c6f170..36dc017c 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -9,6 +9,7 @@ .cache-loader generated-tests src/components/HomepageContributors/all-contributors.json +static/img/sponsors.svg static/img/_ static/img/**/*.gif static/img/**/*.png diff --git a/website/package.json b/website/package.json index 6b0111ed..8a5874c6 100644 --- a/website/package.json +++ b/website/package.json @@ -3,8 +3,9 @@ "name": "website", "scripts": { "docusaurus": "docusaurus", - "start": "cp ../.all-contributorsrc src/components/HomepageContributors/all-contributors.json && node prebuild/optimize-images.mjs && docusaurus start", - "build": "cp ../.all-contributorsrc src/components/HomepageContributors/all-contributors.json && node prebuild/optimize-images.mjs && docusaurus build", + "sync:sponsors": "[ -f static/img/sponsors.svg ] || curl -o static/img/sponsors.svg https://raw.githubusercontent.com/dubzzz/sponsors-svg/main/sponsorkit/sponsors.svg", + "start": "pnpm run sync:sponsors && cp ../.all-contributorsrc src/components/HomepageContributors/all-contributors.json && node prebuild/optimize-images.mjs && docusaurus start", + "build": "pnpm run sync:sponsors && cp ../.all-contributorsrc src/components/HomepageContributors/all-contributors.json && node prebuild/optimize-images.mjs && docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "clear": "docusaurus clear", diff --git a/website/src/components/HomepageSponsors/index.js b/website/src/components/HomepageSponsors/index.js index ea48c61f..59910b0e 100644 --- a/website/src/components/HomepageSponsors/index.js +++ b/website/src/components/HomepageSponsors/index.js @@ -7,14 +7,7 @@ export default function HomepageSponsors(props) {

They sponsor us…

They financially contribute to the fast-check

- - all sponsors - +

You can also become one of them by contributing via{' '} diff --git a/website/src/components/HomepageSponsors/styles.module.css b/website/src/components/HomepageSponsors/styles.module.css index 32d8c62d..c43dc914 100644 --- a/website/src/components/HomepageSponsors/styles.module.css +++ b/website/src/components/HomepageSponsors/styles.module.css @@ -1,3 +1,4 @@ .allSponsorsWrapper { align-self: center; + max-width: 800px; }