Spaces:
Running
Running
Download components/Navbar.js from mateosky/deepsite-project: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/spaces/mateosky/deepsite-project/resolve/main/components/Navbar.js
- Command line
-
hf download hf://spaces/mateosky/deepsite-project/components/Navbar.js
-
curl -L -o Navbar.js https://huggingface.co/spaces/mateosky/deepsite-project/resolve/main/components/Navbar.js
971 Bytes
| ```javascript | |
| import React from 'react'; | |
| import { Link } from 'react-scroll'; | |
| const Navbar = ({ isMenuOpen, toggleMenu }) => { | |
| return ( | |
| <header> | |
| <div className="logo-space"> | |
| {/* Logo will be placed here */} | |
| </div> | |
| <div className={`hamburger ${isMenuOpen ? 'active' : ''}`} onClick={toggleMenu}> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| </div> | |
| <nav className={isMenuOpen ? 'active' : ''}> | |
| <Link to="about" smooth={true} duration={500} onClick={toggleMenu}> | |
| Our Idea | |
| </Link> | |
| <Link to="services" smooth={true} duration={500} onClick={toggleMenu}> | |
| Services | |
| </Link> | |
| <Link to="products" smooth={true} duration={500} onClick={toggleMenu}> | |
| Products | |
| </Link> | |
| <Link to="contact" smooth={true} duration={500} onClick={toggleMenu}> | |
| Contact | |
| </Link> | |
| </nav> | |
| </header> | |
| ); | |
| }; | |
| export default Navbar; | |
| ``` |