aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-17 02:05:54 +0100
committerGravatar Joe Banks <[email protected]>2024-08-17 02:05:54 +0100
commit268b4539174c94d72aff085e195479475366d1b4 (patch)
tree972482924b5663b753783699c76cbba4e74592d1 /thallium-frontend/src
parentUpdate card styles (diff)
Split Header to independent component
Diffstat (limited to 'thallium-frontend/src')
-rw-r--r--thallium-frontend/src/components/Header.tsx33
1 files changed, 33 insertions, 0 deletions
diff --git a/thallium-frontend/src/components/Header.tsx b/thallium-frontend/src/components/Header.tsx
new file mode 100644
index 0000000..56c940b
--- /dev/null
+++ b/thallium-frontend/src/components/Header.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+import styled from 'styled-components';
+
+const HeaderContainer = styled.header`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-bottom: 2rem;
+
+ img {
+ width: 64px;
+ height: 64px;
+ }
+
+ h1 {
+ margin: 0;
+ margin-left: 1rem;
+ }
+`;
+
+
+const Header = () => {
+ return (
+ <HeaderContainer>
+ <img src="icon.svg" alt="Thallium logo" />
+ <h1>
+ Thallium
+ </h1>
+ </HeaderContainer>
+ );
+};
+
+export default Header;