feat: create base home header
This commit is contained in:
parent
9e8f38936f
commit
5328160d76
2 changed files with 19 additions and 2 deletions
16
src/components/HomeHeader.tsx
Normal file
16
src/components/HomeHeader.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -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() {
|
export function Home() {
|
||||||
return (
|
return (
|
||||||
<Center flex={1}>
|
<Center flex={1}>
|
||||||
<Text>Home</Text>
|
<HomeHeader />
|
||||||
</Center>
|
</Center>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue