diff --git a/src/components/Hamburg/Hamburg.css b/src/components/Hamburg/Hamburg.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/components/Hamburg/Hamburg.js b/src/components/Hamburg/Hamburg.js
new file mode 100644
index 0000000..7e17cd1
--- /dev/null
+++ b/src/components/Hamburg/Hamburg.js
@@ -0,0 +1,33 @@
+import { useState } from 'react';
+import { NavLink } from 'react-router-dom';
+import './Hamburg.css';
+import ham from '../../utilities/hamburg.svg';
+import x from '../../utilities/x.svg';
+
+
+const Hamburg = () => {
+ const [hamburger, setHamburger] = useState(false);
+ const [hidden, setHidden] = useState('hidden');
+
+ const toggleHamburg = () => {
+ setHamburger(!hamburger);
+ toggleHidden();
+ }
+
+ const toggleHidden = () => {
+ hidden === 'hidden' ? setHidden('') : setHidden('hidden');
+ }
+
+ return (
+
+
+
+ home
+ facts
+ favorites
+
+
+ )
+}
+
+export default Hamburg;
\ No newline at end of file
diff --git a/src/components/Header/Header.css b/src/components/Header/Header.css
index 9c85369..187ac4f 100644
--- a/src/components/Header/Header.css
+++ b/src/components/Header/Header.css
@@ -1,24 +1,29 @@
.header {
display: flex;
- justify-content: space-between;
+ justify-content: space-evenly;
background-color: rgb(7, 241, 218);
}
.logo {
- height: 150px;
+ height: 135px;
cursor: pointer;
+ margin: 10px;
}
.app-title {
font-size: xxx-large;
}
-.link {
+.link,
+.logo-link {
all: unset;
+ cursor: pointer;
+}
+
+.link {
margin: 5px;
font-size: large;
font-weight: 500;
- cursor: pointer;
}
.link:hover {
@@ -27,11 +32,6 @@
border-radius: 2px;
}
-.hamburg {
- width: 2em;
- cursor: pointer;
-}
-
.hidden {
display: none;
}
@@ -41,7 +41,13 @@
align-items: center;
}
-@media (max-width: 584px){
+@media (min-width: 584px) {
+ .ham-menu-box {
+ display: none;
+ }
+}
+
+@media (max-width: 584px) {
.app-title {
text-align: center;
}
@@ -50,5 +56,14 @@
flex-direction: column;
align-items: center;
}
+
+ .hamburg {
+ width: 2em;
+ cursor: pointer;
+ }
+
+ .nav-links {
+ display: none;
+ }
}
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js
index 9d1391a..6efe3d5 100644
--- a/src/components/Header/Header.js
+++ b/src/components/Header/Header.js
@@ -1,32 +1,20 @@
import React, { useState } from 'react';
import { NavLink, Link } from 'react-router-dom';
import './Header.css';
-import ham from '../../utilities/hamburg.svg'
+import Hamburg from '../Hamburg/Hamburg';
const Header = () => {
- const [dropDown, setDropdown] = useState("hidden")
- // const [hamb, setHamb] = useState("")
-
- const toggleDrop = () => {
- if (dropDown === "hidden") {
- setDropdown("")
- // setHamb("hidden")
- } else {
- setDropdown("hidden")
- // setHamb("")
- }
- }
return (
- Cats Meow
-
+ Cats Meow
home
facts
favorites
+
);
};
diff --git a/src/utilities/x.svg b/src/utilities/x.svg
new file mode 100644
index 0000000..653e8b4
--- /dev/null
+++ b/src/utilities/x.svg
@@ -0,0 +1 @@
+
\ No newline at end of file