From 7eaa3b997be7d04dc3d238e76e30b576a86adfe7 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 10 Feb 2024 19:59:15 -0800 Subject: [PATCH] adjust profile layout --- .eslintrc.json | 5 ++++- src/app/author/[author]/page.tsx | 16 ++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..f0f3abe 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "next/core-web-vitals" + "extends": "next/core-web-vitals", + "rules": { + "@next/next/no-img-element": "off" + } } diff --git a/src/app/author/[author]/page.tsx b/src/app/author/[author]/page.tsx index bdcf410..71555fe 100644 --- a/src/app/author/[author]/page.tsx +++ b/src/app/author/[author]/page.tsx @@ -29,6 +29,12 @@ export default function Page({ {mainAffiliation.name} + + {authorData.website ? ( +
+ Visit at: {authorData.website} +
+ ) : null} ) } @@ -100,12 +106,6 @@ export default function Page({ return ( <>

Bio:

- {authorData.website ? ( -

- You can visit me at:{' '} - {authorData.website} -

- ) : null}

{authorData.bio}

) @@ -122,14 +122,14 @@ export default function Page({ />
-
+
{name.first} {name.nickname ? ` "${name.nickname}"` : null} {name.last} -
+