Repository navigation
Expand file tree
/
Copy pathTopNavbar.js
More file actions
77 lines (66 loc) · 3.74 KB
/
Copy pathTopNavbar.js
File metadata and controls
77 lines (66 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import "./topNavbar.css";
import React from "react";
import Navbar from "react-bootstrap/Navbar";
import Nav from "react-bootstrap/Nav";
import NavDropdown from "react-bootstrap/NavDropdown";
import AllChartsModal from "./AllChartsModal";
import { Matplotlib, Seaborn, Plotly } from "../components/MiscellaneousLogos"
import { Container } from "react-bootstrap";
export default function TopNavbar() {
const [show, setShow] = React.useState(false);
const handleClose = () => setShow(false);
const handleShow = () => setShow(true);
return (
<Container>
<Navbar className="container" expand="lg" fixed="top">
<Navbar.Brand href="/">← Python Graph Gallery</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav" >
<Nav.Link onClick={handleShow}>Chart types</Nav.Link>
<NavDropdown title="Tools" id="basic-nav-dropdown">
<NavDropdown.Item className="menuItemMain" href="/matplotlib">Matplotlib<span className="menuItemLogo"><Matplotlib /></span></NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Axis">Axis</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Title">Title</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Legend">Legend</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Subplot">Subplot</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Annotation">Annotation</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Font">Font</NavDropdown.Item>
<NavDropdown.Item href="/matplotlib#Theme">Theme</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item className="menuItemMain" href="/seaborn">Seaborn<span className="menuItemLogo"><Seaborn /></span></NavDropdown.Item>
<NavDropdown.Item href="/seaborn#Title">Title</NavDropdown.Item>
<NavDropdown.Item href="/seaborn#Axis">Axis</NavDropdown.Item>
<NavDropdown.Item href="/seaborn#Theme">Theme</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item className="menuItemMain" href="/plotly">Plotly<span className="menuItemLogo"><Plotly /></span></NavDropdown.Item>
</NavDropdown>
<Nav.Link href="/all-charts">All</Nav.Link>
<NavDropdown title="Related" id="basic-nav-dropdown">
<NavDropdown.Item className="menuItemMain" href="https://www.r-graph-gallery.com"><code>R</code> Graph Gallery</NavDropdown.Item>
<NavDropdown.Item className="menuItemMain" href="https://www.d3-graph-gallery.com"><code>D3.js</code> Graph Gallery</NavDropdown.Item>
<NavDropdown.Item className="menuItemMain" href="https://www.data-to-viz.com">Data To Viz</NavDropdown.Item>
</NavDropdown>
<Nav.Link href="/about">About</Nav.Link>
<Nav.Link href="#">
<svg
width="15"
aria-hidden="true"
focusable="false"
data-prefix="fas"
data-icon="search"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
>
<path
fill="currentColor"
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"
></path>
</svg>
</Nav.Link>
</Navbar.Collapse>
</Navbar>
<AllChartsModal show={show} handleClose={handleClose} />
</Container>
);
}