Skip to content

Commit

Permalink
chore: Add more link
Browse files Browse the repository at this point in the history
  • Loading branch information
firejune committed Nov 8, 2023
1 parent fd23404 commit 59b6940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/[username]/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Canvas = ({
<area
key={y}
href={`https://github.com/${username}?from=${day.date}&to=${day.date}&tab=overview`}
target="github.com"
target="jandee"
shape="rect"
coords={`${starts.join(',')}, ${ends.join(',')}`}
title={`${day.date}${showWeekDays ? '' : `(${format(parseISO(day.date), 'EEE')})`} / ${
Expand Down
10 changes: 6 additions & 4 deletions src/app/[username]/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Chart = ({
<a
key={`day-${y}`}
href={`https://github.com/${username}?from=${day.date}&to=${day.date}&tab=overview`}
target="github.com"
target="jandee"
>
<rect
width={boxSize}
Expand Down Expand Up @@ -121,9 +121,11 @@ const Chart = ({

{showFooter && count && (
<g transform={`translate(${textWidth}, ${chartHeight - textHeight})`}>
<text dy={textHeight} style={{ fontSize }} fill="var(--color-text-default)">
{`${count} contribution${count === '1' ? '' : 's'} in the last year by @${username} on GitHub`}
</text>
<a href={`https://jandee.vercel.app/${username}`} target="jandee">
<text dy={textHeight} style={{ fontSize }} fill="var(--color-text-default)">
{`${count} contribution${count === '1' ? '' : 's'} in the last year by @${username} on GitHub`}
</text>
</a>
</g>
)}

Expand Down

0 comments on commit 59b6940

Please sign in to comment.