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 ( -

+

{children}

); @@ -64,7 +64,7 @@ Body.PageTitle = PageTitle; function H1({ children }: Props) { return ( -

+

{children}

); diff --git a/src/components/Books.tsx b/src/components/Books.tsx index a46dc78..55667bf 100644 --- a/src/components/Books.tsx +++ b/src/components/Books.tsx @@ -19,26 +19,35 @@ export function Books({ book }: { book: Book }) {
  • -
    +
    {book.authors.map((author, index) => ( - {author} + href={getAuthorProps(author)?.url} + target='_blank' + rel='noopener noreferrer' + className='hover:z-50' + style={{ zIndex: 5 - index }} + > + {author} + ))}
    -
    +

    {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 (

    diff --git a/src/config/outputs.ts b/src/config/outputs.ts index 8f9b923..a899ee6 100644 --- a/src/config/outputs.ts +++ b/src/config/outputs.ts @@ -19,13 +19,13 @@ export const outputs: Outputs = { title: 'Edited books and journal issues', books: [ { - title: - 'Direitos de Autor: As recentes alterações legislativas (UMinho Editora 2023) (with MM Carvalho)', + title: 'Direitos de Autor: As recentes alterações legislativas', + subtitle: '(UMinho Editora 2023) (with MM Carvalho)', authors: ['Giulia Priora'], }, { - title: - 'The Law and the Digital Classroom, JIPITEC 14(2) 2023 (with R Ducato)', + title: 'The Law and the Digital Classroom', + subtitle: 'JIPITEC 14(2) 2023 (with R Ducato)', authors: ['Giulia Priora'], }, ], diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index fa98cb4..e298933 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -23,7 +23,7 @@ export function Home() { Our latest scientific output:
    - +
    NOVA IPSI Booklet 2023 diff --git a/src/pages/Outputs.tsx b/src/pages/Outputs.tsx index b9944c5..21e6e80 100644 --- a/src/pages/Outputs.tsx +++ b/src/pages/Outputs.tsx @@ -8,14 +8,14 @@ export function Outputs() { {Object.values(outputs).map((output) => ( - + {output.title} -
      +
        {output.books.map((book) => ( ))} -
    +
    ))}