diff --git a/src/App.css b/src/App.css deleted file mode 100644 index c5c6e8a..0000000 --- a/src/App.css +++ /dev/null @@ -1,28 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - animation: App-logo-spin infinite 20s linear; - height: 80px; -} - -.App-header { - background-color: #222; - height: 150px; - padding: 20px; - color: white; -} - -.App-title { - font-size: 1.5em; -} - -.App-intro { - font-size: large; -} - -@keyframes App-logo-spin { - from { transform: rotate(0deg); } - to { transform: rotate(360deg); } -} diff --git a/src/NavigationBar.css b/src/NavigationBar.css new file mode 100644 index 0000000..5790a2a --- /dev/null +++ b/src/NavigationBar.css @@ -0,0 +1,11 @@ +nav { + position: fixed; +} + +nav.bottom { + bottom: 0; +} + +nav.top { + top: 0; +} \ No newline at end of file diff --git a/src/NavigationBar.js b/src/NavigationBar.js index 7b6dbbb..7707107 100644 --- a/src/NavigationBar.js +++ b/src/NavigationBar.js @@ -1,10 +1,12 @@ import React from 'react' -import { Link } from 'react-router-dom'; +import { Link } from 'react-router-dom' -export default ({ pages, ...props }) => { +import './NavigationBar.css' + +export default ({ pages, position, ...props }) => { return ( -