Updated partners.
This commit is contained in:
parent
7ebdfdf404
commit
1588c25ab9
@ -34,11 +34,34 @@ export function renderPossibleURLField(field) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function PartnerCard({ src, alt, url, fields, bio, user }) {
|
export function renderPossibleFields(fields) {
|
||||||
const finalsrc = Boolean(src) ? src : "/images/logo.png";
|
if (Boolean(fields)) {
|
||||||
|
return Object.keys(fields).map((field) => (
|
||||||
|
<div className="grid grid-cols-2 space-x-4" key={field}>
|
||||||
|
<div className="order-1">{renderPossibleURLField(field)}</div>
|
||||||
|
<div className="order-2">{renderPossibleURLField(fields[field])}</div>
|
||||||
|
</div>
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function renderPossibleBio(bio) {
|
||||||
|
if (Boolean(bio)) {
|
||||||
let bioarray = bio.split("\n");
|
let bioarray = bio.split("\n");
|
||||||
bioarray = bioarray.slice(0, bioarray.length - 1);
|
bioarray = bioarray.slice(0, bioarray.length - 1);
|
||||||
const biodict = Object.assign({}, bioarray);
|
const biodict = Object.assign({}, bioarray);
|
||||||
|
return Object.keys(biodict).map((bio) => (
|
||||||
|
<div key={bio}>{biodict[bio] == "" ? <br /> : biodict[bio]}</div>
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function PartnerCard({ src, alt, url, fields, bio, user }) {
|
||||||
|
const finalsrc = Boolean(src) ? src : "/images/logo.png";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4 flex-column space-y-4 break-all sm:text-sm text-xs text-center rounded-sm ring-2 ring-werefox-pink-dark dark:ring-werefox-pink">
|
<div className="p-4 flex-column space-y-4 break-all sm:text-sm text-xs text-center rounded-sm ring-2 ring-werefox-pink-dark dark:ring-werefox-pink">
|
||||||
@ -55,11 +78,7 @@ export default function PartnerCard({ src, alt, url, fields, bio, user }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="order-2 flex-5 space-y-4">
|
<div className="order-2 flex-5 space-y-4">
|
||||||
<div className="p-2 rounded-sm ring-2 ring-werefox-pink-dark dark:ring-werefox-pink group-hover:ring-werefox-blue-dark dark:group-hover:ring-werefox-blue">
|
<div className="p-2 rounded-sm ring-2 ring-werefox-pink-dark dark:ring-werefox-pink group-hover:ring-werefox-blue-dark dark:group-hover:ring-werefox-blue">
|
||||||
{Object.keys(biodict).map((bio) => (
|
{renderPossibleBio(bio)}
|
||||||
<div key={bio}>
|
|
||||||
{biodict[bio] == "" ? <br /> : biodict[bio]}
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
{`- @${user}`}
|
{`- @${user}`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -67,14 +86,7 @@ export default function PartnerCard({ src, alt, url, fields, bio, user }) {
|
|||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<div className="flex-column space-y-4 text-werefox-pink-dark dark:text-werefox-pink">
|
<div className="flex-column space-y-4 text-werefox-pink-dark dark:text-werefox-pink">
|
||||||
{Object.keys(fields).map((field) => (
|
{renderPossibleFields(fields)}
|
||||||
<div className="grid grid-cols-2 space-x-4" key={field}>
|
|
||||||
<div className="order-1">{renderPossibleURLField(field)}</div>
|
|
||||||
<div className="order-2">
|
|
||||||
{renderPossibleURLField(fields[field])}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -37,3 +37,9 @@ karma:
|
|||||||
Follow requests are OK!
|
Follow requests are OK!
|
||||||
|
|
||||||
(posts older than 90 days are deleted)
|
(posts older than 90 days are deleted)
|
||||||
|
|
||||||
|
plausocks:
|
||||||
|
url: "https://masto.werefox.dev/@plausocks"
|
||||||
|
avi: "/images/plausocks.png"
|
||||||
|
bio: |
|
||||||
|
am cat, am gay
|
||||||
|
BIN
src/info/public/images/plausocks.png
Normal file
BIN
src/info/public/images/plausocks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
Loading…
Reference in New Issue
Block a user