2022-06-14 22:01:23 +00:00
|
|
|
import Head from 'next/head'
|
|
|
|
import Image from 'next/image'
|
2022-06-14 20:42:31 +00:00
|
|
|
import styled from 'styled-components'
|
2022-06-14 22:01:23 +00:00
|
|
|
import AvatarSvg from '../static/avatar.svg'
|
|
|
|
|
|
|
|
const Container = styled.div`
|
|
|
|
background-color: ${({ theme }) => theme.colors.background};
|
|
|
|
color: ${({ theme }) => theme.colors.primary};
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
`
|
2022-06-14 20:42:31 +00:00
|
|
|
|
|
|
|
const Title = styled.h1`
|
|
|
|
font-size: 50px;
|
2022-06-14 22:01:23 +00:00
|
|
|
`
|
|
|
|
|
|
|
|
const Avatar = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
width: 3.5cm;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
`
|
|
|
|
|
|
|
|
const RoundImage = styled(Image)`
|
|
|
|
border-radius: 50%;
|
2022-06-14 20:42:31 +00:00
|
|
|
`
|
|
|
|
|
|
|
|
export default function Home() {
|
2022-06-14 22:01:23 +00:00
|
|
|
return (
|
|
|
|
<Container>
|
|
|
|
<Head>
|
|
|
|
<title>MedzikUser</title>
|
|
|
|
</Head>
|
|
|
|
|
|
|
|
<Avatar>
|
|
|
|
<RoundImage src={AvatarSvg} alt="my profile picture" />
|
|
|
|
</Avatar>
|
|
|
|
|
|
|
|
<Title>Hello, I'm Oskar</Title>
|
|
|
|
|
|
|
|
</Container>
|
|
|
|
)
|
2022-06-14 20:42:31 +00:00
|
|
|
}
|