-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(v1.1): update text positioning & fix error matching element
- Loading branch information
1 parent
ca56cd3
commit 8d997bc
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { Box, Heading, Text } from '@chakra-ui/react'; | ||
import { Box, Flex, Heading, Text } from '@chakra-ui/react'; | ||
|
||
import { getAge } from '../lib/age'; | ||
|
||
export default function Home() { | ||
return ( | ||
<Box py={40} textAlign="center"> | ||
<Heading as="h1" mb={4}> | ||
Hello, I'm Hendra Agil 👋 | ||
</Heading> | ||
<Text fontSize="2xl" fontWeight="600"> | ||
Student. {getAge()} years old. | ||
</Text> | ||
</Box> | ||
<Flex align="center" justify="center" minH="100vh"> | ||
<Box pb="72px" textAlign="center"> | ||
<Heading as="h1" mb={4}> | ||
Hello, I'm Hendra Agil 👋 | ||
</Heading> | ||
<Text fontSize="2xl" fontWeight="600"> | ||
Student. {getAge()} years old. | ||
</Text> | ||
</Box> | ||
</Flex> | ||
); | ||
} |
8d997bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: