add commit hash to footer

This commit is contained in:
Matthias Kretschmann 2024-04-02 13:18:38 +01:00
parent 45a0bc81f6
commit 84df787a31
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 19 additions and 8 deletions

View File

@ -1,18 +1,28 @@
import { GitHubLogoIcon } from '@radix-ui/react-icons'
import styles from './Footer.module.css'
import { repoUrl } from '@/constants'
export function Footer() {
return (
<footer className={styles.footer}>
<span>
Send and memecoins to{' '}
<a href="https://app.ens.domains/krema.eth">krema.eth</a>
</span>
<div>
<span>
Send and memecoins to{' '}
<a href="https://app.ens.domains/krema.eth">krema.eth</a>
</span>
<div className={styles.social}>
<a href="https://github.com/kremalicious/asi-calculator">
<GitHubLogoIcon />
</a>
<p className={styles.social}>
<a href={repoUrl}>
<GitHubLogoIcon />
</a>
</p>
</div>
<div>
<p>
<a href={`${repoUrl}/commit/${process.env.VERCEL_GIT_COMMIT_SHA}`}>
{process.env.VERCEL_GIT_COMMIT_SHA?.substring(0, 7)}
</a>
</p>
</div>
</footer>
)

View File

@ -5,6 +5,7 @@ export const title = 'ASI Calculator'
export const description =
'See how much ASI you get for your OCEAN, AGIX, or FET.'
export const liveUrl = 'https://asi.kremalicious.com'
export const repoUrl = 'https://github.com/kremalicious/asi-calculator'
export const ratioOceanToAsi = 0.43322638231018
export const ratioAgixToAsi = 0.43335018345744