diff --git a/frontend/src/components/nav/Navbar.tsx b/frontend/src/components/nav/Navbar.tsx index 4e478724..7b728591 100644 --- a/frontend/src/components/nav/Navbar.tsx +++ b/frontend/src/components/nav/Navbar.tsx @@ -58,6 +58,7 @@ const Navbar = () => { path: "/research", icon: , description: "", + isExternal: false, }, ]; @@ -67,28 +68,43 @@ const Navbar = () => { title, children, icon, + isExternal, }: { className?: string; href: string; title: string; children: string; icon: React.ReactNode; + isExternal: boolean; }) => { return (
  • - -
    - {icon} - {title} -
    -

    {children}

    -
    + {isExternal ? ( + +
    + {icon} + {title} +
    +

    {children}

    +
    + ) : ( + +
    + {icon} + {title} +
    +

    {children}

    + + )}
  • ); @@ -156,6 +172,7 @@ const Navbar = () => { href={item.path} icon={item.icon} className="group" + isExternal={item.isExternal !== false} > {item.description} diff --git a/frontend/src/components/pages/ResearchPage.tsx b/frontend/src/components/pages/ResearchPage.tsx index 03613297..018494c2 100644 --- a/frontend/src/components/pages/ResearchPage.tsx +++ b/frontend/src/components/pages/ResearchPage.tsx @@ -55,7 +55,7 @@ const MediumArticles: React.FC = () => { } return ( -
    +
    {articles.map((article, index) => ( ))} @@ -91,54 +91,54 @@ const MediumCard: React.FC<{ article: ResearchPost }> = ({ article }) => { : "https://miro.medium.com/v2/resize:fill:40:40/1*REeM2VDUPg7VWMU1UwnsBw.png"; return ( -
    -
    - +
    + + {article.title} { + (e.target as HTMLImageElement).src = fallbackImage; + }} + /> + + +
    +
    {article.title} { - (e.target as HTMLImageElement).src = fallbackImage; - }} + src={authorImage} + alt={article.author} + className="rounded-full h-10 w-10" /> - - -
    -
    - {article.author} -
    -

    {article.author}

    -

    - {new Date(article.pubDate).toLocaleDateString()} -

    -
    -
    - - -

    - {article.title} -

    -

    - {article.description.replace(/<\/?[^>]+(>|$)/g, "")} +

    +

    + {article.author}

    -
    +

    + {new Date(article.pubDate).toLocaleDateString()} +

    +
    -