File size: 1,456 Bytes
393d76c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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;