From 0ae556c058b965c028889260f857dc456d6910eb Mon Sep 17 00:00:00 2001 From: Mathias Desloges Date: Thu, 26 Oct 2017 00:41:47 +0200 Subject: [PATCH] update styles --- src/App.css | 28 --------------- src/NavigationBar.css | 11 ++++++ src/NavigationBar.js | 8 +++-- src/Page.js | 13 ++----- src/PageManager.css | 81 +++++++++++++++++++++++++++++++++++++++++++ src/PageManager.js | 19 ++++++---- src/index.css | 6 +++- src/index.js | 5 +-- 8 files changed, 120 insertions(+), 51 deletions(-) delete mode 100644 src/App.css create mode 100644 src/NavigationBar.css create mode 100644 src/PageManager.css 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 ( -