Skip to content

Commit

Permalink
Removed 'login' from the navbar
Browse files Browse the repository at this point in the history
Right-justified the 'signed in as' text
  • Loading branch information
Delaney H committed Mar 25, 2024
1 parent d48798f commit a0d55a4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
28 changes: 20 additions & 8 deletions frontend/src/pages/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
import {Link} from "react-router-dom";
import {Nav, Navbar} from "react-bootstrap";
import Container from "react-bootstrap/Container";
import React from "react";

function NavBar() {
return (
<div>
<Link to="/">Home</Link>
<Link to="/login">Login</Link>
<Link to="/garage">Garage</Link>
<Link to="/settings">Settings</Link>
</div>
<Navbar expand="lg" className="bg-body-tertiary">
<Container>
<Navbar.Brand href="/garage">Driveline</Navbar.Brand>
<Navbar.Toggle />
<Navbar.Collapse>
<Nav>
<Nav.Link href="/garage">Garage</Nav.Link>
<Nav.Link href="/settings">Settings</Nav.Link>
</Nav>

</Navbar.Collapse>
<Nav className={"ms-auto"}>
<Navbar.Text >Signed in as: placeholder</Navbar.Text>
</Nav>
</Container>
</Navbar>
);
}

export default NavBar;
export default NavBar;
5 changes: 5 additions & 0 deletions frontend/src/pages/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ export const Settings = () => {
<h1>Settings</h1>
<p>Change your settings here</p>
<p>Placeholder</p>

<footer>
<a target="_blank" href="https://icons8.com/icon/vGQkspHvmobZ/settings">Settings</a> icon by <a
target="_blank" href="https://icons8.com">Icons8</a>
</footer>
</div>
);
}

0 comments on commit a0d55a4

Please sign in to comment.