Skip to content

Commit 6c47dd4

Browse files
authored
Merge pull request #836 from w3bdesign/835-footer
Fix footer
2 parents b3e2853 + c98181d commit 6c47dd4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Footer of the application.
3+
*/
4+
const Footer = () => (
5+
<footer className="w-full sm:mt-20 mt-2 sm:bottom-0 px-6 mb-28 sm:mb-2 mx-auto text-center bg-white border border-gray-300 rounded-lg shadow">
6+
<div className="p-6">
7+
Copyright &copy; {new Date().getFullYear()} Daniel / w3bdesign
8+
</div>
9+
</footer>
10+
);
11+
12+
export default Footer;
13+

pages/_app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import Router from 'next/router';
55
import NProgress from 'nprogress';
66

77
import Stickynav from 'components/Footer/Stickynav.component';
8+
import Footer from 'components/Footer/Footer.component';
89

910
import 'styles/index.css';
1011
import 'styles/animate.min.css';
1112
import 'nprogress/nprogress.css';
1213

1314
import client from 'utils/apollo/ApolloClient';
1415

16+
1517
Router.events.on('routeChangeStart', () => NProgress.start());
1618
Router.events.on('routeChangeComplete', () => NProgress.done());
1719
Router.events.on('routeChangeError', () => NProgress.done());
@@ -20,6 +22,7 @@ const App = ({ Component, pageProps }) => (
2022
<ApolloProvider client={client}>
2123
<AppProvider>
2224
<Component {...pageProps} />
25+
<Footer />
2326

2427
<Stickynav />
2528
</AppProvider>

0 commit comments

Comments
 (0)