diff --git a/Header.js b/Header.js new file mode 100644 index 0000000..cd68337 --- /dev/null +++ b/Header.js @@ -0,0 +1,40 @@ +import React from "react"; +import { Link } from "react-router-dom"; +import headLogo from "../assets/head-logo.png"; +import { useLocation } from "react-router-dom"; + +const Header = () => { + const location = useLocation(); + return ( +
+
+ + img + + {location.pathname === "/contact" ? ( + + Home + + ) : ( +
+ {window.location.host} +
+ )} +
+
+ {/* About */} + + Contact + + {/*
img
*/} +
+
+ ); +}; +export default Header;