navbar start

This commit is contained in:
Priyatham-sai-chand 2020-11-20 22:56:49 +05:30
parent 836b7c2f19
commit 5aa99bfbc4
2 changed files with 42 additions and 0 deletions

25
src/components/NavBar.js Normal file
View File

@ -0,0 +1,25 @@
import React from 'react';
const Navbar = () => {
return(
<>
<Nav>
<NavLink to="/">
<h1 class="brand-name">Locaft</h1>
</NavLink>
<Bars />
<NavMenu>
<NavLink to="/about" activeStyle>About</NavLink>
<NavLink to="/services" activeStyle>services</NavLink>
<NavLink to="/contact-us" activeStyle>contact-us</NavLink>
<NavLink to="/Users/sign-up" activeStyle>Sign-in</NavLink>
</NavMenu>
</Nav>
</>
)
}

View File

@ -0,0 +1,17 @@
import styled from 'styled-components';
import { NavLink as Link } from 'react-router-dom';
import {FaBars} from 'react-icons/fa';
export const Nav = styled.nav`
background: #000;
height: 80px;
display: flex;
justify-content: space-between;
padding: 0.5rem calc((100vw - 1000px) / 2);
z-index: 10;
`
export const NavLink = styled(Link) `
`