mirror of
https://github.com/web3privacy/web
synced 2024-10-15 18:26:27 +02:00
Quick fixes.
This commit is contained in:
parent
94fe600d56
commit
501dbc9b9b
2 changed files with 7 additions and 7 deletions
|
@ -105,6 +105,7 @@ const sortedSections = sectionsConfig
|
|||
people={core.people}
|
||||
team={core.teams["core-contributors"]}
|
||||
core={true}
|
||||
contributors={true}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import { parseAndWrapCaptions } from "../../utils/captionParser";
|
||||
|
||||
const { people, team, core } = Astro.props;
|
||||
const { people, team, core, contributors } = Astro.props;
|
||||
|
||||
// Filter based on the `core` parameter
|
||||
const members = core ? people.filter((p) => {
|
||||
|
@ -40,7 +40,7 @@ function personLink(person) {
|
|||
<div
|
||||
class={`max-w-xs w-full max-h-[340px] bg-transparent overflow-hidden p-1 space-y-1 mb-2`}
|
||||
>
|
||||
<a href={personLink(person)} class={`${core ? "person-item" : ""}`}>
|
||||
<a href={personLink(person)} class={`${core ? "person-item" : ""}`} target="_blank">
|
||||
<img
|
||||
src={person.imageUrl}
|
||||
alt={person.name}
|
||||
|
@ -50,7 +50,7 @@ function personLink(person) {
|
|||
<div class="mt-4">
|
||||
<h3 class="text-[10px] pt-2 font-bold leading-3 md:leading-9 md:text-[16px] ">{person.name}</h3>
|
||||
|
||||
{person.refs && (
|
||||
{!contributors ? person.refs && (
|
||||
<p class="text-xs text-gray-500">
|
||||
{person.refs.twitter && `@${person.refs.twitter}`}
|
||||
{person.refs.email && ` | Email: ${person.refs.email}`}
|
||||
|
@ -60,14 +60,13 @@ function personLink(person) {
|
|||
{person.refs.matrix && ` | Matrix: ${person.refs.matrix}`}
|
||||
{person.refs.email && ` | Email: ${person.refs.email}`}
|
||||
</p>
|
||||
<p class="text-xs text-gray-500" set:html={person.caption && parseAndWrapCaptions(person.caption)}></p>
|
||||
|
||||
|
||||
<p class="text-xs text-gray-500" set:html={person.caption && parseAndWrapCaptions(person.caption)}></p>
|
||||
<p class="text-xs text-gray-500">
|
||||
{person.refs.designation && `${person.refs.designation}`}
|
||||
|
||||
</p>
|
||||
)}
|
||||
) :
|
||||
<p class="text-xs text-gray-500" set:html={person.caption && parseAndWrapCaptions(person.caption)}></p>}
|
||||
</div>
|
||||
</div>
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue