From a5735e1a98aea81c52755f993ed46c0426d45bb1 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 14 Jan 2019 16:28:00 +0300 Subject: [PATCH] feat: added a universal footer nav (#34864) --- client/src/components/Footer/footer.css | 14 +++++ client/src/components/Footer/index.js | 69 ++++++++++++++++++++++++ client/src/components/layouts/Default.js | 2 + client/src/components/layouts/global.css | 2 +- client/src/pages/learn.css | 7 +-- 5 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 client/src/components/Footer/footer.css create mode 100644 client/src/components/Footer/index.js diff --git a/client/src/components/Footer/footer.css b/client/src/components/Footer/footer.css new file mode 100644 index 0000000000..3e1d4a3e0f --- /dev/null +++ b/client/src/components/Footer/footer.css @@ -0,0 +1,14 @@ +footer{ + position: absolute; + background-color: #E0E0E0; + color:#555555; + background-size: cover; + font-size: .9em; + width:100%; + margin-top: 5px; + padding-top: 40px; +} + +footer b { + padding-bottom: 5px; +} diff --git a/client/src/components/Footer/index.js b/client/src/components/Footer/index.js new file mode 100644 index 0000000000..c7722afd0d --- /dev/null +++ b/client/src/components/Footer/index.js @@ -0,0 +1,69 @@ +/* eslint-disable max-len*/ +import React from 'react'; +import './footer.css'; + +function Footer() { + return ( + + ); +} + +export default Footer; diff --git a/client/src/components/layouts/Default.js b/client/src/components/layouts/Default.js index 4fa0f1906a..e12188aff7 100644 --- a/client/src/components/layouts/Default.js +++ b/client/src/components/layouts/Default.js @@ -19,6 +19,7 @@ import { isBrowser } from '../../../utils'; import OfflineWarning from '../OfflineWarning'; import Flash from '../Flash'; import Header from '../Header'; +import Footer from '../Footer'; import './global.css'; import './layout.css'; @@ -156,6 +157,7 @@ class DefaultLayout extends Component { ) : null} {children} +