about pages, added profile pictures
parent
c32753a06f
commit
ce289294a0
@ -0,0 +1,34 @@
|
||||
import Markdown from "markdown-to-jsx";
|
||||
import { notFound } from "next/navigation";
|
||||
|
||||
import InfoBar from "~/components/InfoBar";
|
||||
|
||||
import styles from "~/styles/index.module.css"
|
||||
import system from "~/config/system.json"
|
||||
|
||||
export default function MemberPage({ params: { name } }) {
|
||||
const member = system.members.find(member => member.name.toLowerCase() === name)
|
||||
|
||||
if (!member) notFound()
|
||||
|
||||
return (
|
||||
<>
|
||||
<main className="mainColumn">
|
||||
<InfoBar memberName={member.name} />
|
||||
<p>{member.bioShort}</p>
|
||||
<Markdown>{member.bioContinued}</Markdown>
|
||||
{member.bioFields?.length && (
|
||||
|
||||
<div className={styles.glance}>
|
||||
{member.bioFields.map(({ name, value }) => (
|
||||
<>
|
||||
<span className={styles.label}>{name}</span>
|
||||
<span>{value}</span>
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</main >
|
||||
</>
|
||||
)
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 273 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
After Width: | Height: | Size: 585 KiB |
@ -0,0 +1,7 @@
|
||||
import rose from '~/images/profile/rose.png'
|
||||
import dawn from '~/images/profile/dawn.png'
|
||||
import echo from '~/images/profile/echo.png'
|
||||
|
||||
export default {
|
||||
rose, dawn, echo
|
||||
}
|
Loading…
Reference in New Issue