Skip to content

Commit

Permalink
✨ Added links to GitHub releases/commits in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed Apr 5, 2022
1 parent 9b35ba7 commit b748c7c
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,27 @@ const BuildInfo: FunctionalComponent = () => {
if (!data) return null

return <div class="text-gray-700 text-sm font-mono text-right">
<p>{data.version}</p>
<p>
<a
class="font-semibold underline underline-dotted hover:underline-solid"
href={`https://github.com/lukecarr/tiny-todo/releases/tag/${data.version}`}
target="_blank"
rel="noopener"
>
{data.version}
</a>
</p>
<p class="text-xs">Built at: {data.date}</p>
<p class="text-xs">Commit: {data.commit}</p>
<p class="text-xs">
<a
class="font-semibold underline underline-dotted hover:underline-solid"
href={`https://github.com/lukecarr/tiny-todo/commit/${data.commit}`}
target="_blank"
rel="noopener"
>
Commit: {data.commit.slice(0, 7)}
</a>
</p>
</div>
}

Expand Down

0 comments on commit b748c7c

Please sign in to comment.