Skip to content

Commit

Permalink
Add Navigation and links
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodigo committed Dec 12, 2021
1 parent cdd0fbc commit 0492a82
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
import React from "react";
import { NavLink } from "react-router-dom";
import { Navbar, Container, Nav } from 'react-bootstrap'

export const App = () => {
return <>
<h1>Hello, hello, hello</h1>
<Navbar bg="light" expand="lg">
<Container>
<Navbar.Brand>
<NavLink to="/" style={{textDecoration: 'none', color: 'inherit'}}>Your account</NavLink>
</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav">
<Nav className="me-auto">
<NavLink to="/address" className="nav-link">Address book</NavLink>
<NavLink to="/orders" className="nav-link">Orders</NavLink>
</Nav>
</Navbar.Collapse>
</Container>
</Navbar>
<Container className="mt-3">
<h1>Hello, hello, hello</h1>
</Container>
</>
}

Expand Down

0 comments on commit 0492a82

Please sign in to comment.