Skip to content

Commit

Permalink
NavBar
Browse files Browse the repository at this point in the history
  • Loading branch information
GrvExplorer committed Nov 29, 2023
1 parent 82eb2b3 commit f43fd38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function App() {
// },
// };



// useEffect(() => {

Expand All @@ -61,8 +60,8 @@ function App() {
return (
<>
<div className="relative z-0 bg-primary">
<div className="flex bg-hero-pattern bg-cover bg-center bg-no-repeat pointer-events-none">
<Navbar />
<div className="flex bg-hero-pattern bg-cover bg-center bg-no-repeat pointer-events-none">
<Hero
/>
</div>
Expand Down
6 changes: 1 addition & 5 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ const Navbar = () => {
const [toggle, setToggle] = useState(true);
const [isNavColor, setNavColor] = useState(false);

console.log(active);


useEffect(() => {
const handleScroll = () => {
const scrollTop = scrollY;
Expand Down Expand Up @@ -61,7 +58,7 @@ const Navbar = () => {
className={`${
active === link.title ? "text-white" : "text-secondary"
} cursor-pointer text-[18px] font-medium hover:text-white`}
onClick={() => (setActive(link.title, console.log('click')))}
onClick={() => (setActive(link.title))}
>
<a href={`#${link.id}`}>{link.title}</a>
</li>
Expand Down Expand Up @@ -89,7 +86,6 @@ const Navbar = () => {
onClick={() => {
setActive(link.title);
setToggle(!toggle);
console.log('click');
}}
>
<a href={`#${link.id}`}>{link.title}</a>
Expand Down

0 comments on commit f43fd38

Please sign in to comment.