diff --git a/client/src/components/NavBar.js b/client/src/components/NavBar.js index a42b3b9..d1b5f68 100644 --- a/client/src/components/NavBar.js +++ b/client/src/components/NavBar.js @@ -1,6 +1,5 @@ import React, {useContext,useEffect } from 'react'; import { Link } from "react-router-dom"; -import '../navbar.css'; import UserContext from "../context/UserContext"; import styled,{ css } from 'styled-components'; @@ -23,7 +22,7 @@ const Header = styled.header` ${ props => props.sticky ? css` ${Header}; padding: 3px 45px; - min-height: 6vh; + min-height: 3vh; opacity: 0.85; display: fixed; `:css``}; @@ -37,43 +36,54 @@ const Header = styled.header` color: #fff; text-decoration: none; text-transform: lowercase; - padding-left: 100px; transition: 0.6s; } -`; -const ListElement = styled.li` - -`; -const Anchor = styled.a` - - `; const List = styled.ul` - ${Header}; position: relative; display: flex; + flex-direction: row; justify-content: center; align-items: center; - & ${ListElement} { - position: relative; - list-style:none; + padding: 13px 50px; + flex-wrap: nowrap; + margin-bottom: 0px !important; - } - & ${ListElement} ${Anchor} { - position: relative; - margin: 5px 15px; - text-transform: uppercase; +`; +const ListElement = styled.li` + color: #fff; + text-decoration: none; + text-transfrom: uppercase; + + position:relative; + padding:3px 50px; +`; + +const Anchor = styled.a` color: #fff; + text-transform: uppercase; + color: inherit; letter-spacing: 2px; - font-weight: 500px; + font-size: 1.2em; + padding: 3px ; + transition: 0.6s; + white-space: nowrap; + + + + +`; +const Linker = styled(Link)` + color:#fff; + text-transform: uppercase; + color: inherit; + letter-spacing: 2px; + font-size: 1.2em; padding: 3px 0; transition: 0.6s; - } - - `; @@ -109,24 +119,24 @@ export default function NavBar() {
- locaft - +
diff --git a/client/src/navbar.css b/client/src/navbar.css index 576d412..6a4238f 100644 --- a/client/src/navbar.css +++ b/client/src/navbar.css @@ -57,13 +57,6 @@ header ul li { header ul li a { position: relative; - margin: 5px 15px; - text-transform: uppercase; - color: #fff; - letter-spacing: 2px; - font-weight: 500px; - padding: 3px 0; - transition: 0.6s; } diff --git a/server/Procfile b/server/Procfile index 9bfade9..00197eb 100644 --- a/server/Procfile +++ b/server/Procfile @@ -1 +1 @@ -web: nodemon server.js +web: nodemon server.js