feat: Add nav_bar component

This commit is contained in:
2026-01-22 12:03:41 -05:00
parent 708dd3adeb
commit 1544ab65d0
8 changed files with 45 additions and 0 deletions

View File

@@ -1,10 +1,12 @@
import './App.css'
import NavBar from './components/nav_bar/NavBar'
import Catalog from './pages/catalog/Catalog'
import Login from './pages/login/Login'
function App() {
return (
<>
<NavBar/>
<Login/>
<Catalog/>
</>

2
src/components/index.ts Normal file
View File

@@ -0,0 +1,2 @@
export * from './menu/'
export * from './nav_bar/'

View File

@@ -0,0 +1,17 @@
import Menu from "./components/menu/Menu";
import Profile from "./components/profile/Profile";
const NavBar = () => {
return (
<>
<div>
<Menu/>
</div>
<div>
<Profile/>
</div>
</>
)
}
export default NavBar;

View File

@@ -0,0 +1,14 @@
const Menu = () => {
return (
<>
<button>Menu</button>
<ul>
<li>Iniciar Sesión</li>
<li>Catalogo</li>
<li>Compras</li>
</ul>
</>
)
}
export default Menu;

View File

@@ -0,0 +1 @@
export * from './Menu.tsx'

View File

@@ -0,0 +1,9 @@
const Profile = () => {
return (
<>
<p>Alejandro - Admin</p>
</>
)
}
export default Profile;

View File