Skip to content

Commit

Permalink
Added Help button
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Nov 7, 2024
1 parent db5a9a8 commit 358c47b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
// import logo from "./../../public/charisma_logo.png";
import { useNavigate } from "react-router-dom";
import { Link, useNavigate } from "react-router-dom";

export default function Header() {
const navigate = useNavigate();
return (
<div className="logo">
{/* <div id="headerWrap">
<img src={logo} alt="logo" height={36} />
</div> */}
<h1 onClick={() => navigate("/")}>Raman spectra search</h1>
<Link
to="https://docs.google.com/presentation/d/13oULefmyNbXaNhhmvrEQIrZaQ9DSCqBHNc-Wm2jRDP0/edit#slide=id.p"
target="_blank"
rel="noopener noreferrer"
>
<button className="shareBtn">Help</button>
</Link>
</div>
);
}
4 changes: 2 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ h1 {

.logo {
display: flex;
justify-content: flex-start;
justify-content: space-between;
align-items: center;
gap: 12px;
/* margin-bottom: 4rem; */
Expand Down Expand Up @@ -438,4 +438,4 @@ h1 {

.read-the-docs {
color: #888;
}
}

0 comments on commit 358c47b

Please sign in to comment.