ndswimming92 / noteworthy-fe-capstone

Notetaking app in react
1 stars 0 forks source link

Create NavBar #19

Open ndswimming92 opened 7 months ago

ndswimming92 commented 7 months ago

User Story - what the user should see and experience

When a user logs in they should see the NavBar with:

Acceptance Criteria - illustrates the scope of the individual ticket

Example -

NW1

Dev Notes - dev work that needs to be completed for this ticket

Example Code:

export default function NavBar() {
  return (
    <Navbar collapseOnSelect expand="lg" bg="dark" variant="dark">
      <Container>
        <Link passHref href="/members">
          <Navbar.Brand>Swim Team Roster</Navbar.Brand>
        </Link>
        <Navbar.Toggle aria-controls="responsive-navbar-nav" />
        <Navbar.Collapse className="justify-content-end">
          <Nav className="ml-auto">
            {/* CLOSE NAVBAR ON LINK SELECTION: https://stackoverflow.com/questions/72813635/collapse-on-select-react-bootstrap-navbar-with-nextjs-not-working */}
            <Link passHref href="/members">
              <Nav.Link>Team</Nav.Link>
            </Link>
            <Link passHref href="/member/new">
              <Nav.Link>Add Member</Nav.Link>
            </Link>
            <Button type="button" className="btn-danger" onClick={signOut}>
              Log Out
            </Button>
          </Nav>
        </Navbar.Collapse>
      </Container>
    </Navbar>
  );
}