feat: Add nav_bar component
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
import './App.css'
|
import './App.css'
|
||||||
|
import NavBar from './components/nav_bar/NavBar'
|
||||||
import Catalog from './pages/catalog/Catalog'
|
import Catalog from './pages/catalog/Catalog'
|
||||||
import Login from './pages/login/Login'
|
import Login from './pages/login/Login'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<NavBar/>
|
||||||
<Login/>
|
<Login/>
|
||||||
<Catalog/>
|
<Catalog/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
2
src/components/index.ts
Normal file
2
src/components/index.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './menu/'
|
||||||
|
export * from './nav_bar/'
|
||||||
17
src/components/nav_bar/NavBar.tsx
Normal file
17
src/components/nav_bar/NavBar.tsx
Normal 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;
|
||||||
0
src/components/nav_bar/components/intex.ts
Normal file
0
src/components/nav_bar/components/intex.ts
Normal file
14
src/components/nav_bar/components/menu/Menu.tsx
Normal file
14
src/components/nav_bar/components/menu/Menu.tsx
Normal 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;
|
||||||
1
src/components/nav_bar/components/menu/index.ts
Normal file
1
src/components/nav_bar/components/menu/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from './Menu.tsx'
|
||||||
9
src/components/nav_bar/components/profile/Profile.tsx
Normal file
9
src/components/nav_bar/components/profile/Profile.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
const Profile = () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<p>Alejandro - Admin</p>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Profile;
|
||||||
0
src/components/nav_bar/index.ts
Normal file
0
src/components/nav_bar/index.ts
Normal file
Reference in New Issue
Block a user