-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9753784
commit df033da
Showing
2 changed files
with
35 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
import "@components/styles/NavBar.css" | ||
import img from "@images/yandex-logo.jpg" | ||
import yandex_logo from "@images/yandex-logo.jpg" | ||
import github_logo from "@images/github-logo.png" | ||
|
||
import { Link } from "react-router-dom" | ||
import { Container, Nav, Navbar, Offcanvas } from "react-bootstrap" | ||
|
||
|
||
export default function NavBar() { | ||
|
||
var expand = false | ||
|
||
return ( | ||
<> | ||
{ | ||
[false].map((expand) => ( | ||
<Navbar key={expand} expand={expand} className="bg-body-tertiary mb-3"> | ||
<Container fluid> | ||
<Navbar.Brand as={Link} to="/"> | ||
<img id="home-icon" src={img} /> | ||
Команда А | ||
</Navbar.Brand> | ||
<Navbar key={expand} expand={expand} className="bg-body-tertiary mb-3"> | ||
<Container fluid> | ||
<Navbar.Brand as={Link} to="/"> | ||
<img id="home-icon" src={yandex_logo} /> | ||
Команда А | ||
</Navbar.Brand> | ||
|
||
<Navbar.Toggle aria-controls={`offcanvasNavbar-expand-${expand}`} /> | ||
<Navbar.Offcanvas | ||
id={`offcanvasNavbar-expand-${expand}`} | ||
aria-labelledby={`offcanvasNavbarLabel-expand-${expand}`} | ||
placement="end" | ||
> | ||
<Offcanvas.Header closeButton> | ||
<Offcanvas.Title id={`offcanvasNavbarLabel-expand-${expand}`}> | ||
предсказания | ||
</Offcanvas.Title> | ||
</Offcanvas.Header> | ||
<Offcanvas.Body> | ||
<Nav className="justify-content-end flex-grow-1 pe-3"> | ||
<Nav.Link as={Link} to="/predict_day/">на сегодня</Nav.Link> | ||
<Nav.Link as={Link} to="/predict_interval/">на интервал</Nav.Link> | ||
</Nav> | ||
</Offcanvas.Body> | ||
</Navbar.Offcanvas> | ||
</Container> | ||
</Navbar> | ||
)) | ||
} | ||
<Navbar.Toggle aria-controls={`offcanvasNavbar-expand-${expand}`} /> | ||
<Navbar.Offcanvas | ||
id={`offcanvasNavbar-expand-${expand}`} | ||
aria-labelledby={`offcanvasNavbarLabel-expand-${expand}`} | ||
placement="end" | ||
> | ||
<Offcanvas.Header closeButton> | ||
<Offcanvas.Title id={`offcanvasNavbarLabel-expand-${expand}`}> | ||
предсказания | ||
</Offcanvas.Title> | ||
<a href="https://github.com/lm-cyber/project_22_STUDCAMP" target="_blank"> | ||
<img id="home-icon" src={github_logo} /> | ||
</a> | ||
</Offcanvas.Header> | ||
<Offcanvas.Body> | ||
<Nav className="justify-content-end flex-grow-1 pe-3"> | ||
<Nav.Link as={Link} to="/predict_day/">на сегодня</Nav.Link> | ||
<Nav.Link as={Link} to="/predict_interval/">на интервал</Nav.Link> | ||
</Nav> | ||
</Offcanvas.Body> | ||
</Navbar.Offcanvas> | ||
</Container> | ||
</Navbar> | ||
</> | ||
); | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.