generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crear el index y la barra de navegacion principal
- Loading branch information
david
committed
Feb 12, 2024
1 parent
1b23f63
commit 5c08df7
Showing
6 changed files
with
105 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// En /src/components/Navbar.js | ||
import React from 'react'; | ||
import '../styles/Navbar.css'; // Importa tu archivo de estilos si es necesario | ||
|
||
const Navbar = () => ( | ||
<nav className="navbar navbar-expand-lg navbar-dark bg-primary fixed-top"> | ||
<div className="collapse navbar-collapse" id="my-navbarColor01"> | ||
<a className="navbar-brand" href="/"> | ||
<img src="/LogoSaberYganar.png" alt="Logo" /> | ||
</a> | ||
{/*<ul className="navbar-nav mr-auto"> | ||
<li className="nav-item"> | ||
<a className="nav-link" href="/"> | ||
Home | ||
</a> | ||
</li> | ||
</ul>*/} | ||
</div> | ||
|
||
<div className="collapse navbar-collapse" id="my-navbarColor02"> | ||
<ul className="navbar-nav justify-content-end"> | ||
<li className="nav-item"> | ||
<a className="nav-link" href="/signup"> | ||
<i className="fas fa-sign-in-alt" style={{ fontSize: '16px' }}></i> | ||
<span>Registrarse</span> | ||
</a> | ||
</li> | ||
<li className="nav-item"> | ||
<a className="nav-link" href="/login"> | ||
<i className="fas fa-sign-in-alt" style={{ fontSize: '16px' }}></i> | ||
<span>Iniciar sesión</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
); | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* Estilo para la barra de navegación */ | ||
.navbar { | ||
background-color: #001f3f; /* Fondo azul oscuro */ | ||
padding: 10px; /* Espaciado interno */ | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
/* Estilo para el logo */ | ||
.navbar-brand img { | ||
width: 5em; /* Ancho del logo */ | ||
} | ||
|
||
/* Estilo para la lista de navegación */ | ||
.navbar-nav { | ||
display: flex; | ||
align-items: center; | ||
list-style-type: none; /* Eliminar el punto de los li para que no quede feo */ | ||
margin: 0; /* Eliminar el margen por defecto */ | ||
padding: 0; /* Eliminar el padding por defecto */ | ||
} | ||
|
||
/* Estilo para los elementos de la lista de navegación */ | ||
.navbar-nav li { | ||
margin-right: 1em; /* Espaciado entre elementos de la lista */ | ||
} | ||
|
||
/* Estilo para los botones de login y registro */ | ||
.navbar-nav a { | ||
color: #ffffff; /* Texto blanco */ | ||
text-decoration: none; | ||
} | ||
|
||
/* Estilo para hacer que la barra de navegación sea responsive en dispositivos móviles */ | ||
@media (max-width: 768px) { | ||
.navbar { | ||
flex-direction: column; /* Cambia a una columna en dispositivos móviles */ | ||
align-items: flex-start; | ||
} | ||
|
||
.navbar-nav { | ||
margin-top: 10px; /* Espaciado superior en dispositivos móviles */ | ||
} | ||
|
||
.navbar-nav li { | ||
margin: 5px 0; /* Espaciado entre elementos de la lista en dispositivos móviles */ | ||
} | ||
} |