Merge pull request 'Add registration in the nav bar (fix #111)' (#112) from feature/register-option-navbar into main

Reviewed-on: #112
This commit is contained in:
cami 2021-07-06 00:42:21 +00:00
commit ab95b0dfd5
2 changed files with 13 additions and 1 deletions

View file

@ -31,7 +31,7 @@
.nav-menu { .nav-menu {
display: grid; display: grid;
grid-template-columns: repeat(4, auto); grid-template-columns: repeat(5, auto);
grid-gap: 10px; grid-gap: 10px;
list-style: none; list-style: none;
text-align: center; text-align: center;

View file

@ -68,6 +68,7 @@ function Navbar() {
</Link> </Link>
</li> </li>
) : ( ) : (
<>
<li className="nav-item"> <li className="nav-item">
<Link <Link
to="/login" to="/login"
@ -77,6 +78,17 @@ function Navbar() {
Anmelden Anmelden
</Link> </Link>
</li> </li>
<li className="nav-item">
<Link
to="/register"
className="nav-links"
onClick={closeMobileMenu}
>
Registrieren
</Link>
</li>
</>
)} )}
<li> <li>
<Link <Link