diff --git a/src/components/AboutFooter.astro b/src/components/AboutFooter.astro index e1eb195..64c5d7f 100644 --- a/src/components/AboutFooter.astro +++ b/src/components/AboutFooter.astro @@ -4,6 +4,30 @@ import * as config from '../config.yaml'; import core from '../core.json'; import contributors from '../contributors.json'; +function findPerson(src) { + const p = core.people.find(p => src.refs?.twitter ? p.refs?.twitter === src.refs.twitter : (src.refs?.bsky ? p.refs.bsky === src.refs.bsky : {})) + if (p) { + p.ct = src + } + return p +} + +function personLink(person) { + return person.refs?.twitter ? `https://twitter.com/${person.refs.twitter}` : (person.refs?.bsky ? `https://bsky.app/profile/${person.refs.bsky}` : '#') +} + +function coreTeamGithubLink(person) { + return `https://github.com/${person.ct.refs.github}` +} + +function filterCoreTeam(person) { + if (person.login) { + return !(core['core-team'].find(ctm => ctm.refs.github.toLowerCase() === person.login.toLowerCase())) + } + const res = core['core-team'].find(ctm => ctm.refs.twitter ? ctm.refs.twitter?.toLowerCase() === person.refs?.twitter?.toLowerCase() : ctm.refs?.bsky?.toLowerCase() === person.refs?.bsky?.toLowerCase()) + return !res +} + ---
@@ -34,9 +58,32 @@ import contributors from '../contributors.json';

Join the Community

{config.landing.community}
-
- {contributors.items.map((contrib) => ( -
+

Core Team

+
+ {core['core-team'].map(findPerson).map((person) => ( +
+ + + +
+ ))} +
+ +

Speakers

+
+ {core.people.filter(filterCoreTeam).filter(p => p.imageUrl).map((person) => ( +
+ + + +
+ ))} +
+ +

Git Contributors

+
+ {contributors.items.filter(filterCoreTeam).map((contrib) => ( +
))}
diff --git a/src/core.json b/src/core.json index 236c6c5..03d8724 100644 --- a/src/core.json +++ b/src/core.json @@ -18,6 +18,14 @@ "telegram": "https://t.me/web3privacynow" }, "core-team": [ + { + "name": "Mykola", + "refs": { + "github": "msiusko", + "twitter": "nicksvyaznoy", + "matrix": "k1983:matrix.org" + } + }, { "name": "Tree", "refs": { @@ -27,14 +35,6 @@ "matrix": "tree:gwei.cz" } }, - { - "name": "Mykola", - "refs": { - "github": "msiusko", - "twitter": "nicksvyaznoy", - "matrix": "k1983:matrix.org" - } - }, { "name": "PG", "refs": { @@ -47,7 +47,8 @@ "name": "Coinmandeer", "refs": { "github": "coinmandeer", - "matrix": "coinmandeer:matrix.org" + "matrix": "coinmandeer:matrix.org", + "twitter": "KeenOfCoin" } } ], @@ -132,6 +133,15 @@ } ], "people": [ + { + "id": "coinmandeer", + "name": "Coinmandeer", + "refs": { + "twitter": "KeenOfCoin", + "github": "coinmandeer" + }, + "imageUrl": "https://data.web3privacy.info/img/people/coinmandeer.png" + }, { "id": "jaromil", "name": "Denis Roio",