aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2019-12-31 02:39:09 +0300
committerEug-VS <eug-vs@keemail.me>2019-12-31 15:39:10 +0300
commit6feb332973393b48369e12516808ad5294c9a843 (patch)
treea8593815e77da790a65c8648c79dcbee8f2e9d99
parent81588411d7baf36a78a147142d4fb4101b0b021c (diff)
downloadchrono-cube-ui-6feb332973393b48369e12516808ad5294c9a843.tar.gz
Add initial Header component
-rw-r--r--src/App.js10
-rw-r--r--src/components/Header.js15
2 files changed, 21 insertions, 4 deletions
diff --git a/src/App.js b/src/App.js
index 386e165..5954efa 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,9 +1,11 @@
import React from 'react';
+import Header from "./components/Header";
-const App = () => {
- return (
+const App = () => (
+ <div>
+ <Header/>
<h1> ChronoCube - a professional speedcubing timer</h1>
- );
-};
+ </div>
+);
export default App;
diff --git a/src/components/Header.js b/src/components/Header.js
new file mode 100644
index 0000000..2104530
--- /dev/null
+++ b/src/components/Header.js
@@ -0,0 +1,15 @@
+import React from "react";
+
+const Header = () => (
+ <div>
+ <h2> ChronoCube </h2>
+ <ul>
+ <li> Home </li>
+ <li> App </li>
+ <li> Scoreboard </li>
+ <li> News </li>
+ </ul>
+ </div>
+);
+
+export default Header;