aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src/components/Header.tsx
blob: c55a3d2cb8e74bb8d2849faff4e7eb06e9080110 (plain) (blame)
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
import styled from "styled-components";

const HeaderContainer = styled.header`
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 2rem;

  img {
    width: 64px;
    height: 64px;
  }

  h1 {
    margin: 0;
    margin-left: 1rem;
  }
`;

const NoStyleLink = styled.a`
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
`;

const Header = () => {
  return (
    <HeaderContainer>
      {/* FIXME: Try get this to use React router somehow for SPA routing */}
      <NoStyleLink className="Header-bar" href="/">
        <img src="icon.svg" alt="Thallium logo" />
        <h1>
          Thallium
        </h1>
      </NoStyleLink>
    </HeaderContainer>
  );
};

export default Header;