Skip to content

Commit

Permalink
added github logo && fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILIPP111007 committed Apr 12, 2024
1 parent 9753784 commit df033da
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
67 changes: 35 additions & 32 deletions frontend/src/components/NavBar.jsx
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>
</>
);
)
}
Binary file added frontend/src/images/github-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df033da

Please sign in to comment.