-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gets rid of dependencies we did not need. Replaces hard-coded javascript imports that weren't loading in Chrome with react-bootstrap. Fixes the navbar collapse not working in Chrome. Fixes warnings in console during development time. Updates dependencies. There are no more warnings in the build, so we can build with CI=true as it should be.
- Loading branch information
Showing
12 changed files
with
465 additions
and
507 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import {Link} from 'react-router-dom'; | ||
import logo from '../../img/logo.svg'; | ||
import 'font-awesome/css/font-awesome.min.css'; | ||
import './style.css'; | ||
import { Nav, Navbar } from "react-bootstrap"; | ||
|
||
export default function MyNavbar() { | ||
return ( | ||
<Navbar collapseOnSelect expand="lg" bg="dark" variant="dark" style={{ borderTop: '8px solid #1ba89c' }} > | ||
<Navbar.Brand as={Link} to="/" > | ||
<img src={logo} className="img-fluid" style={{ maxHeight: 80 }} alt="Micrometer" /> | ||
</Navbar.Brand> | ||
<Navbar.Toggle aria-controls="responsive-navbar-nav" /> | ||
<Navbar.Collapse id="responsive-navbar-nav"> | ||
<Nav className="ml-auto mt-2 mt-lg-0"> | ||
<Nav.Item href="/docs"> | ||
<Nav.Link as={Link} to="/docs"><i className="fa fa-lg fa-book"/> Documentation</Nav.Link> | ||
</Nav.Item> | ||
<Nav.Item> | ||
<Nav.Link href="https://github.com/micrometer-metrics/micrometer"><i className="fa fa-lg fa-github-alt" /> GitHub</Nav.Link> | ||
</Nav.Item> | ||
<Nav.Item> | ||
<Nav.Link href="https://twitter.com/micrometerio"><i className="fa fa-lg fa-twitter" /> Twitter</Nav.Link> | ||
</Nav.Item> | ||
<Nav.Item> | ||
<Nav.Link href="https://join.slack.com/t/micrometer-metrics/shared_invite/zt-ewo3kcs0-Ji3aOAqTxnjYPEFBBI5HqQ"><i className="fa fa-lg fa-slack" /> Slack</Nav.Link> | ||
</Nav.Item> | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Navbar> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/components/Navbar/style.css → src/components/MyNavbar/style.css
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,3 +1,3 @@ | ||
.nav-link:hover { | ||
background-color: #1ba89c; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.