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

68 lines
1.1 KiB
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-11 13:42:11 -03:00
import { SocialLinks } from '../components/SocialLinks'
2021-12-11 01:48:15 -03:00
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-11 13:42:11 -03:00
const socialLinks = [
{
label: 'Email',
href: '1'
},
{
label: 'GitHub',
href: '2'
},
{
label: 'LinkedIn',
href: '3'
},
{
label: 'Dev',
href: '4'
},
{
label: 'Instagram',
href: '5'
},
{
label: 'WhatsApp',
href: '6'
}
]
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 13:42:11 -03:00
<SocialLinks socialLinks={socialLinks} color="rose" />
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>
)
}