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 { GitHubLogoIcon } from '@radix-ui/react-icons'
import styles from './Footer.module.css' import styles from './Footer.module.css'
import { repoUrl } from '@/constants'
export function Footer() { export function Footer() {
return ( return (
<footer className={styles.footer}> <footer className={styles.footer}>
<span> <div>
Send and memecoins to{' '} <span>
<a href="https://app.ens.domains/krema.eth">krema.eth</a> Send and memecoins to{' '}
</span> <a href="https://app.ens.domains/krema.eth">krema.eth</a>
</span>
<div className={styles.social}> <p className={styles.social}>
<a href="https://github.com/kremalicious/asi-calculator"> <a href={repoUrl}>
<GitHubLogoIcon /> <GitHubLogoIcon />
</a> </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> </div>
</footer> </footer>
) )

View File

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