Quietly embed version to homepage

This commit is contained in:
2025-04-07 15:08:07 -04:00
parent 0283c293ef
commit d144f7385b
4 changed files with 22 additions and 10 deletions

View File

@@ -65,14 +65,23 @@ const HomePage = () => (
</div>
</div>
<div className="fixed bottom-2 left-2 z-10">
<a
href="https://git.altaiar.dev/ahmed/portfolio"
target="_blank"
rel="noreferrer"
className="btn btn-square"
<div
className="tooltip tooltip-right"
data-tip={process.env.APP_VERSION || ''}
>
{getLogoComponent('gitea')}
</a>
<a
href={
process.env.APP_VERSION.length > 0
? `https://git.altaiar.dev/ahmed/portfolio/releases/tag/${process.env.APP_VERSION}`
: 'https://git.altaiar.dev/ahmed/portfolio'
}
target="_blank"
rel="noreferrer"
className="btn btn-square"
>
{getLogoComponent('gitea')}
</a>
</div>
</div>
</>
)