Added footer link

This commit is contained in:
z0ccc 2022-11-01 00:32:35 -04:00
parent 2dd97ee953
commit 92cc65fecf
2 changed files with 13 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import { Text } from 'theme-ui' import { Link, Text } from 'theme-ui'
interface FooterLinkProps { interface FooterLinkProps {
link: string link: string
@ -8,16 +8,7 @@ interface FooterLinkProps {
const FooterLink = ({ link, text, hoverText }: FooterLinkProps) => { const FooterLink = ({ link, text, hoverText }: FooterLinkProps) => {
return ( return (
<Text <Link variant="footer" href={`https://vytal.io/${link}`} target="_blank">
sx={{
mb: '8px',
fontSize: '11px',
position: 'fixed',
bottom: '0',
cursor: 'pointer',
}}
onClick={() => window.open(`https://vytal.io/${link}`)}
>
{text}{' '} {text}{' '}
<Text <Text
sx={{ sx={{
@ -29,7 +20,7 @@ const FooterLink = ({ link, text, hoverText }: FooterLinkProps) => {
> >
{hoverText} {hoverText}
</Text> </Text>
</Text> </Link>
) )
} }

View file

@ -70,4 +70,14 @@ export const theme: Theme = {
m: 0, m: 0,
}, },
}, },
links: {
footer: {
color: 'text',
mb: '8px',
fontSize: '11px',
position: 'fixed',
bottom: '0',
textDecoration: 'none',
},
},
} }