Skip to content

Commit

Permalink
feat: link github username (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Sep 19, 2023
1 parent 933cf48 commit 796d0dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ProfileDetailsGitHub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default function ProfileDetailsGitHub({ address }: any) {
return (
<>
<code>Not linked</code>
<Link className="ml-4 font-bold text-transparent bg-clip-text bg-gradient-to-br from-sky-400 to-green-400" href={`https://etherscan.io/address/0xb989c0c17a3bce679d7586d9e55b6eab11c18687#writeContract#F1`}>
Update ↗
<Link target="_blank" className="ml-8 font-bold text-transparent bg-clip-text bg-gradient-to-br from-sky-400 to-green-400" href={`https://etherscan.io/address/0xb989c0c17a3bce679d7586d9e55b6eab11c18687#writeContract#F1`}>
Link 🔗
</Link>
</>
)
Expand Down
8 changes: 8 additions & 0 deletions src/pages/[passportId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import dynamic from 'next/dynamic'
import VeNationLockDetails from '@/components/VeNationLockDetails'
import ProfileDetailsGitHub from '@/components/ProfileDetailsGitHub'
import Link from 'next/link'
import Head from 'next/head'
const Chart = dynamic(() => import('react-apexcharts'), { ssr: false })

export default function ProfilePage({ citizen, nationCred, veNation, dework, sourceCred }: any) {
Expand All @@ -23,6 +24,13 @@ export default function ProfilePage({ citizen, nationCred, veNation, dework, sou

return (
<>
{!router.isFallback && (
<Head>
<title>Nation3 Citizen #{citizen.passportId}</title>
<meta property="og:image" content={`https://cdn.stamp.fyi/avatar/eth:${citizen.ownerAddress}?s=288`} />
</Head>
)}

<main className='flex-column lg:flex'>
<Menu />

Expand Down

0 comments on commit 796d0dd

Please sign in to comment.