Files
Web-Frontend/client/src/components/header.jsx
T

28 lines
871 B
React
Raw Normal View History

2025-07-08 11:16:51 -07:00
2025-07-15 12:55:27 -07:00
import { chakra, useRecipe, Box, Button, Avatar, HStack, Stack, Text } from "@chakra-ui/react"
2025-07-08 11:16:51 -07:00
export default function Header() {
2025-07-15 12:55:27 -07:00
const recipe = useRecipe({ key: "header" });
const styles = recipe();
2025-07-08 11:16:51 -07:00
return (
2025-07-15 12:55:27 -07:00
<chakra.div css={styles}>
<Button color="color" variant="plain" textStyle="5xl" fontWeight="bold">VDAP</Button>
2025-07-08 11:16:51 -07:00
<Button variant="plain">
2025-07-15 12:55:27 -07:00
<Stack gap="0">
<Text color="color" fontWeight="bold" textStyle="lg">{user.name}</Text>
<Text color="fg.muted" textStyle="sm">{user.email}</Text>
</Stack>
<Avatar.Root>
<Avatar.Fallback name={user.name} />
<Avatar.Image src={user.avatar} />
</Avatar.Root>
2025-07-08 11:16:51 -07:00
</Button>
2025-07-15 12:55:27 -07:00
</chakra.div>
2025-07-08 11:16:51 -07:00
);
}
const user = {
name: "venessa kuchenik",
email: "vkuchenik@contractor.usgs.gov",
// avatar: "src\\assets\\user_profile.svg"
}