-
+
-
{output.books.map((book) => (
diff --git a/src/components/Body.tsx b/src/components/Body.tsx index 995278c..7db110b 100644 --- a/src/components/Body.tsx +++ b/src/components/Body.tsx @@ -46,7 +46,7 @@ Body.Article = Article; function Link(props: LinkProps) { return ( <_Link - className='text-xl text-rose-500 underline underline-offset-4 leading-6 font-semibold w-fit hover:brightness-75 transition' + className='text-xl text-rose-400 underline underline-offset-4 leading-6 font-semibold w-fit hover:brightness-75 transition' {...props} /> ); @@ -55,7 +55,7 @@ Body.Link = Link; function PageTitle({ children }: Props) { return ( -
{book.title}
{book?.subtitle && (
@@ -54,9 +63,9 @@ export function Books({ book }: { book: Book }) {
);
}
-function getImgSrcFromName(name: string) {
+function getAuthorProps(name: string) {
const members = Object.values(ipsers).flatMap((category) => category.members);
const author = members.find((member) => member.name === name);
- return author?.imgSrc;
+ return author;
}
diff --git a/src/components/Card.tsx b/src/components/Card.tsx
index f0076f2..e5cae41 100644
--- a/src/components/Card.tsx
+++ b/src/components/Card.tsx
@@ -7,7 +7,7 @@ type Props = {
export function Card({ children, className }: Props & { className?: string }) {
return (
+
+
{output.books.map((book) => (