Added footer link
This commit is contained in:
parent
2dd97ee953
commit
92cc65fecf
2 changed files with 13 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Text } from 'theme-ui'
|
||||
import { Link, Text } from 'theme-ui'
|
||||
|
||||
interface FooterLinkProps {
|
||||
link: string
|
||||
|
|
@ -8,16 +8,7 @@ interface FooterLinkProps {
|
|||
|
||||
const FooterLink = ({ link, text, hoverText }: FooterLinkProps) => {
|
||||
return (
|
||||
<Text
|
||||
sx={{
|
||||
mb: '8px',
|
||||
fontSize: '11px',
|
||||
position: 'fixed',
|
||||
bottom: '0',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
onClick={() => window.open(`https://vytal.io/${link}`)}
|
||||
>
|
||||
<Link variant="footer" href={`https://vytal.io/${link}`} target="_blank">
|
||||
{text}{' '}
|
||||
<Text
|
||||
sx={{
|
||||
|
|
@ -29,7 +20,7 @@ const FooterLink = ({ link, text, hoverText }: FooterLinkProps) => {
|
|||
>
|
||||
{hoverText}
|
||||
</Text>
|
||||
</Text>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
10
src/theme.ts
10
src/theme.ts
|
|
@ -70,4 +70,14 @@ export const theme: Theme = {
|
|||
m: 0,
|
||||
},
|
||||
},
|
||||
links: {
|
||||
footer: {
|
||||
color: 'text',
|
||||
mb: '8px',
|
||||
fontSize: '11px',
|
||||
position: 'fixed',
|
||||
bottom: '0',
|
||||
textDecoration: 'none',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue