Skip to content

Commit

Permalink
🐎(#180) link update and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriAlves5 committed Nov 1, 2023
1 parent 76c6e4e commit 51dc11b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 77 deletions.
16 changes: 8 additions & 8 deletions src/components/navbar/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import { Link } from "react-router-dom"; // Importe o Link
import "../../style/components/navbar.css";
import logo from "../../assets/logo 3.svg";

Expand All @@ -9,23 +10,22 @@ const Navbar = () => {

<div className="button-navbar">
<button className="home-navbar">
<a href="http://localhost:3000/">Home</a>
<Link to="/">Home</Link>
</button>
<button className="aboutUs-navbar">
<a href="http://localhost:3000/quemsomos">Quem Somos</a>
<Link to="/quemsomos">Quem Somos</Link>
</button>
<button className="contact-navbar">
{" "}
<a href="http://localhost:3000/contato">Contato</a>
<Link to="/contato">Contato</Link>
</button>
</div>

<div className="dropdown-navbar-users">
<button className="users-navbar">
Usuários
<div className="dropdown-users-navbar">
<a href="http://localhost:3000/cadastro">Cadastro de usuário</a>
<a href="#">Edição de usuário</a>
<Link to="/cadastro">Cadastro de usuário</Link>
<Link to="#">Edição de usuário</Link>
</div>
</button>
</div>
Expand All @@ -34,8 +34,8 @@ const Navbar = () => {
<button className="printers-navbar">
Impressoras
<div className="dropdown-printers-navbar">
<a href="#">Cadastro de impressora</a>
<a href="#">Edição de impressora</a>
<Link to="#">Cadastro de impressora</Link>
<Link to="#">Edição de impressora</Link>
</div>
</button>
</div>
Expand Down
25 changes: 0 additions & 25 deletions src/components/navbar/NavbarContact.js

This file was deleted.

18 changes: 10 additions & 8 deletions src/components/navbar/NavbarSimple.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
import React from "react";
import { Link } from "react-router-dom"; // Importe o Link
import "../../style/components/navbarSimple.css";
import logo from "../../assets/logo 3.svg";

const NavbarSimple = () => {
return (
<div className="container-navbar-simple">
<img alt="" src={logo}></img>
<img alt="" src={logo} />

<div className="button-navbar-simple">
<button className="home-navbar-simple">
<a href="http://localhost:3000/">Home</a>
<Link to="/">Home</Link> {/* Use o Link para navegar para a rota */}
</button>
<button className="aboutUs-navbar-simple">
<a href="http://localhost:3000/quemsomos">Quem Somos</a>
<Link to="/quemsomos">Quem Somos</Link>
</button>
<button className="contact-navbar-simple">
{" "}
<a href="http://localhost:3000/contato">Contato</a>
<Link to="/contato">Contato</Link>
</button>
</div>

<div className="button-login-navbar-simple">
<button className="login-navbar-simple">
<a href="http://localhost:3000/login">Login</a>
</button>
<Link to="/login">
<button className="login-navbar-simple">
Login
</button>
</Link>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "../style/pages/contact.css";
import Imagem_Homen from "../assets/imagem-homen-ruivo.svg";
import Input from "../components/Input";
import emailjs from "@emailjs/browser";
import NavbarContact from "../components/navbar/NavbarContact";
import NavbarSimple from "../components/navbar/NavbarSimple";

export default function Contact() {
const [nome, setNome] = useState("");
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function Contact() {

return (
<>
<NavbarContact />
<NavbarSimple />
<div className="Main-page-contact">
<h1>Contato</h1>
<div className="Contact-principal">
Expand Down
32 changes: 0 additions & 32 deletions src/style/components/navbarContact.css

This file was deleted.

5 changes: 3 additions & 2 deletions src/style/components/navbarSimple.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@
.button-login-navbar-simple a {
text-decoration: none;
color: #003366;

}

.login-navbar-simple a {
text-decoration: none;
color: #003366;
}
.button-login-navbar-simple :hover {
background-color: #003366;
color: #ffff;
color: #006633;
border-color: #006633;
}

0 comments on commit 51dc11b

Please sign in to comment.