Skip to content

Commit

Permalink
Revert "chore: simplify landing page button with chakra as"
Browse files Browse the repository at this point in the history
This reverts commit 62d8b27.
  • Loading branch information
Tim Won committed Sep 16, 2020
1 parent 9b2dafd commit 0b643bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export interface IHomeProps {}
export default function Home(props: IHomeProps) {
const router = useRouter();

const handleClick = () => {
router.push('/home');
};

return (
<Layout home>
<Flex
Expand All @@ -28,12 +32,11 @@ export default function Home(props: IHomeProps) {
A personal website dedicated to those who may already have
</Text>
<Button
as="a"
variant="outline"
mt="4rem"
size="md"
maxW="6rem"
href="/home"
onClick={handleClick}
>
Explore
</Button>
Expand Down

0 comments on commit 0b643bf

Please sign in to comment.