Skip to content

Commit

Permalink
feat: create base of homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Won committed Sep 6, 2020
1 parent 34be80c commit a90b1e2
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 6 deletions.
Binary file removed public/images/profile.jpeg
Binary file not shown.
Binary file added public/images/profile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Layout(props: ILayoutProps) {
justifyContent: 'center',
alignItems: 'center',
wrap: 'wrap',
maxW: '36rem',
maxW: '48rem',
margin: '3rem auto 6rem',
};
return (
Expand Down
4 changes: 3 additions & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export default function Navbar(props: INavbarProps) {
<Box flex={1} textAlign="center" width="100%">
<NextLink href="/">
<Link>
<Heading>TW</Heading>
<Heading as="h1" size="xl">
TW
</Heading>
</Link>
</NextLink>
</Box>
Expand Down
55 changes: 51 additions & 4 deletions src/pages/home.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,60 @@
import * as React from 'react';
import { Box } from '@chakra-ui/core';
import { Box, Heading, Flex, Image, Text, Divider } from '@chakra-ui/core';
import Layout from '../components/Layout';

export interface IHomeProps {}

export default function Home(props: IHomeProps) {
return (
<Layout>
<Box>Home works!</Box>
<Flex
flexDirection="column"
justifyContent="center"
alignItems="center"
padding="1rem"
>
<Flex
flexDirection={{ xs: 'column', sm: 'row' }}
justifyContent="center"
alignItems="center"
>
<Box flex={1}>
<Image
src="/images/profile.jpg"
alt="me"
size="2xs"
borderRadius="2rem"
mx="auto"
></Image>
</Box>

<Box pt={{ xs: '1rem', md: '0' }} flex={1}>
<Heading
as="h2"
size="md"
mb={4}
textAlign={{ xs: 'center', md: 'left' }}
>
Hello world!
</Heading>
<Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
tortor pretium viverra suspendisse. Tempus urna et pharetra
pharetra massa. Facilisi cras fermentum odio eu feugiat pretium
nibh ipsum consequat.
</Text>
</Box>
</Flex>
<Divider my="2rem" backgroundColor="gray" width="100%" />

<Heading as="h2" size="md" mb={4}>
Contact me?
</Heading>
<Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Eu
tincidunt tortor aliquam nulla facilisi cras.
</Text>
</Flex>
</Layout>
);
}
3 changes: 3 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ img {
max-width: 100%;
display: block;
}

title {
}

0 comments on commit a90b1e2

Please sign in to comment.