feat: create base home header

This commit is contained in:
Vinicius Souza 2024-10-25 12:04:36 -03:00
parent 9e8f38936f
commit 5328160d76
2 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,16 @@
import { Heading, HStack, Text, VStack } from "@gluestack-ui/themed";
export function HomeHeader() {
return (
<HStack>
<VStack>
<Text color="$gray100" fontSize="$sm">
Olá,
</Text>
<Heading color="$gray100" fontSize="$md">
John Doe
</Heading>
</VStack>
</HStack>
)
}

View file

@ -1,9 +1,10 @@
import { Center, Text } from "@gluestack-ui/themed";
import { HomeHeader } from "@components/HomeHeader";
import { Center } from "@gluestack-ui/themed";
export function Home() {
return (
<Center flex={1}>
<Text>Home</Text>
<HomeHeader />
</Center>
)
}