diff --git a/website-1.x/core/Showcase.js b/website-1.x/core/Showcase.js index d14fe22577f1..4db077f8a8d3 100644 --- a/website-1.x/core/Showcase.js +++ b/website-1.x/core/Showcase.js @@ -7,6 +7,15 @@ const React = require('react'); const PropTypes = require('prop-types'); +const users = require('../data/users'); + +users.forEach((user) => { + if (!user.image.startsWith('/img/users')) { + throw new Error( + `User image should be self-hosted in /img/users folder. This was not the case for ${user.image}`, + ); + } +}); const UserLink = ({infoLink, image, caption}) => ( diff --git a/website-1.x/data/users.js b/website-1.x/data/users.js index 1c2b15d8c55e..a7d06cced484 100644 --- a/website-1.x/data/users.js +++ b/website-1.x/data/users.js @@ -51,21 +51,21 @@ module.exports = [ }, { caption: 'Amphora Data', - image: '/img/users/AmphoraData.png', + image: '/img/users/amphora-data.png', infoLink: 'https://amphoradata.github.io/', fbOpenSource: false, pinned: false, }, { caption: 'Anssr Data Platform', - image: '/img/users/anssr.svg', + image: '/img/users/anssr-data-plataform.svg', infoLink: 'https://anssr.io/', fbOpenSource: false, pinned: false, }, { caption: 'Apify SDK', - image: '/img/users/apify.svg', + image: '/img/users/apify-skd.svg', infoLink: 'https://sdk.apify.com/', fbOpenSource: false, pinned: false, @@ -275,14 +275,14 @@ module.exports = [ }, { caption: 'Goby', - image: 'https://goby-lang.org/img/goby-logo.svg', + image: '/img/users/goby-logo.svg', infoLink: 'https://goby-lang.org', fbOpenSource: false, pinned: false, }, { caption: 'graphql-compose', - image: 'https://graphql-compose.github.io/svg/graphql-compose-logo.svg', + image: '/img/users/graphql-compose-logo.svg', infoLink: 'https://graphql-compose.github.io', fbOpenSource: false, pinned: false, @@ -317,7 +317,7 @@ module.exports = [ }, { caption: 'Home Assistant', - image: 'https://developers.home-assistant.io/img/logo-responsive.svg', + image: '/img/users/home-assistant.svg', infoLink: 'https://developers.home-assistant.io/', fbOpenSource: false, pinned: false, @@ -338,7 +338,7 @@ module.exports = [ }, { caption: 'Jafar', - image: 'https://yahoo.github.io/jafar/img/jafar.svg', + image: '/img/users/jafar.svg', infoLink: 'https://yahoo.github.io/jafar', fbOpenSource: false, pinned: false, @@ -450,7 +450,7 @@ module.exports = [ }, { caption: 'Node SerialPort', - image: 'https://serialport.io/img/serialport-logo.svg', + image: '/img/users/serialport-logo.svg', infoLink: 'https://serialport.io', fbOpenSource: false, pinned: false, @@ -464,7 +464,7 @@ module.exports = [ }, { caption: 'Open Power Quality', - image: 'https://openpowerquality.org/img/opqlogo.png', + image: '/img/users/open-power-quality.png', infoLink: 'https://openpowerquality.org/', fbOpenSource: false, pinned: false, @@ -506,15 +506,15 @@ module.exports = [ }, { caption: 'pnpm', - image: 'https://pnpm.js.org/img/pnpm.svg', + image: '/img/users/pnpm.svg', infoLink: 'https://pnpm.js.org/', fbOpenSource: false, pinned: false, }, { caption: 'Polymath Network', - image: 'https://developers.polymath.network/img/text.svg', - infoLink: 'https://developers.polymath.network', + image: '/img/users/polymatch-network.png', + infoLink: 'https://polymath.network', fbOpenSource: false, pinned: false, }, @@ -688,7 +688,7 @@ module.exports = [ }, { caption: 'rest-hapi', - image: 'https://jkheadley.github.io/rest-hapi/img/rest-hapi-logo-alt.png', + image: '/img/users/rest-hapi.png', infoLink: 'https://jkheadley.github.io/rest-hapi/', fbOpenSource: false, pinned: false, @@ -723,7 +723,7 @@ module.exports = [ }, { caption: 'single-spa', - image: 'https://single-spa.js.org/img/logo-white-bgblue.svg', + image: '/img/users/single-spa.svg', infoLink: 'https://single-spa.js.org/', fbOpenSource: false, pinned: false, @@ -737,7 +737,7 @@ module.exports = [ }, { caption: 'smash.gg', - image: 'https://imgur.com/eBFBDei.png', + image: '/img/users/smash.png', infoLink: 'https://developer.smash.gg', fbOpenSource: false, pinned: false, @@ -751,7 +751,7 @@ module.exports = [ }, { caption: 'Stackery', - image: 'https://www.stackery.io/img/stackery-large-mark-teal-w.png', + image: '/img/users/stackery-large-mark-teal-w.png', infoLink: 'https://docs.stackery.io', fbOpenSource: false, pinned: false, @@ -793,7 +793,7 @@ module.exports = [ }, { caption: 'textlint', - image: 'https://textlint.github.io/img/textlint-icon.png', + image: '/img/users/textlint-icon.png', infoLink: 'https://textlint.github.io/', fbOpenSource: false, pinned: false, diff --git a/website-1.x/static/img/users/AmphoraData.png b/website-1.x/static/img/users/amphora-data.png similarity index 100% rename from website-1.x/static/img/users/AmphoraData.png rename to website-1.x/static/img/users/amphora-data.png diff --git a/website-1.x/static/img/users/anssr.svg b/website-1.x/static/img/users/anssr-data-plataform.svg similarity index 100% rename from website-1.x/static/img/users/anssr.svg rename to website-1.x/static/img/users/anssr-data-plataform.svg diff --git a/website-1.x/static/img/users/apify.svg b/website-1.x/static/img/users/apify-skd.svg similarity index 100% rename from website-1.x/static/img/users/apify.svg rename to website-1.x/static/img/users/apify-skd.svg diff --git a/website-1.x/static/img/users/atalaya.png b/website-1.x/static/img/users/atalaya.png deleted file mode 100644 index d8823d0edb88..000000000000 Binary files a/website-1.x/static/img/users/atalaya.png and /dev/null differ diff --git a/website-1.x/static/img/users/goby-logo.svg b/website-1.x/static/img/users/goby-logo.svg new file mode 100644 index 000000000000..2020f8b8ab06 --- /dev/null +++ b/website-1.x/static/img/users/goby-logo.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + diff --git a/website-1.x/static/img/users/graphql-compose-logo.svg b/website-1.x/static/img/users/graphql-compose-logo.svg new file mode 100644 index 000000000000..f6ebdaf11e91 --- /dev/null +++ b/website-1.x/static/img/users/graphql-compose-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website-1.x/static/img/users/home-assistant.svg b/website-1.x/static/img/users/home-assistant.svg new file mode 100644 index 000000000000..fddc10763c1d --- /dev/null +++ b/website-1.x/static/img/users/home-assistant.svg @@ -0,0 +1 @@ +home-assistant-logo-responsive \ No newline at end of file diff --git a/website-1.x/static/img/users/jafar.svg b/website-1.x/static/img/users/jafar.svg new file mode 100644 index 000000000000..e3869e425ad6 --- /dev/null +++ b/website-1.x/static/img/users/jafar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website-1.x/static/img/users/open-power-quality.png b/website-1.x/static/img/users/open-power-quality.png new file mode 100644 index 000000000000..578085d6ed8f Binary files /dev/null and b/website-1.x/static/img/users/open-power-quality.png differ diff --git a/website-1.x/static/img/users/pnpm.svg b/website-1.x/static/img/users/pnpm.svg new file mode 100644 index 000000000000..869d98fb4a25 --- /dev/null +++ b/website-1.x/static/img/users/pnpm.svg @@ -0,0 +1,9 @@ + + +pnpm \ No newline at end of file diff --git a/website-1.x/static/img/users/polymatch-network.png b/website-1.x/static/img/users/polymatch-network.png new file mode 100644 index 000000000000..a466726b7b47 Binary files /dev/null and b/website-1.x/static/img/users/polymatch-network.png differ diff --git a/website-1.x/static/img/users/rest-hapi.png b/website-1.x/static/img/users/rest-hapi.png new file mode 100644 index 000000000000..53e6144e8875 Binary files /dev/null and b/website-1.x/static/img/users/rest-hapi.png differ diff --git a/website-1.x/static/img/users/serialport-logo.svg b/website-1.x/static/img/users/serialport-logo.svg new file mode 100644 index 000000000000..6af9c3da79d8 --- /dev/null +++ b/website-1.x/static/img/users/serialport-logo.svg @@ -0,0 +1 @@ +IOIOI \ No newline at end of file diff --git a/website-1.x/static/img/users/single-spa.svg b/website-1.x/static/img/users/single-spa.svg new file mode 100644 index 000000000000..9896d2812967 --- /dev/null +++ b/website-1.x/static/img/users/single-spa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website-1.x/static/img/users/smash.png b/website-1.x/static/img/users/smash.png new file mode 100644 index 000000000000..844aa2a2270c Binary files /dev/null and b/website-1.x/static/img/users/smash.png differ diff --git a/website-1.x/static/img/users/stackery-large-mark-teal-w.png b/website-1.x/static/img/users/stackery-large-mark-teal-w.png new file mode 100644 index 000000000000..cd78856e0419 Binary files /dev/null and b/website-1.x/static/img/users/stackery-large-mark-teal-w.png differ diff --git a/website-1.x/static/img/users/textlint-icon.png b/website-1.x/static/img/users/textlint-icon.png new file mode 100644 index 000000000000..20b50e9ca747 Binary files /dev/null and b/website-1.x/static/img/users/textlint-icon.png differ