2020-03-18 16:26:18 +01:00
|
|
|
/* Libraries Imports */
|
2020-03-21 20:48:46 +01:00
|
|
|
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'
|
2020-12-28 13:07:21 +01:00
|
|
|
import Footer from '../components/Footer'
|
2020-03-18 16:26:18 +01:00
|
|
|
|
2020-04-06 16:46:03 +02:00
|
|
|
/* Contexts Imports */
|
2020-08-03 12:04:07 +02:00
|
|
|
import UserContextProvider from '../contexts/UserContext'
|
2020-04-06 16:46:03 +02:00
|
|
|
|
2020-03-18 16:26:18 +01:00
|
|
|
/* CSS Imports */
|
2020-12-28 13:07:21 +01:00
|
|
|
import 'notyf/notyf.min.css'
|
|
|
|
import 'react-datepicker/dist/react-datepicker.css'
|
2020-08-03 12:04:07 +02:00
|
|
|
import '../public/fonts/Montserrat/Montserrat.css'
|
2020-12-28 13:07:21 +01:00
|
|
|
import '../styles/suneditor.min.css'
|
|
|
|
import '../styles/normalize.css'
|
|
|
|
import '../styles/grid.css'
|
|
|
|
import '../styles/general.css'
|
|
|
|
import '../styles/nprogress.css'
|
|
|
|
import '../styles/pages/admin.css'
|
|
|
|
import '../styles/pages/404.css'
|
|
|
|
import '../styles/pages/index.css'
|
|
|
|
import '../styles/pages/profile.css'
|
|
|
|
import '../styles/pages/register-login.css'
|
|
|
|
import '../styles/pages/users.css'
|
|
|
|
import '../styles/pages/FunctionComponent.css'
|
|
|
|
import '../styles/pages/functions/chronometerTimer.css'
|
|
|
|
import '../styles/pages/functions/rightPrice.css'
|
|
|
|
import '../styles/pages/functions/toDoList.css'
|
|
|
|
import '../styles/components/Header.css'
|
|
|
|
import '../styles/components/FunctionTabs.css'
|
|
|
|
import '../styles/components/CommentCard.css'
|
|
|
|
import '../styles/components/FunctionComments.css'
|
|
|
|
import '../styles/components/FunctionsList.css'
|
|
|
|
import '../styles/components/UserCard.css'
|
2020-08-03 12:04:07 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-03-19 09:07:29 +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-03-19 09:07:29 +01:00
|
|
|
|
2020-08-03 12:04:07 +02:00
|
|
|
export default App
|