Download src/components/Header.js from matheusbezerra1/sleekheader-supreme: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/spaces/matheusbezerra1/sleekheader-supreme/resolve/main/src/components/Header.js
- Command line
-
hf download hf://spaces/matheusbezerra1/sleekheader-supreme/src/components/Header.js
-
curl -L -o Header.js https://huggingface.co/spaces/matheusbezerra1/sleekheader-supreme/resolve/main/src/components/Header.js
1.46 kB
| import React from 'react'; | |
| import { | |
| Box, | |
| Button, | |
| Flex, | |
| HStack, | |
| Link, | |
| useColorModeValue | |
| } from '@chakra-ui/react'; | |
| import { Link as RouterLink } from 'react-router-dom'; | |
| const Header = () => { | |
| const bg = useColorModeValue('white', 'gray.900'); | |
| const shadow = useColorModeValue('sm', 'dark-lg'); | |
| return ( | |
| <Box | |
| as="header" | |
| w="100%" | |
| position="sticky" | |
| top="0" | |
| zIndex="50" | |
| bg={bg} | |
| boxShadow={shadow} | |
| > | |
| <Flex | |
| maxW="7xl" | |
| mx="auto" | |
| px={{ base: 4, md: 6 }} | |
| py={4} | |
| align="center" | |
| justify="space-between" | |
| > | |
| <Link as={RouterLink} to="/" fontSize="xl" fontWeight="bold"> | |
| Luxury Estates | |
| </Link> | |
| <HStack spacing={6} display={{ base: 'none', md: 'flex' }}> | |
| <Link as={RouterLink} to="/" fontWeight="medium"> | |
| Home | |
| </Link> | |
| <Link as={RouterLink} to="/about" fontWeight="medium"> | |
| About | |
| </Link> | |
| <Link as={RouterLink} to="/properties" fontWeight="medium"> | |
| Properties | |
| </Link> | |
| <Link as={RouterLink} to="/contact" fontWeight="medium"> | |
| Contact | |
| </Link> | |
| </HStack> | |
| <Button | |
| as={RouterLink} | |
| to="/login" | |
| colorScheme="blue" | |
| size="sm" | |
| > | |
| Member Login | |
| </Button> | |
| </Flex> | |
| </Box> | |
| ); | |
| }; | |
| export default Header; |