Files
link-free/src/pages/index.tsx

39 lines
698 B
TypeScript
Raw Normal View History

2021-12-11 12:53:26 -03:00
import { Avatar } from '../components/Avatar'
2021-12-11 01:48:15 -03:00
import { Button } from '../components/Button'
2021-12-10 20:54:28 -03:00
export default function Home() {
2021-12-11 01:48:15 -03:00
const links = [
{
label: 'Home',
href: '#'
},
{
label: 'About',
href: '/about'
},
{
label: 'Contact',
href: '/contact'
}
]
2021-12-10 20:54:28 -03:00
return (
2021-12-11 12:53:26 -03:00
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
height: '100vh',
gap: '1rem'
}}
>
<Avatar src="/avatar.jpeg" />
2021-12-11 01:48:15 -03:00
{links.map(link => (
2021-12-11 12:53:26 -03:00
<Button color="sky" schema="rounded" outline key={link.href}>
{link.label}
</Button>
2021-12-11 01:48:15 -03:00
))}
2021-12-10 20:54:28 -03:00
</div>
)
}