This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/pages/_app.jsx

34 lines
934 B
React
Raw Normal View History

2020-03-18 16:26:18 +01:00
/* Libraries Imports */
import Router from 'next/router'
2020-08-03 12:04:07 +02:00
import NProgress from 'nprogress'
2020-03-18 16:26:18 +01:00
/* Components Imports */
2020-08-03 12:04:07 +02:00
import Header from '../components/Header/Header'
import Footer from '../components/Footer/Footer'
2020-03-18 16:26:18 +01:00
/* Contexts Imports */
2020-08-03 12:04:07 +02:00
import UserContextProvider from '../contexts/UserContext'
2020-03-18 16:26:18 +01:00
/* CSS Imports */
2020-08-03 12:04:07 +02:00
import '../public/fonts/Montserrat/Montserrat.css'
import '../public/css/normalize.css'
import '../public/css/grid.css'
import '../public/css/general.css'
import '../public/css/nprogress.css'
Router.events.on('routeChangeStart', () => NProgress.start())
Router.events.on('routeChangeComplete', () => NProgress.done())
Router.events.on('routeChangeError', () => NProgress.done())
2020-03-18 16:26:18 +01:00
const App = ({ Component, pageProps }) => (
2020-08-03 12:04:07 +02:00
<UserContextProvider>
<Header />
<div className='content container-fluid'>
<Component {...pageProps} />
</div>
<Footer />
</UserContextProvider>
)
2020-08-03 12:04:07 +02:00
export default App